Library and tool to control NAT in UPnP-enabled routershttp://miniupnp.free.fr/
miniupnpc is an implementation of a UPnP client library, enabling
applications to access the services provided by an UPnP "Internet
Gateway Device" present on the network. In UPnP terminology, it is
a UPnP Control Point.
This package includes upnpc, a UPnP client application for configuring
port forwarding in UPnP enabled routers.