mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix up NSEdoc for NAT-PMP scripts and add cross references.
This commit is contained in:
parent
2ea0c3d69a
commit
a24a02b087
2 changed files with 14 additions and 12 deletions
|
|
@ -5,15 +5,15 @@ local shortport = require "shortport"
|
|||
description = [[
|
||||
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:
|
||||
- Apple AirPort Express
|
||||
- Apple AirPort Extreme
|
||||
- Apple Time Capsule
|
||||
- DD-WRT
|
||||
- OpenWrt v8.09 or higher, with MiniUPnP daemon
|
||||
- pfSense v2.0
|
||||
- Tarifa (firmware) (Linksys WRT54G/GL/GS)
|
||||
- Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more)
|
||||
- Peplink Balance
|
||||
* Apple AirPort Express
|
||||
* Apple AirPort Extreme
|
||||
* Apple Time Capsule
|
||||
* DD-WRT
|
||||
* OpenWrt v8.09 or higher, with MiniUPnP daemon
|
||||
* pfSense v2.0
|
||||
* Tarifa (firmware) (Linksys WRT54G/GL/GS)
|
||||
* Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more)
|
||||
* 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
|
||||
-- @xmloutput
|
||||
-- <elem key="WAN IP">192.0.2.13</elem>
|
||||
-- @see nat-pmp-mapport.nse
|
||||
|
||||
author = "Patrik Karlsson"
|
||||
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ local table = require "table"
|
|||
|
||||
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:
|
||||
o 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
|
||||
o unmapall - unmaps all previously mapped ports for the requesting IP
|
||||
* map - maps a new external port on the router to an internal port of the requesting IP
|
||||
* unmap - unmaps a previously mapped port 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)
|
||||
--
|
||||
-- @see nat-pmp-info.nse
|
||||
|
||||
author = "Patrik Karlsson"
|
||||
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue