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
OSZAR »