Answer the question
In order to leave comments, you need to log in
MikroTik - is it possible to restrict access to a forwarded port by a number of IP addresses?
There is MikroTik on which ports are forwarded to RDP and FTP servers. Is it possible to allow access to these services for a few specific IP addresses, and deny all others?
Answer the question
In order to leave comments, you need to log in
Easy
/ip firewall address-list
add address=8.8.8.8 disabled=no list=whitelist
add address=8.8.8.8 disabled=no list=whitelist
#replace 8.8.8.8 with your addresses
/ip firewall filter
add action=accept chain=input in-interface=WAN connection-state=new dst-port=20,21,3389 protocol=tcp src-address-list=whitelist
add action=drop chain=input in-interface=WAN connection-state=new dst-port= 20,21,3389 protocol=tcp #replace
wan with the name of your external interface #make
sure after adding new rules that there are no deny rules in front of them that incoming allowed packets can fall under
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question