ppmap - specify permanent port mappingsSYNOPSIS
ppmapDESCRIPTION
ppmap apm
ppmap add tcp|udp port_range target [new_port] [ifn]
ppmap delete tcp|udp port_range [ifn]
Command ppmap controls permanent port mapping. Permanent port mappings are used to make servers running on designated private machines accessible from the Internet. Per default, no servers other than those running under Windows on the NAT32 machine are accessible from the Internet.NOTESIf no argument is specified, the current state of the permanent port mapping table is printed as follows:
Index - the table indexIf the add argument is specified, four further arguments are required:
Ifn - the interface to which the mapping applies
Proto - the protocol type (UDP or TCP)
Port range - the port number to be mapped
IPdst - the destination address (target) of the mapping
Ndp - the target port numbertcp or udp - the desired protocol
port_range - the port number range which a remote machine uses to reach a specified private host
target - the private IP address or DNS name of the target machine
new_port - the starting port number at which the private machine listens (defaults to port_range)An optional ifn argument can be specified if the mapping is to be restricted to a particular Internet interface.
Example: ppmap add tcp 80 192.168.1.10
The above command will make an HTTP daemon at port 80 on private host 192.168.1.10 accessible from the Internet via port 80 at the IP address of a NAT32 Internet interface.
Example: ppmap add tcp 30023 192.168.1.10 23
The above command will make a Telnet daemon at port 23 on private host 192.168.1.10 accessible from the Internet via port 30023 at the IP address of a NAT32 Internet interface.
Example: ppmap add udp 2000:2100 192.168.1.20 1000
The above command will map incoming UDP packets with port numbers in the range 2000 - 2100 to ports 1000 - 1100 on machine 192.168.1.20.
If the delete argument is specified, the entry for the specified protocol and port number range is deleted from the table. Hosts on the Internet then no longer have access to that server.
If the apm argument is specified, the state of the Auxilliary Port Mapping table is printed. This table contains details of currently established connections. This option is used for diagnostic purposes only.
Use Permanent Port Mapping with care because it gives external hosts access to servers on your private machines. Be sure you have set strong passwords on all services which you expose to the Internet.SEE ALSOYou do not need to add Permanent Port Mappings for applications such as ICQ, which assume that UDP mappings are permanently stored in the Port Mapping Table of a NAT. See command umap for details on how to support such applications.
To make your ppmap commands permanent, place them in file user.txt, as that file is executed each time NAT32 starts.
icmap ipmap pmap ukmap umap