Skip to main content

NAT (Network Address Translation)

Masquerading (Address Masquerading)

For the address masquerading setting:

  • Firewall
  • General Settings

follow the menus. The Masquerading checkboxes in the table under Zones=>Forward on the incoming page can be configured. Masquerading hides the source IP address of data packets with the router's WAN IP address. The masquerading and MSS compression feature of the WAN interface must be enabled, but it should be disabled on the LAN interface.

Masquerading-421

SNAT (Source NAT)

ParameterDescriptionDefault Value
EnableEnable/DisableEnable
NameName of the rule
ProtocolTCP+UDP/TCP/UDP/ICMPTCP+UDP
Source IP addressThis rule can match a source IP address or IP range, for example, 192.168.1.100 or 192.168.1.100-192.168.1.200. "Any" matches all source IP addresses, meaning this rule covers packets that match any source IP address.Any
Source PortThis rule can match a source port or port range, for example, 999 or 888-999. "Null" matches all source ports, meaning this rule covers packets that match any source port.Null
Destination IP addressThis rule can specify a destination IP address or IP range, for example, 192.168.2.100 or 192.168.2.100-192.168.2.200. "Null" matches all destination IP addresses, meaning this rule covers packets that match any destination IP address.Null
Destination PortThis rule can specify a destination port or port range, for example, 999 or 888-999. "Null" matches all destination ports, meaning this rule covers packets that match any destination port.Null
SNAT IP addressReplace the source IP address of the matching traffic with this address.custom
SNAT portReplace the source port of the matching traffic with this port, "Null" uses the original source port.Null

Source NAT is a special form of packet masquerading that changes the source address of a packet leaving the router. When using Source NAT, you need to disable the masquerading feature of the WAN port.

SNAT1-421

To add a Source NAT rule:

  • Firewall
  • Traffic Rules

follow the menus. Click the Add and edit button in the New source NAT section under the Source NAT tab.

SNAT2-421

Use the default settings to leave all source IP addresses and destination IP addresses unchanged. Then click the Save & Apply button.

SNAT3-421

In this case, we changed the source IP address leaving the router to 192.168.9.1. However, the source IP address of the ICMP packet ping request from a PC (IP: 192.168.1.114) connected to the same router to a computer (IP: 192.168.13.4) connected to the router appears as 192.168.9.1 instead of 192.168.1.114.

SNAT4-421

Port Forwarding

To add a port forwarding rule:

  • Firewall
  • Port Forwards

follow the menus. Port forwarding rules can assign a specific port number of the WAN network to a device belonging to the selected internal network.

PortForwarding1-421

PortForwarding2-421

ParameterDescriptionDefault Value
NameName of the ruleNull
ProtocolTCP+UDP/TCP/UDPTCP+UDP
External zoneWired WAN, 4G, VPNwan
External PortThis can be a port or port range, for example, 8000-9000. When both external and internal ports are empty, this indicates a DMZ (Demilitarized Zone) function.Null
Internal ZoneLAN Namelan
Internal IP addressIP address of the deviceNull
Internal PortThis can be a port or port range, for example, 8000-9000. When both external and internal ports are empty, this indicates a DMZ (Demilitarized Zone) function.Null

NAT DMZ

While port forwarding rules direct a specified WAN port to an internal network device, DMZ (Demilitarized Zone) rules direct all ports belonging to the WAN interface to an internal network device. DMZ rules are set in the port forwarding interface, and in DMZ mode, there is no need to set external and internal ports.

NATDMZ1-421

NATDMZ2-421

All ports belonging to the WAN address will be directed to the internal network device 192.168.1.110.

  • Port forwarding and DMZ cannot be used simultaneously.