While you can add port forwards though the Minim Care Portal UI, there are times you may need or want to do this via SSH.
Port Forwards added outside of Minim will not show up in the Minim Care Portal so we recommend adding through Minim wherever possible.
Adding a Port Forward is relatively simple. You need to know 5 things:
- The interface the request will come in from (the WAN port, typically ether1 or ether5)
- The port the request will come in to from the WAN.
- The destination port the request will forward to.
- The IP you want to forward to on the internal network.
- The protocol the request will operate over.
To set up a port forward using the information, simply login via SSH and use the following command:
/ip firewall nat add chain=dstnat in-interface=WANPORT action=dst-nat dst-port=INBOUNDPORT to-ports=INTERNALPORT to-addresses=IPADDRESS protocol=PROTOCOL
eg. to port forward for remote desktop
/ip firewall nat add chain=dstnat in-interface=ether1 action=dst-nat dst-port=3389 to-ports=3389 to-addresses=192.168.88.200 protocol=tcp
When port forwards are configured outside of the Care Portal, the configuration will be "out-of-sync" on the Router Settings page of the LAN. Click the Inherit button to ensure the recent changes are acknowledged by the Minim agent.
Port Forwards added outside of Minim will not show up in the Minim Care Portal so we recommend adding through Minim wherever possible.
Comments
0 comments
Please sign in to leave a comment.