Imagine your an IT administrator. You created a big network and someone wants to remotely connect to the 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 (10.10.10.10) and we want to forward all requests from (10.10.10.10:5847) to the (220.127.116.11:4324).
- Click on “General” tab. Select “dstnat” from “chain” drop down list. In “Dst. Address” field type this IP (10.10.10.10). From “Protocol” list, select of the connection protocol like (TCP, xdp, ddp). In “Dst. Port” field, type 5847.
- Click on “Action” tab. From action drop down list, select “dst-nat”. Type this IP (18.104.22.168) on the “To Addresses” filed and type 4324 on the “To Ports” field.
- Click on apply and OK to save and add the rules.