natpmp [-v | -q] [-b [-p pidfile]] -i public-interface -a private-address... [-t max-lifetime] [-l lower-port] [-u upper-port] [[--] backend-options]
natpmp -V
This is an implementation of NAT-PMP written in C.
-v
verbose mode
-q
quiet mode
-b
fork into background
-p pidfile
write the process ID to pidfile, has only an effect
when -b
is given
-i public-interface
use public-interface for internet site
-a private-address
use private-address for local site
Don't use 0.0.0.0 here. Better set the ip addresses of each interface. natpmp will exit with failure when the public ip address changes and the system can't find a route for sending the multicast announces.
-t max-lifetime
maximal lifetime of a mapping
-l lowest-port
lowest port available for mappings
-u upper-port
highest port available for mappings
-V
print version and license information
A backend is chosen at compile time. At the moment only an iptables backend is available. But there surely will be more.
Please report bugs with the bug tracking system on the project page. http://savannah.nongnu.org/projects/natpmp/
Copyright © 2007 Adrian Friedli.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License http://www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law.