Talk:Forwarding a port to an internal IP

From MikroTik Wiki
Jump to: navigation, search

I need to forward from external IP aaa.aaa.aaa.aaa from port bbbb to internal IP xxx.xxx.xxx.xxx to port yyyy. Follow this example:

   ip firewall nat add chain=dstnat dst-address=aaa.aaa.aaa.aaa protocol=tcp dst-port=bbbb \
   action=dst-nat to-addresses=xxx.xxx.xxx.xxx to-ports=yyyy
   ip firewall nat add chain=dstnat dst-address=aaa.aaa.aaa.aaa protocol=udp dst-port=bbbb \
   action=dst-nat to-addresses=xxx.xxx.xxx.xxx to-ports=yyyy