natpmp

Name

natpmp -- Handles port forwarding requests from clients behind a NAT

Synopsis

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

Description

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

Backends

A backend is chosen at compile time. At the moment only an iptables backend is available. But there surely will be more.

iptables

This backend uses GNU/Linux' iptables to do the port forwardings. It takes one option to specify the iptables chain to use. If not set it defaults to natpmp.

Author

Written by Adrian Friedli.

Reporting Bugs

Please report bugs with the bug tracking system on the project page. http://savannah.nongnu.org/projects/natpmp/

Copyright

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.