mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix up NSEdoc for NAT-PMP scripts and add cross references.
This commit is contained in:
@@ -5,15 +5,15 @@ local shortport = require "shortport"
|
|||||||
description = [[
|
description = [[
|
||||||
Gets the routers WAN IP using the NAT Port Mapping Protocol (NAT-PMP).
|
Gets the routers WAN IP using the NAT Port Mapping Protocol (NAT-PMP).
|
||||||
The NAT-PMP protocol is supported by a broad range of routers including:
|
The NAT-PMP protocol is supported by a broad range of routers including:
|
||||||
- Apple AirPort Express
|
* Apple AirPort Express
|
||||||
- Apple AirPort Extreme
|
* Apple AirPort Extreme
|
||||||
- Apple Time Capsule
|
* Apple Time Capsule
|
||||||
- DD-WRT
|
* DD-WRT
|
||||||
- OpenWrt v8.09 or higher, with MiniUPnP daemon
|
* OpenWrt v8.09 or higher, with MiniUPnP daemon
|
||||||
- pfSense v2.0
|
* pfSense v2.0
|
||||||
- Tarifa (firmware) (Linksys WRT54G/GL/GS)
|
* Tarifa (firmware) (Linksys WRT54G/GL/GS)
|
||||||
- Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more)
|
* Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more)
|
||||||
- Peplink Balance
|
* Peplink Balance
|
||||||
]]
|
]]
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -24,6 +24,7 @@ The NAT-PMP protocol is supported by a broad range of routers including:
|
|||||||
-- |_ WAN IP: 192.0.2.13
|
-- |_ WAN IP: 192.0.2.13
|
||||||
-- @xmloutput
|
-- @xmloutput
|
||||||
-- <elem key="WAN IP">192.0.2.13</elem>
|
-- <elem key="WAN IP">192.0.2.13</elem>
|
||||||
|
-- @see nat-pmp-mapport.nse
|
||||||
|
|
||||||
author = "Patrik Karlsson"
|
author = "Patrik Karlsson"
|
||||||
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ local table = require "table"
|
|||||||
|
|
||||||
description = [[
|
description = [[
|
||||||
Maps a WAN port on the router to a local port on the client using the NAT Port Mapping Protocol (NAT-PMP). It supports the following operations:
|
Maps a WAN port on the router to a local port on the client using the NAT Port Mapping Protocol (NAT-PMP). It supports the following operations:
|
||||||
o map - maps a new external port on the router to an internal port of the requesting IP
|
* map - maps a new external port on the router to an internal port of the requesting IP
|
||||||
o unmap - unmaps a previously mapped port for the requesting IP
|
* unmap - unmaps a previously mapped port for the requesting IP
|
||||||
o unmapall - unmaps all previously mapped ports for the requesting IP
|
* unmapall - unmaps all previously mapped ports for the requesting IP
|
||||||
]]
|
]]
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -41,6 +41,7 @@ o unmapall - unmaps all previously mapped ports for the requesting IP
|
|||||||
--
|
--
|
||||||
-- @args nat-pmp-mapport.lifetime the lifetime of the mapping in seconds (default: 3600)
|
-- @args nat-pmp-mapport.lifetime the lifetime of the mapping in seconds (default: 3600)
|
||||||
--
|
--
|
||||||
|
-- @see nat-pmp-info.nse
|
||||||
|
|
||||||
author = "Patrik Karlsson"
|
author = "Patrik Karlsson"
|
||||||
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user