Network address translation (NAT) changes the destination or the source address of packets crossing Artica.
The best-known use is port forwarding: a connection reaching the public address of Artica on port 443 is sent to a web server of your internal network.
A NAT is built in two steps:
DNAT:3); the service of the rule gives the incoming port, its objects restrict the sources.This separation lets one NAT entry serve several rules (several ports, several source networks) and lets you see each rule's packet counters.
| Type | Effect | Typical use |
|---|---|---|
| Destination NAT | New connections arriving on the interface and matching the rules are sent to the target address (and port). | Publish an internal server: HTTPS, RDP, mail. |
| Source NAT | New connections leaving through the interface get the target address as source address (and port, if given). Rules with the action Accept apply the translation; rules with another action define exceptions. Without any rule, all new traffic leaving the interface is translated. |
Make a network leave the Internet with a specific public address. |
| Redirect to the node | Matching connections are redirected to a port of Artica itself. | Send a port to a local service listening on another port. |
| Route packets to a node | Matching packets are routed through the target address instead of the default gateway (traffic from the target itself is not rerouted). Nothing happens until a rule uses the entry. | Send some flows through a second router or a security appliance. |
Go to Your Firewall › N.A.T and click New Rule:
Go to Your Firewall › Firewall Rules, click New Rule:
DNAT:<id>, shown with its name).A few seconds later the port forwarding is active; the rule shows its packet counters in the rules table.
The forwarded traffic must also be allowed to cross Artica: if the interface towards the server has the policy Finally deny all, add a rule allowing it, or use an interface connector.
Without anything more, a workstation of your local network that calls the public address of a published service (for example https://www.example.com resolved to the address of the appliance) is not translated and never reaches the server. Destination NAT entries carry the option Reachable from the internal network, checked by default:
Uncheck the option if internal clients must reach the server by its internal address only. A NAT entry without interface and without public address cannot be reflected: the list says so. Connections opened by the appliance itself to the public address are not reflected.
SNAT:<id> interface with the action Accept and the networks as inbound objects.To hide a whole network behind the address of the interface itself, prefer masquerading.