ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.05k stars 925 forks source link

Supernode nodes don't seem to automatically forget about Edge nodes #1180

Open ltxhhz opened 5 days ago

ltxhhz commented 5 days ago

supernode file: https://github.com/lucktu/n2n/blob/master/Windows/n2n_v3_windows_x64_v3.1.1_r1255_static_by_heiye.zip version:

Welcome to n2n v.3.1.1-71-g9618512-dirty-r1255 x64_static for Windows
Built on Jan 31 2023 16:36:11

I installed supernode on Windows Server 2019.

According to the documentation here, supernode should forget about the edge node after 2 minutes.

https://github.com/ntop/n2n/blob/fff50a7d80728069ca101a262d1543d85ac5313f/doc/Faq.md?plain=1#L73-L81

> echo "r 1 edges" | nc64.exe -u -w1 127.0.0.1 5645
{"_tag":"1","_type":"begin","cmd":"edges"}
{"_tag":"1","_type":"row","community":"ltxhhz-net","ip4addr":"192.168.33.101/24","purgeable":0,"macaddr":"00:FF:B6:6B:4C:64","sockaddr":"49.118.105.11:8621","proto":"UDP","desc":"","last_seen":1719907638}
{"_tag":"1","_type":"row","community":"ltxhhz-net","ip4addr":"192.168.33.102/24","purgeable":0,"macaddr":"D6:1B:9E:17:FF:82","sockaddr":"49.118.105.11:5887","proto":"UDP","desc":"CM3588","last_seen":1719907638}
{"_tag":"1","_type":"row","community":"ltxhhz-net","ip4addr":"192.168.33.100/24","purgeable":0,"macaddr":"00:FF:F3:2A:03:51","sockaddr":"116.178.193.11:63908","proto":"UDP","desc":"","last_seen":1719906148}
{"_tag":"1","_type":"end","cmd":"edges"}

the output shows that the '192.168.33.100' node is more than 2 minutes behind the other node 'last_seen', which results in this edge node not being able to be re-registered