Installation guide
set nat
Chapter 2 Command Descriptions 81
set nat
Devices
supported
This command is supported in Digi Connect WAN devices only.
Purpose Used to set or display Network Address Translation (NAT) and port/
protocol forwarding settings.
Note that at this time, the only IP protocol for which protocol forwarding is
supported is Generic Routing Encapsulation (GRE). Port forwarding is
supported for the TCP and UDP protocols.
Required
permissions
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 86 for details on setting user permissions
for commands.
Syntax Set NAT and port/protocol forwarding settings
set nat [enabled={on|off}]
[prenabled[1-4]={on|off}]
[prnumber[1-4]=gre]
[prtype[1-4]=type]
[prip[1-4]=ipaddress]
[poenabled[1-64]={on|off}]
[poproto[1-64]={tcp|udp}]
[poexternal[1-64]=port]
[pointernal[1-64]=port]
[poip[1-64]=ipaddress]
Display NAT and port/protocol forwarding settings
set nat
Options enabled={on|off}
Used to enable or disable NAT. Note that IP forwarding must be enabled
by the “set forwarding” command for NAT to work.
on
Enable NAT.
off
Disable NAT.
prenabled[1-4]={on|off}
Used to enable one of the four protocol-forwarding entries.
on
Enable this protocol forwarding entry.
off
Disable this protocol forwarding entry.