How To Block Access To Modem - Mikrotik Script RouterOS

Modem or ISP router generally has a default configuration. Whether it's the IP address to the username and password. If there are people who understand this, of course it will be dangerous for your internet network especially for those of you who have managed public networks such as hotspots, because it could be that later you will be bullied by that person such as changing the configuration, changing the wifi name, wifi password. 

/ip firewall address-list
add address=192.168.1.1 list=IP-MODEM
add address=192.168.2.1 list=IP-MODEM

/ip firewall filter 
add action=drop chain=forward comment="MODEM PROTECTED" disabled=yes dst-address-list=MODEM dst-port=21-23,80,443 protocol=tcp
Credit: www.o-om.com