Hello,
I’m new with mikrotik product but used to configure network router.
I’m starting to use a RB5009, for now only with IPv4, using latest 7.2 firmware.
2 bridge, one for LAN (br-lan), one for WAN (br-wan).
I’ve set the first firewall NAT rules to access internet from my LAN :
/ip firewall nat
add action=masquerade chain=srcnat out-interface=br-wan to-addresses=0.0.0.0
This works as excepted and I’m able to browse the internet.
Now, I want to access one of my LAN server from outside. I need to open the 443 port using PAT, and cannot specified the destination IP as my ISP is giving me dynamic public IP :
add action=dst-nat chain=dstnat dst-port=443 protocol=tcp to-addresses=192.168.1.5 to-ports=443
If I do that, I can no longer open any socket on port 443 from my LAN to the internet. This rules messed up everyting.
I need to set it as this :
add action=dst-nat chain=dstnat dst-port=443 in-interface=br-wan protocol=tcp to-addresses=192.168.1.5 to-ports=443
adding the in-interface specified with my wan bridge, and everything is working as expected then.
I’m kind of surprise because the documentation does not mention this. What am I missing here ?
Thanks !