set nat

poproto[1-64]={tcpudp}

The IP protocol associated with this port forwarding entry.

tcp

A TCP port is forwarded.

udp

A UDP port is forwarded.

pocount=[1-64]=number of ports in range, minimum 1

The number of consecutive ports in a port-forwarding range. This option allows you to forward more than one port in a single port-forwarding entry. When a range is configured, the first port in the range is specified, and the full range is indicated in the displayed entry information. The default is 1.

poexternal[1-64]=number of ports in range, minimum 1

The external (or public) port that will be forwarded for this entry.

pointernal[1-64]=number of ports in range, minimum 1

 

The internal (or private) port to which packets will be forwarded for this

 

entry. This value is a port number on the host whose IP address is

 

specified by the “poip” option value for this entry.

 

poip[1-64]=ipaddress

 

The IP address of the host to which packets will be forwarded for this

 

entry.

Examples

Enable NAT and specify settings for port forwarding entry 1

 

This example command will enable the forwarding of TCP packets

 

received at port 4009 of the public (PPP) interface of the device server, to

 

TCP port 7008 of the host whose IP address is 143.191.1.228 on the

 

Ethernet side of the device server.

 

#> set nat enabled=on poenabled1=on poproto1=tcp poexternal=4009

 

pointernal=7008 poip=143.191.1.228

 

Display NAT and port/protocol forwarding settings

 

#> set nat

See also

"set forwarding" on page 109.

 

"revert" on page 61.

 

"show" on page 249.

148

Chapter 2 Command Descriptions

Page 148
Image 148
Digi 90000566_H manual Poproto1-64=tcpudp, Pocount=1-64=number of ports in range, minimum, Poip1-64=ipaddress