Library natpmp
This library implements the basics of NAT-PMP as described in the NAT Port Mapping Protocol (NAT-PMP) draft: o http://tools.ietf.org/html/draft-cheshire-nat-pmp-03
Author:
Source: https://svn.nmap.org/nmap/nselib/natpmp.lua
Functions
- getWANIP (self)
Gets the WAN ip of the router
- mapPort (self, pubport, privport, protocol, lifetime)
Maps a public port to a private port
Functions
- getWANIP (self)
-
Gets the WAN ip of the router
Parameters
- self
- mapPort (self, pubport, privport, protocol, lifetime)
-
Maps a public port to a private port
Parameters
- self
- pubport
- number containing the public external port to map
- privport
- number containing the private internal port to map
- protocol
- string containing the protocol to map (udp|tcp)
- lifetime
- [optional] number containing the lifetime in seconds