ZyXEL Communications 4.04 Network Card User Manual


 
Chapter 15 IP Commands
ZyWALL (ZyNOS) CLI Reference Guide
114
15.1.17 NAT Routing Command Example
Use this command to set the ZyWALL to route traffic that does not match a NAT rule through
a specific interface. An example of when you may want to use this is if you have servers with
public IP addresses connected to the LAN, DMZ or WLAN. By default the ZyWALL routes
traffic that does not match a NAT rule out through the DMZ interface.
The following command example sets the ZyWALL to route traffic that does not match a
NAT rule through the WLAN interface.
ip nat server edit <index>
intport <start-port> [end-port]
Sets the port or port range the NAT port forwarding rule uses
when forwarding traffic (port translation).
R
ip nat server edit <index>
protocol <TCP|UDP|ALL>
Sets the NAT port forwarding rule’s protocol. R
ip nat server edit <index>
remotehost <start-ip> [end-ip]
Sets the source IP address or IP address range for traffic to
which the NAT port forwarding rule applies.
R
ip nat server edit <index>
rulename <name>
Sets the name of the NAT port forwarding rule. R
ip nat server edit <index>
svrport <start-port> [end-port]
Sets the NAT port forwarding rule’s listening (incoming) port or
port range.
R
ip nat server load <index> Loads the NAT port forwarding entry for editing. R
ip nat server save Saves NAT port forwarding settings to the non-volatile
memory.
R
ip nat service aol [on|off] Turns the AOL ALG on or off. R
ip nat service irc [on|off] Turns the IRC ALG on or off. R
ip nat service ldap [on|off] Turns the LDAP ALG on or off. R
ip nat service xboxlive [on|off] Turns the Xbox Live ALG on or off. R
ip nat session [sessions-per-
host]
Sets the allowed number of NAT sessions per host. R
Table 54 NAT Commands (continued)
COMMAND DESCRIPTION M
Syntax:
ip nat routing [0:LAN|1:DMZ|2:WLAN] [0:no|1:yes]
ras> ip nat routing 2 1
Routing can work in NAT when no NAT rule match.
-----------------------------------------------
LAN: no
DMZ: yes
WLAN: yes