Chapter 5
51
Example:
adsl> nat protocols
NamePort/IP protocol
ftp21/tcp
5.4.4.6
sessions
Syntax:
nat sessions <i/f> [all | summary]
Description:
Displays active NAT sessions on the interface <i/f>.
A session is a pair of source IP addresses and port numbers and
corresponding new port numbers that NAT regards as one side
of an active connection. For each active TCP or UDP session,
the source/destination IP address, port number, the local port
number and the age of the session are printed.
all causes the sessions command to print out information on
every session, including timed out sessions. The sessions
command only shows active sessions.
summary shows total of active, timed out and available
sessions.
Example:
adsl> nat sessions ppp
Total : 2 sessions active
101 sessions timed out
126 sessions available
Protocol
Age
NAT
port
Private address/
port
Public/address
port
TCP
34
1024
192.168.219.38/35
194.129.50.6/21
Protocol
Age
NAT
port
Private address/
port
Public/address
port
TCP
10
1025
192.168.219.64/35
185.45.30.30.80