I'm trying to setup a remote access to my dsl router from the internet. The DSL router has in DMZ the MT and what I want is that if I try to connect to port 81 of its public IP get redirected to the port 80 of the private IP of the DSL router.
Code: Select all
1.1.1.1 (Internet Client) -------> 2.2.2.2 (Internet MT IP) ------> 172.16.0.1 (Private IP of DSL Router)
Code: Select all
ip firewall nat chain=dstnat src-address=1.1.1.1 dst-address=2.2.2.2 protocol=tcp dst-port=81 in-interface=eth1-wan action=dst-nat to-address=172.16.0.1 to-ports=80
ip firewall nat chain=srcnat src-address=1.1.1.1 dst-address=172.16.0.1 action=masquerade
Any sugestions ?