Port Forwarding on MikroTik Router
MikroTik is a Latvian network equipment manufacturing company. MikroTik has a very high level of flexibility when it comes to network management that it comes with its own sophisticated router. The RouterOS can be installed on a PC and it will turn it into a router with all the necessary features - routing, firewall, bandwidth management, wireless access point, backhaul link, hotspot gateway, VPN server and more.
RouterOS has all the necessary features of an ISP (internet service provider). MikroTik is capable of managing anything relating to networking and in this article we will focus on how to successfully use Port forwarding on MikroTik by using RouterOS.
Port forwarding is the process of intercepting data traffic headed for a computer's IP/port combination and redirecting it to a different IP and/or port. This can be done using a MikroTik router. This whole article is a guide on how to do port forwarding on a MikroTik router.
Before we get to that, try to imagine a situation as follows:
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 on MikroTik Router to handle all requests. Below is a step-by-step guide on how to configure port forwarding on MikroTik .
- 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 (188.8.131.52: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 (184.108.40.206) on the “To Addresses” filed and type 4324 on the “To Ports” field.
- Click on apply and OK to save and add the rules.
Here is some Mikrotik related articles: