I want to forward port 81 to internal ip, here ir how I tried:
Code: Select all
/ip firewall nat add chain=dstnat dst-address=my.wan.ip protocol=tcp dst-port=81 \
action=dst-nat to-addresses=192.168.1.103 to-ports=0-65535
Thanks,
kristapsb
/ip firewall nat add chain=dstnat dst-address=my.wan.ip protocol=tcp dst-port=81 \
action=dst-nat to-addresses=192.168.1.103 to-ports=0-65535
Yeah, you do. Forward the 81. from wan to 81. at internal IP, not 81. to all portsHello,
Whey I try to connect my.wan.ip:81 - connection timed out. Where is the problem? Do I need to add something else in NAT?Code: Select all/ip firewall nat add chain=dstnat dst-address=my.wan.ip protocol=tcp dst-port=81 \ action=dst-nat to-addresses=192.168.1.103 to-ports=0-65535
I allready have masquerade for ether1 ( wan port ).You also need source nat rule to masquerade your local network.
/ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
How can I do this for local network?Code: Select all/ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
/ip firewall nat add chain=srcnat action=masquerade src-address=192.168.1.0/24 out-interface=ether1