Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0 tuntap crash #1192

Open
coneill746 opened this issue Feb 10, 2025 · 1 comment
Open

v3.0 tuntap crash #1192

coneill746 opened this issue Feb 10, 2025 · 1 comment

Comments

@coneill746
Copy link

coneill746 commented Feb 10, 2025

Running in a docker container using an image which has been built from RHEL 8.10

Supernode starts with no issue

[root@kxsa n2n]# sudo supernode -p 1200 -f
10/Feb/2025 13:29:04 [supernode.c:588] WARNING: using default federation name; FOR TESTING ONLY, usage of a custom federation name (-F) is highly recommended!
10/Feb/2025 13:29:04 [sn_utils.c:136] calculated shared secrets for edge authentication
10/Feb/2025 13:29:04 [supernode.c:604] supernode is listening on UDP 1200 (main)
10/Feb/2025 13:29:04 [supernode.c:613] supernode opened TCP 1200 (aux)
10/Feb/2025 13:29:04 [supernode.c:620] supernode is listening on TCP 1200 (aux)
10/Feb/2025 13:29:04 [supernode.c:629] supernode is listening on UDP 5645 (management)
10/Feb/2025 13:29:04 [supernode.c:641] dropping privileges to uid=997, gid=992
10/Feb/2025 13:29:04 [sn_utils.c:807] successfully created resolver thread
10/Feb/2025 13:29:04 [supernode.c:659] supernode started

Edge service crashes

[root@kxsa n2n]# sudo edge -c mynetwork -a 173.245.239.3 -l 173.245.239.3:1200
10/Feb/2025 14:46:31 [edge_utils.c:3774] adding supernode = 173.245.239.3:1200
10/Feb/2025 14:46:31 [edge.c:1085] starting n2n edge 3.0.0 Oct 27 2021 19:04:56
10/Feb/2025 14:46:31 [edge.c:1091] using compression: none.
10/Feb/2025 14:46:31 [edge.c:1092] using null cipher.
10/Feb/2025 14:46:31 [edge_utils.c:392] number of supernodes in the list: 1
10/Feb/2025 14:46:31 [edge_utils.c:394] supernode 0 => 173.245.239.3:1200
10/Feb/2025 14:46:31 [edge_utils.c:467] WARNING: encryption is disabled in edge
10/Feb/2025 14:46:31 [edge_utils.c:483] successfully created resolver thread
10/Feb/2025 14:46:31 [edge.c:1116] use manually set IP address
10/Feb/2025 14:46:31 [tuntap_linux.c:136] ERROR: tuntap ioctl(TUNSETIFF, IFF_TAP) error: Operation not permitted[-1]

Any suggestions about what is going wrong?

@coneill746
Copy link
Author

coneill746 commented Feb 10, 2025

I think I may have to mount the tunnel device (/dev/net/tun) within the container to get this to work.

Not seeing this problem when I try to run this outside of the container.

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

No branches or pull requests

1 participant