View previous topic :: View next topic |
Author |
Message |
ozzyoli
Joined: 06 Mar 2016 Posts: 2
|
Posted: Sun Mar 06, 2016 11:01 pm Post subject: Why are my ports mapped using MiniUPNPC not actually mapped? |
|
|
Router: SBG6580
ISP: Comcast
MiniUPNPC Version: 1.9
OS: Mac OS X 10.11
Hi!
I am having trouble debugging why mapping ports using miniupnpc is not working even though the miniupnpc tool says that it worked.
Context
I'm trying to open up external port 80 with internal port 8080.
What I did
I added the port mapping using
Code: |
upnpc -r 8080 80 TCP
|
And then viewed the list of all mappings using
Code: |
Oli$ upnpc -l
upnpc : miniupnpc library test client, version 1.9.
(c) 2005-2015 Thomas Bernard.
for more information.
List of UPNP devices found on the network :
desc: http://192.168.0.1:80/RootDevice.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.0.1:80/WANIPConnection
Local LAN ip address : 192.168.0.2
Connection Type : IP_Routed
Status : Connected, uptime=308157s, LastConnectionError : ERROR_NONE
Time started : Thu Mar 3 01:12:31 2016
MaxBitRateDown : 1000000000 bps (1000.0 Mbps) MaxBitRateUp 1000000000 bps (1000.0 Mbps)
ExternalIPAddress = MY_EXTERNAL_IP
i protocol exPort->inAddr:inPort description remoteHost leaseTime
0 TCP 80->192.168.0.2:8080 'libminiupnpc' '' 0
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIn
|
However when I test to see if the port is open using
Code: | telnet MY_EXTERNAL_IP 80 |
Telnet says the port is not open
Things I made sure
On my Routers WEB UI I have enabled UPnP.
Also, Port Forwarding is definitely possible because if I use the router's Web UI to explicitly map the port it works (telnet confirms the port is open that way).
My theory
One thing I have noticed is that the remoteHost is reported to be ''. When doing a port forward via my routers UI I have to specify that the remoteHost is 0.0.0.0.
Is that what the issue is?
Any suggestions/tips/help would be greatly appreciated! Thanks!
Oli[/code] |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Mar 07, 2016 11:31 am Post subject: Re: Why are my ports mapped using MiniUPNPC not actually map |
|
|
ozzyoli wrote: |
However when I test to see if the port is open using
Code: | telnet MY_EXTERNAL_IP 80 |
Telnet says the port is not open
|
From what machine are your testing connection ? Your router probably doesn't redirect the port for packet coming from the LAN, only from the WAN. (port mapping rules are very propably configured ta apply on only one network interface).
So the test must be done from a machine NOT ON YOUR LAN.
see http://www.yougetsignal.com/tools/open-ports/ _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
ozzyoli
Joined: 06 Mar 2016 Posts: 2
|
Posted: Tue Mar 08, 2016 3:41 pm Post subject: |
|
|
Hi,
I used both telnet on my LAN and a public port checker site on the WAN to check and both said the port was closed. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Mar 08, 2016 3:53 pm Post subject: |
|
|
miniupnpc only send commands to your router, it cannot report if your router is not properly setting the port mappings.
Please check your router using other UPnP clients _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Mar 08, 2016 3:56 pm Post subject: |
|
|
anyway I think it can cause problems to map port 80, I guess the router is using it for something else.
Please test with a random high port (> 1024) _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|