Description
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