Setting up port-forwarding is a very common task. This guide explains how to set up a port-forwarding rule really quickly. Please checkout out the firewall rules reference for further description.
A port-forward is another term for a Destination NAT. Packets that are received by the firewall can be transparently forwarded to a new destination. Setting up a port-forwarding rule requires an originating source and new destination to be specified, with optional protocol constraints to further refine the rule.
To create a new port-forwarding rule, select >> Firewall >> Firewall Rules and press the "New rule" button. Source and destination ports can only be defined for protocols that uses ports, i.e. TCP or UDP.
Define the source from which the service you are forwarding to is accessible. Usually, you do not need to specify anything other than the defaults. Where practical, limit the possible source(s) by selecting a host, group of hosts or specific network.
Choose the following to forward a WAN / RED port to a single internal server.
As this is a NAT rule, check "Use Network Address Translation (NAT)" and select "Destination NAT (Port forwarding)".
If you have public IP address space in the destination zone, you don't need to check the NAT checkbox, but make sure to select ACCEPT as rule action further down below.
Choose the following to forward a WAN / RED port to a single internal server.
Now, you will need to pick the server to which you are going to forward packets to. You can either select it from the dropdown boxes or enter the IP address directly. Note, that the system must be part of a local network that is reachable from the firewall.
Choose the following to forward a WAN / RED port to a single internal server.
You will want to pick one or more services that you will forward to the server you just choose, but never select "All" here.
Use a preset if you cannot remember the port number or select a protocol from the dropdown menu and enter the destination port you need. If you want to use a different port externally, you may enter it in "External port (NAT)" or leave it empty.
Choose the following to forward a WAN / RED port to a single internal server.
We are almost done - don't forget to add a descriptive remark.
Optionally, you may specify at which time the rule is active only. See Creating Firewall Rules (reference) for all about this feature.
Congratulations. You finally set up your port-forwarding!
This is also for what is known as HairPin NAT or Loopback NAT, where you are working from inside your LAN, but addressing a resource inside your LAN through the external IP address.
Older Revisions • October 8, 2020 at 1:31 am • Onyx Chal