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

Port Forwards added outside of Minim will not show up in the Minim Care Portal so we recommend adding through Minim wherever possible.

Did this answer your question?