ZyXEL Confidential
340adq4c0
26/36
inside-server
Example:
> ip nat addrmap rule 1 edit 3 192.168.1.10 192.168.1.20
192.168.10.56 192.168.1.56 0
ip nat addrmap clear [map#] [rule#]
Clear the selected rule of the set
Menu 15.1
ip nat addrmap freememory
Discard Changes
Menu 15.1
ip nat addrmap disp
Display nat set information
Menu 15.1
ip nat addrmap save
Save settings
Menu 15.1
ip nat server load [set#]
Load the server sets of NAT into buffer
Menu 15.2
ip nat server disp [1]
“disp 1” means to display the NAT server set in buffer, if
parameter “1” is omitted, then it will display all the server
sets
Menu 15.2
ip nat server save
Save the NAT server set buffer into flash
Menu 15.2
ip nat server clear [set#]
Clear the server set [set#], must use “save” command to let it
save into flash
Menu 15.2
ip nat server edit [rule#] active
Activate the rule [rule#], rule number is 1 to 24, the number
25-36 is for UPNP application
Menu 15.2
ip nat server edit [rule#] svrport <start port>
<end port>
Configure the port range from <start port > to <end port>
Menu 15.2
ip nat server edit [rule#] remotehost <start IP>
<end IP>
Configure the IP address range of remote host (Leave it to be
default value if you don’t need this command)
Menu 15.2
ip nat server edit [rule#] leasetime <seconds>
Configure the lease time (Leave it to be default value if you
don’t want this command)
Menu 15.2
ip nat server edit [rule#] rulename <string>
Configure the name of the rule (Leave it to be default value if
you don’t want this command)
Menu 15.2
ip nat server edit [rule#] forwardip <IP
address>
Configure the LAN IP address to be forwarded
Menu 15.2
ip nat server edit [rule#] protocol
<TCP|UDP|ALL>
Configure the protocol to be used TCP , UDP or ALL (it must
be capital)
Menu 15.2
sys filter set index [set#] [rule#]
Set the index of filter set rule, you may apply this command
first before you begin to configure the filter rules
Menu 21 filter sets
sys filter set name [set name]
Set the name of filter set
Menu 21 filter sets
sys filter set type [tcpip | generic]
Set the type of filter rule
Menu 21 filter sets
sys filter set enable
Enable the rule
Menu 21 filter sets
sys filter set disable
Disable the rule
Menu 21 filter sets
sys filter set protocol [protocol #]
Set the protocol ID of the rule
Menu 21 filter sets
sys filter set sourceroute [yes|no]
Set the sourceroute yes/no
Menu 21 filter sets
sys filter set destip [address] [subnet mask]
Set the destination IP address and subnet mask of the rule
Menu 21 filter sets
sys filter set destport [port#] [compare type =
none|equal|notequal|less|greater]
Set the destination port and compare type (compare type
could be 0(none)|1(equal)|2(not equal)|3(less)|4(greater) )
Menu 21 filter sets
sys filter set srcip [address] [subnet mask]
Set the source IP address and subnet mask
Menu 21 filter sets
sys filter set srcport [port#] [compare type =
none|equal|not equal|less|greater]
Set the source port and compare type (compare type could be
0(none)|1(equal)|2(not equal)|3(less)|4(greater) )
Menu 21 filter sets
sys filter set tcpEstab [yes|no]
Set TCP establish option
sys filter set more [yes|no]
Set the more option to yes/no
Menu 21 filter sets
sys filter set log [type 0-3= none | match|
notmatch | both ]
Set the log type (it could be 0-3 =none, match, not match,
both)
Menu 21 filter sets
sys filter set actmatch[type 0-2 = checknext |
forward | drop]
Set the action for match
Menu 21 filter sets
sys filter set actnomatch [type 0-2 =
checknext | forward | drop]
Set the action for not match
Menu 21 filter sets
sys filter set offset [#]
Set offset for the generic rule
Menu 21, it’s for
generic filter
sys filter set length [#]
Set the length for generic rule
Menu 21, it’s for