Hello guys!
Recently i bought Mikrotik 951G-2HnD and I have one question about firewall features and access to WebFig.
I want to do:
a) from LAN (internal network 192.168.0.0/24) i want to access WebFig by http://192.168.0.1:80
b) from Internet (WAN port) i want to access WebFig by http://x.y.z.a:8080, where x.y.z.a - my WAN static ip
By default WebFig works on 80 port, its ok.
So i need to open 80 port for LAN connections, and open 8080 for WAN connections and redirect it to 192.168.0.1:80
So i add this rule in section Filter:
chain=input action=accept connection-nat-state=“” protocol=tcp dst-port=80 log=no
and i add this rule in section Nat:
chain=dstnat action=redirect to-addresses=192.168.0.1 to-ports=80 protocol=tcp in-interface=ether1-WAN dst-port=8080 log=yes
And now i can connect to WebFig from WAN by 80 and 8080 ports - both of them. This is no good)
If i delete Filter rule - i can not connect to WebFig from WAN at all.
So how i can get it work from WAN by :8080 and from LAN by :80?
Thank you.