![]() |
Reference Manual |
![]() |
NAME
app - interact with the Application Mapping mechanismSYNOPSIS
app [open|close|run]DESCRIPTION
Command app with no arguments prints the contents of the Application Mappings Table.NOTESCommand app open opens the Application Mappings dialog box.
Command app close closes the Application Mappings dialog box.
Command app run will load the file script/app and execute all scripts it refers to.
The Application Mapping mechanism is used to specify port mapping combinations to allow unsolicited incoming traffic to be forwarded to private computers. Such mappings are also required by some applications when running on computers behind a Network Address Translator.SEE ALSOThe mechanism works as follows:
The file script/app contains a list of entries of the following format: Script IPaddr Port Help.htm # Title
An entry can begin with a comment character # if needed. Each Script is a small TCL program that accepts up to two arguments (IPaddr and Port). Help.htm is the name of a help file that describes the script and its actions. Title is a descriptive name for the script. When file script/app is executed (via app run), each script it contains is executed with the stored arguments, and mappings are thus added or removed as needed. This mechanism is very powerful because the TCL scripts can be arbitrarily complex, thus allowing any desired mapping combinations to be added or removed easily.
The Application Mappings dialog box is displayed by clicking the
toolbar icon.
![]()
It displays the Title and arguments for each script listed in file script/app. The user can select the needed script, modify the IP address and port number range, and then click Apply to run it. The new settings are then saved in the script/app file.
File script/app can be edited by clicking Edit, and the individual script files can be edited by double-clicking a desired list box entry.
The View button can be pressed to view the NAT32 Permanent Port Mapping Table to verify that the script ran successfully.
Mappings for a selected Application can be removed by setting the IP Address to off and the Port to 0.
Sample scripts can be found in the script directory .
To install the needed mappings each time NAT32 runs, file startup should contain the command: app run
amap ppmap tcl umap