Page 1 of 1

block all ports except 80

Posted: Thu Feb 19, 2009 7:51 pm
by norocel
i have mikrotik 2.9.27
how can i block al ports except 80 for www ?
10x in advance

Re: block all ports except 80

Posted: Thu Feb 19, 2009 8:29 pm
by enk
/ip firewall filter
add action=accept chain=forward comment="Established connections" connection-state=established disabled=no
add action=accept chain=forward comment="Related connections" connection-state=related disabled=no
add chain=forward dst-port=80 protocol=tcp action=drop disabled=no
add chain=forward action=drop disabled=no