ntop / n2n

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

Problems using supernode and edge at the same time in termux #1047

Closed fatinghenji closed 1 year ago

fatinghenji commented 1 year ago

supernode:

root@localhost:~/n2n-3.0# ./supernode supernode.conf
09/Sep/2022 04:00:57 [supernode.c:268] the network range for community ip address service is '10.128.255.0...10.255.255.0/24'
09/Sep/2022 04:00:57 [supernode.c:588] WARNING: using default federation name; FOR TESTING ONLY, usage of a custom federation name (-F) is highly recommended!
09/Sep/2022 04:00:57 [sn_utils.c:136] calculated shared secrets for edge authentication
09/Sep/2022 04:00:57 [supernode.c:604] supernode is listening on UDP 9527 (main)
09/Sep/2022 04:00:57 [supernode.c:613] supernode opened TCP 9527 (aux)
09/Sep/2022 04:00:57 [supernode.c:620] supernode is listening on TCP 9527 (aux)
09/Sep/2022 04:00:57 [supernode.c:629] supernode is listening on UDP 5645 (management)
09/Sep/2022 04:00:57 [supernode.c:641] dropping privileges to uid=65534, gid=65534
09/Sep/2022 04:00:57 [sn_utils.c:807] successfully created resolver thread
09/Sep/2022 04:00:57 [supernode.c:659] supernode started

edge:

root@localhost:~/n2n-3.0# ./edge edge.conf
09/Sep/2022 04:08:19 [edge_utils.c:3774] adding supernode = 111.173.80.154:20150
09/Sep/2022 04:08:19 [edge.c:1085] starting n2n edge 3.0.0 Sep  9 2022 03:44:29
09/Sep/2022 04:08:19 [edge.c:1091] using compression: none.
09/Sep/2022 04:08:19 [edge.c:1092] using null cipher.
09/Sep/2022 04:08:19 [edge_utils.c:392] number of supernodes in the list: 1
09/Sep/2022 04:08:19 [edge_utils.c:394] supernode 0 => 111.173.80.154:20150
09/Sep/2022 04:08:19 [edge_utils.c:467] WARNING: encryption is disabled in edge
09/Sep/2022 04:08:19 [edge_utils.c:483] successfully created resolver thread
09/Sep/2022 04:08:19 [edge.c:1116] use manually set IP address
09/Sep/2022 04:08:19 [tuntap_linux.c:122] ERROR: tuntap open() error: Permission denied[13]. Is the tun kernel module loaded?

I did a google but still don't know how I should solve this problem, does anyone have a clue?

Logan007 commented 1 year ago

Supernode looks good. Edge seems to have issue with tuntap driver – even though running as root (root privileges required). Isn't termux on Android? How is general tuntap support there?

fatinghenji commented 1 year ago

Thanks for your answer, I think I have a clue. I will make the next attempt.

Logan007 commented 1 year ago

How did you solve it?