ntop / n2n

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

ERROR: selection_criterion unknown selection strategy configuration #1085

Open ghostry opened 1 year ago

ghostry commented 1 year ago

systemctl status edge.service -l

● edge.service - n2n edge process Loaded: loaded (/etc/systemd/system/edge.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2023-04-08 15:02:46 CST; 1min 47s ago Main PID: 191289 (edge) Tasks: 1 (limit: 8186) Memory: 256.0K CPU: 8ms CGroup: /system.slice/edge.service └─191289 /usr/sbin/edge /etc/n2n/edge.conf -f

Apr 08 15:02:46 pve edge[191289]: 08/Apr/2023 15:02:46 [edge.c:1307] edge started Apr 08 15:02:46 pve edge[191289]: 08/Apr/2023 15:02:46 [edge.c:1307] edge started Apr 08 15:02:46 pve edge[191289]: 08/Apr/2023 15:02:46 [edge_utils.c:1169] successfully joined multicast group 224.0.0.68:1968 Apr 08 15:02:46 pve edge[191289]: 08/Apr/2023 15:02:46 [edge_utils.c:2537] [OK] edge <<< ================ >>> supernode Apr 08 15:02:58 pve edge[191289]: 08/Apr/2023 15:02:58 [sn_selection.c:144] ERROR: selection_criterion unknown selection strategy configuration

edge -v

Welcome to n2n v.3.1.1-76-g709590d for Debian 11.6 Built on Apr 8 2023 14:50:59 Copyright 2007-2022 - ntop.org and contributors

basic usage: edge (see edge.conf)

        or   edge  -c <community name> 
                   -l <supernode host>:<port> 
                  [-a <tap IP address>] 
                  [-d <tap device name>] 
                  [-k <encryption key>] 

-h shows a quick reference including all available options --help gives a detailed parameter description man files for n2n, edge, and supernode contain in-depth information

Logan007 commented 1 year ago

Hello,

Can you confirm that your edges run on the same version as the supernode? And also, do your edges use some supernode selection strategy option such as --select-rtt or --select-mac?

ghostry commented 1 year ago

Hello,

Can you confirm that your edges run on the same version as the supernode? And also, do your edges use some supernode selection strategy option such as --select-rtt or --select-mac?

supernode -h

Welcome to n2n v.3.1.1-47-ga74435c for x86_64-unknown-linux-gnu Built on Nov 13 2022 14:10:05 Copyright 2007-2022 - ntop.org and contributors

supernode only use -v -p

supernode and edge not use --select-rtt or --select-mac

ghostry commented 1 year ago

I unified all versions, added -r -E -D --select-rtt parameters, now I can ping, But the error message still exists.

Logan007 commented 1 year ago

Thank you for the report. So, apart from this error message, connection works without issue now?

ghostry commented 1 year ago

yes

Logan007 commented 1 year ago

Thank you for the report then. I will have a look once I get to a broader testing session again.