In the event port forwarding is needed, a NAT Rule will need to be created in the Mikrotik.
For this example, the NAT Rule is to allow access to a device on IP 192.168.88.100 using port 80 (extension 100).
For devices such as onsite PBX that have remote extensions and need a range of ports, use a hyphen (example: 10000-20000).
To create the NAT rule, please do the following:
- Log into the Mikrotik using Winbox and go to IP
- Go to Firewall
- From the Firewall window, go to the NAT tab
- Click on the Blue Plus Sign to add a new rule
- From the New NAT Rule window, under the General tab, set the following settings:
- Chain: dstnat
- Protocol: tcp
- Dst. Port: 8080 (to use a port range use a hyphen, example: 10000-20000)
- In. Interface: ether1-gateway
- Click on Action tab
- For Action set to dst-nat
- To Addresses: 192.168.88.100 (example)
- To Ports: 80 (to use a port range use a hyphen, example: 10000-20000)
- Click Apply
- Click Comment
- In the Comment for NAT Rule <8080> add a comment to help identify the rule (e.g.: Ext 100)
- Click OK to close the comment window
- Click OK to close the NAT Rule window
- The rule will now appear in bold to show that the rule is active
To make the rule inactive or to disable select the rule (the rule will be highlighted in blue) and click on the red "X" or type "d" to disable the rule.
** WARNING **
It is important to only have the rule active when working on the device. Do not leave the rule active when not working on the device or the device will get compromised.