Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Does double NAT cause any issues? #1

Open
shawaj opened this issue Jun 3, 2021 · 1 comment
Open

Does double NAT cause any issues? #1

shawaj opened this issue Jun 3, 2021 · 1 comment

Comments

@shawaj
Copy link
Member

shawaj commented Jun 3, 2021

Saw the below output on a device...

03.06.21 03:00:55 (+0100)  upnp  Frequency: US915
03.06.21 03:00:55 (+0100)  upnp  
03.06.21 03:00:55 (+0100)  upnp  Configuring Upnp
03.06.21 03:00:55 (+0100)  upnp  upnpc : miniupnpc library test client, version 2.1.
03.06.21 03:00:55 (+0100)  upnp   (c) 2005-2019 Thomas Bernard.
03.06.21 03:00:55 (+0100)  upnp  Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
03.06.21 03:00:55 (+0100)  upnp  for more information.
03.06.21 03:00:57 (+0100)  upnp  List of UPNP devices found on the network :
03.06.21 03:00:57 (+0100)  upnp   desc: http://10.0.0.1:5000/Public_UPNP_gatedesc.xml
03.06.21 03:00:57 (+0100)  upnp   st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
03.06.21 03:00:57 (+0100)  upnp  
03.06.21 03:00:59 (+0100)  upnp  Found a (not connected?) IGD : http://10.0.0.1:5000/Public_UPNP_C3
03.06.21 03:00:59 (+0100)  upnp  Trying to continue anyway
03.06.21 03:00:59 (+0100)  upnp  Local LAN ip address : 10.0.0.27
03.06.21 03:00:59 (+0100)  upnp  ExternalIPAddress = 192.168.1.161
03.06.21 03:00:59 (+0100)  upnp  InternalIP:Port = 10.0.0.27:44158
03.06.21 03:00:59 (+0100)  upnp  external 192.168.1.161:44158 TCP is redirected to internal 10.0.0.27:44158 (duration=0)

Looks like it is UPnPing from one internal network into another one. Does double NAT cause any issues with UPnP and will this effect the libp2p connections and how quickly it can connect to the network?

Reason I ask, is that the device seemingly was synced fine, but not getting many peers in the peer book and slow to start earning

@ryanteck
Copy link
Contributor

ryanteck commented Jun 3, 2021

A double nat likely does affect it, but it's out of our control.

We could maybe try and detect if there is a double nat and display it on diagnostics, however the solution is that they need to resolve it on their network.

(E.G Microsoft say that the user has to resolve it for XBOX port forwarding, https://support.xbox.com/en-GB/help/hardware-network/connect-network/double-nat-detected)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants