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

[Issue] IPv6 global scope address is not added to nymtun0 #5461

Open
pedrofaustino opened this issue Feb 13, 2025 · 2 comments
Open

[Issue] IPv6 global scope address is not added to nymtun0 #5461

pedrofaustino opened this issue Feb 13, 2025 · 2 comments
Assignees
Labels
bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance

Comments

@pedrofaustino
Copy link

Describe the issue
On a server with IPv4 and IPv6 addresses, after following the nym-node operator docs, including network_tunnel_manager.sh, to run nym-node as non root, my gateway was showing on harbourmaster as failing to route IPV6 on localhost as well as failing to route IPV6 to the internet. Running nym-gateway-probe on another machine confirmed harbourmaster's output.

Upon investigation and looking at the output of ip addr show nymtun0 in step 8 of https://nym.com/docs/operators/nodes/nym-node/configuration#routing-configuration I noticed my server's nymtun0's interface was missing a global scope IPv6 address (only had the link scope IPv6 address).

5: nymtun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1420 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 10.0.0.1/16 scope global nymtun0
       valid_lft forever preferred_lft forever
    inet6 fe80::ca09:ab8c:acf9:b812/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

I tried to reboot the server many times, as well as restart the node many times as well, but that didn't solve it.

Looking later through the code at nym/common/network-defaults/src/constants.rs and common/tun/src/linux/tun_device.rs I understood I had to manually run sudo ip -6 addr add fc00:0:0:0:0:0:0:1/112 dev nymtun0 on my server, thus fixing the issues above.

Expected behaviour
I would have expected nym-node to have added that address. I would have also expected network_tunnel_manager.sh to catch the lack of the address and output an error message.

Steps to Reproduce
I have not yet tried to restart the node / reboot the server to see if I would have the same issue. In the meantime, I would like to make a pull request for a very small improvement to network_tunnel_manager.sh to let users know in case nymtun0's IPv4 or IPv6 is not properly set-up.

Which area of Nym were you using?

  • Application: nym-node (not running as root)
  • OS: Ubuntu 22
  • Version: binary 1.4.0
@pedrofaustino pedrofaustino added bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance labels Feb 13, 2025
Copy link

Thank you for raising this issue

@pedrofaustino
Copy link
Author

I've submitted the pull request. I couldn't find specific guidance on expectations around how to submit pull requests, please let me know if I should do differently next time or whether you need more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bug-needs-triage A bug that needs discussing and triage needs-triage qa Quality Assurance
Projects
None yet
Development

No branches or pull requests

2 participants