Digi 90000566_H Network Router User Manual


 
set nat
146 Chapter 2 Command Descriptions
set nat
Devices
supported
This command is supported in Digi Cellular Family products only.
Purpose Used to set or display Network Address Translation (NAT) and port/
protocol forwarding settings.
Note that at this time, the only IP protocols for which protocol forwarding is
supported are:
Generic Routing Encapsulation (GRE, IP protocol 47)
Encapsulating Security Payload (ESP, IP protocol 50, tunnel mode
only).
Port forwarding is supported for the TCP and UDP protocols.
You can forward a single port or a range of ports. To forward a range of
ports, specify the number of ports in the range using “pocount” option in the
port forwarding entry.
Required
permissions
For Digi Connect products with two or more users, to use this command,
permissions must be set to one of the following:
For a user to display the NAT and port/protocol forwarding settings:
“set permissions s-router=read”
For a user to display and set the NAT and port/protocol forwarding
settings: “set permissions s-router=rw”
See "set permissions" on page 157 for details on setting user permissions
for commands.
Syntax Set NAT and port/protocol forwarding settings
set nat [enabled={on|off}]
[maxentries=64-1024]]
[prenabled[1-4]={on|off}]
[prnumber[1-4]={gre|esp}]
[prtype[1-4]=type]
[prip[1-4]=ipaddress]
[poenabled[1-64]={on|off}]
[poproto[1-64]={tcp|udp}]
[pocount=[1-64]=number of ports in range, minimum 1]
[poexternal[1-64]=number of ports in range, minimum 1]
[pointernal[1-64]=number of ports in range, minimum 1]
[poip[1-64]=ipaddress]
Display NAT and port/protocol forwarding settings
set nat