Block 80, 443 Allow LogMeIn

Hello,

I would like to block port 80 & 443 (internet access) on my router but allow LogMeIn through which uses these ports. Is there a way for me to do this using firewall filters?

Dear MM00
Follow this:

/ip firewall filter
add chain=forward action=accept src-address=192.168.0.0/24 protocol=tcp dst-port=80,443
add chain=input action=accept src-address=192.168.0.0/24 protocol=tcp dst-port=80,443
add chain=forward action=drop src-address=0.0.0.0/0 protocol=tcp dst-port=80,443
add chain=input action=drop src-address=0.0.0.0/0 protocol=tcp dst-port=80,443


you can replace 192.168.0.0/24 with your network address that are allowed to access , others are all dropped ,

Appreciate the response, but looking at your reply won’t that just block port 80 & 443 for all network addresses except for 192.168.0.0/24? What I am looking to do is block port 80 & 443 for a specific network address, but whitelist a program (LogMeIn, which uses these ports) access through the firewall.

just replace your network address in SRC or DES address , sure it works,