Home page logo
/
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News

Sponsors


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:
"Patrik Karlsson <patrik@cqure.net>"

Source: http://nmap.org/svn/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

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault