Port Forwarding on MikroTik
Imagine your an IT administrator. You created a big network and someone wants to remotely connect to your VPS server or dedicated server and work remotely. You can’t share the server IP with him for security purposes. What should you do? In this situation, you should use port forwarding to handle all requests. Below we give a step-by-step guide how to configure port forwarding.
- Login to your own MikroTik server with admin privileges.
- Click on “IP” from the left side panel. In the opened submenu, click on “Firewall”.
- We should use “NAT” (Network Address Translation) tab to handle the packets that the router receive.
- In the “NAT” tab, click on “+” item to create a rule.
Note: In this scenario, assume the router connect to IP (22.214.171.124) and we want to forward all requests from (126.96.36.199:222) to the (192.168.0.11:222).
- Click on “General” tab. Select “dstnat” from “chain” drop down list. In “Dst. Address” field type this IP (188.8.131.52). From “Protocol” list, select of the connection protocol like (TCP, xdp, ddp). In “Dst. Port” field, type 222.
- Click on “Action” tab. From action drop down list, select “dst-nat”. Type this IP (192.168.0.11) on the “To Addresses” filed and type 222 on the “To Ports” field.
- Click on apply and OK to save and add the rules.