FYI: Tool to test and set Port Forwarding with UPnP
Posted: November 20th, 2012, 3:38 pm
FYI: there is a nice tool to test and set Port Forwarding with UPnP. Tool is called MiniUPnP or upnpc. See http://miniupnp.free.fr/ . It's open source, and availabe for a lot of platforms.
It works based on UPnP IGD. You must enable that in your NAT/Modem/Router.
You can use this tool to set and/or test port forwarding for SABnzbd.
List port forwardings:
Set port forwarding:
HTH
It works based on UPnP IGD. You must enable that in your NAT/Modem/Router.
You can use this tool to set and/or test port forwarding for SABnzbd.
List port forwardings:
Code: Select all
$ upnpc -l
upnpc : miniupnpc library test client. (c) 2006-2012 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.1.254:49152/gatedesc.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.1.254:49152/upnp/control/WANIPConn1
Local LAN ip address : 192.168.1.54
Connection Type : IP_Routed
Status : Connected, uptime=87237s, LastConnectionError : ERROR_NONE
Time started : Mon Nov 19 21:21:04 2012
MaxBitRateDown : 65746000 bps (65.7 Mbps) MaxBitRateUp 13828000 bps (13.8 Mbps)
ExternalIPAddress = 95.41.13.21
i protocol exPort->inAddr:inPort description remoteHost leaseTime
0 TCP 51413->192.168.1.49:51413 'Transmission at 51413' '' 0
1 UDP 3074->192.168.1.40:3074 'DemonwarePortMapping' '' 0
2 TCP 5678->192.168.1.25:1234 'libminiupnpc' '' 0
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)
sander@R540:~$ Set port forwarding:
Code: Select all
$ upnpc -a 192.168.1.25 1234 5678 TCP
upnpc : miniupnpc library test client. (c) 2006-2012 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.1.254:49152/gatedesc.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.1.254:49152/upnp/control/WANIPConn1
Local LAN ip address : 192.168.1.54
ExternalIPAddress = 95.41.13.21
InternalIP:Port = 192.168.1.25:1234
external 95.41.13.21:5678 TCP is redirected to internal 192.168.1.25:1234 (duration=0)
sander@R540:~$