You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before adding, should we check whether the external port is already in use? If so, check whether the upnp description is consistent with the program settings. If not, abort. Otherwise, refresh it, or return an unused random high port from nat.Map and return it to the program.
➜ berigon git:(main) ✗ upnpc -l
upnpc : miniupnpc library test client, version 2.2.4.
(c) 2005-2022 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.0.1:2828/gateway_description.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.0.1:2828/upnp/control/rjviirgxfq/wanipconn-2
Local LAN ip address : 192.168.0.103
Connection Type : IP_Routed
Status : Connected, uptime=43445s, LastConnectionError : ERROR_NONE
Time started : Mon Sep 23 11:01:16 2024
MaxBitRateDown : 10000000 bps (10.0 Mbps) MaxBitRateUp 10000000 bps (10.0 Mbps)
ExternalIPAddress = xxx.xxx.xx.xx
i protocol exPort->inAddr:inPort description remoteHost leaseTime
0 TCP 0->0.0.0.0:0 'Dummy inactive rule for windows to work' '' 0
1 TCP 42069->192.168.0.103:42069 'github.com/erigontech/erigon (devel)leecher' '' 0
2 UDP 42069->192.168.0.103:42069 'github.com/erigontech/erigon (devel)leecher' '' 0
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)
Btw, currently I only see the mapping of the bt download protocol
Rationale
Run nodes in a NAT environment, have a better network, and establish more peer links
Implementation
>>
After NAT ExternalIP is resolved successfully, nat upnp or pmp should be added
erigon/p2p/server.go
Lines 588 to 591 in 6d975a9
>>
Before adding, should we check whether the external port is already in use? If so, check whether the upnp description is consistent with the program settings. If not, abort. Otherwise, refresh it, or return an unused random high port from nat.Map and return it to the program.
erigon/p2p/nat/nat.go
Lines 116 to 132 in 6d975a9
The text was updated successfully, but these errors were encountered: