set nat set nat

Devices

This command is supported in Digi Cellular Family products only.

supported

 

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

For Digi Connect products with two or more users, to use this command,

permissions

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={onoff}]

 

[maxentries=64-1024]]

 

[prenabled[1-4]={onoff}]

 

[prnumber[1-4]={greesp}]

 

[prtype[1-4]=type]

 

[prip[1-4]=ipaddress]

 

[poenabled[1-64]={onoff}]

 

[poproto[1-64]={tcpudp}]

 

[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

146

Chapter 2 Command Descriptions

Page 146
Image 146
Digi 90000566_H manual Set nat set nat, Protocol forwarding settings, Supported are, Only, Port forwarding entry