Command Line Interface User’s Guide
This option is used to add or delete the portmap link.
tcp | udp
This option specifies whether the ports numbers for these arguments are TCP or UDP port
numbers.
<local_addr>:[<port>/<port range>]
The IP address (local_addr) of the machine on the local LAN that the packet will be directed to.
The value of the destination port in the packet header is specified by port or the port should fall
in the specified range of ports.
<public_addr>:[<port>/<port range>]
Any packet whose IP header contains the specified public_addr as the destination IP address and
port or the port in the range of ports as the destination port number will be mapped or redirected.
EXAMPLE
portmap add –o tcp 192.168.2.1:21 202.54.30.2:2000
Packets that whose destination address is 202.54.30.2 and whose TCP port number is 2000 will
have its destination address changed to 192.168.2.1 and its port number changed to 21. The
packet will be forwarded accordingly.
portmap add –o tcp 192.168.2.
1:
21-30 202.54.30.
2:
2001-2010
Packets whose destination address is 202.54.30.2 and whose TCP port will fall in the ports range
between 2001 and 2010. The packet destination address will change to 192.168.2.1 and its port
number changed to identical port number between 21 and 30. The packet will be forwarded
accordingly.
portmap delete –o tcp 192.168.2.1:21 202.54.30.2:2000
This command will delete the entry from the maplist using the specified fields.
portmap add –o tcp 192.168.2.
1:
21-30 202.54.30.
2:
2001-2010
This command will delete the entry from the maplist using the specified fields.
5.6.6
delrdaddr
delrdaddr <local_addr>
COMMAND DESCRIPTION
<local_addr>
84 1800-A2-GB20-00