Port Forwarding on MikroTik RouterOS

In this article we will see how to configure Port Forwarding on MikroTik RouterOS.

WAN (eth1) – 10.20.100.10/24
LAN – 172.26.0.1/20

Configuration Via WINBOX

✦ Click on IP -> Firewall -> Click on NAT Tab -> Add

✦ Click on General Tab -> Chain: Select dstnat from Drop Down List -> Protocol: Select tcp from Drop Down List -> Dst. Port: Enter Port No eg: 80 -> In. Interface: Select WAN Interface from Drop Down List

✦ Click on Action Tab -> Action: Select dst-nat from Drop Down List -> To Addresses: Enter IP Address need to be Forwarded -> To Port:- Enter Port No to be Forwarded and Click on Apply OK

Configuration Via CLI

In the CLI Use the following commands:
[admin@RouterX] > ip firewall nat add action=dst-nat chain=dstnat dst-port=80 in-interface="eth1" protocol=tcp to-addresses=172.26.0.100 to-ports=80

Leave a Comment