Allow Mikrotik Winbox

Posted in How Did I Do That?

Setup the firewall so that it can be accessed from a certain IP

/ip firewall address-list
add address= list=erik
/ip firewall filter
add action=accept chain=input comment="Accept Mikrotik Winbox" dst-port=8291 \
in-interface=ether1-WAN protocol=tcp src-address-list=erik
:local resolvedIP [:resolve ""];
:foreach a in=[/ip firewall address-list find list=erik] do={
:log info $resolvedIP;
/ip firewall address-list set $a address=$resolvedIP;