[Issue] IPv6 global scope address is not added to nymtun0 #5461
Labels
bug
Something isn't working
bug-needs-triage
A bug that needs discussing and triage
needs-triage
qa
Quality Assurance
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. Runningnym-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).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
andcommon/tun/src/linux/tun_device.rs
I understood I had to manually runsudo 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?
The text was updated successfully, but these errors were encountered: