-
Notifications
You must be signed in to change notification settings - Fork 46
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
NordVPN prevents Networkd Netplan from renewing Cloud configs #685
Comments
Hi, sorry for a late response. I'll do some experiments and let you know |
Ok, I know more now (thx @mariusSincovici 🙇) So the thing is that we are disabling IPv6 to prevent leaks (also, we don't have servers with IPv6 support currently, so it is not used by app). If anything is trying to interact with IPv6 stack without proper checks, it will probably fail. I think that's why you see this eth0 down error. When you disconnect from VPN we re-enable the IPv6 so that's why it works. So the weird thing on your side is that, for some reason, What you can try is to check if you have IPv6-related config in You can also check if you have IPv6 enabled specifically for some of your interfaces, see this for example https://www.flatcar.org/docs/latest/setup/customization/network-config-with-networkd/#turn-off-ipv6-on-specific-interfaces There is potentially one thing that you can also check:
This That's a long shot IMO - according to kernel docs setting |
Sorry for the very late reply. Initially I managed to create a workaround by having a cronjob run once a day that would stop NordVPN, restart
After reading your message and that link I gave it more time and was finally able to figure it out. So to resolve the issue, you could edit the cloud config file which is usually placed here:
-- As you can see, I've commented out
Now the server stays connected and |
Update: The So I tried that link's solution:
And it sorta worked and didn't! After multiple trials and errors, found that it only works when I uncomment the lines in Still, tho, something funny happens: It works once in every 2 times I run I checked the logs for
I guess what happens is that the changes work now, but next time So far the only solution that works all the time is still the daily cronjob that stops NordVPN, restarts Update 2 Well, the server lost Internet access again after 24 hours. So the only solution working right now is the cronjob! :) |
Hi,
I had run and setup NordVPN on Linux without any issue before, but now I've been trying to use it on a Hetzner VPS running Ubuntu 20.04 or 22.04 and I'm facing an issue that I haven't been able to figure out. I tried contacting the NordVPN support, but their solutions were not very helpful, I think posting it here would be faster to find a workaround.
The environment:
systemd-networkd.service
andnetplan
automated cloud configsNordVPN configs:
-- 67 (UDP) for DHCP requests (no difference)
-- SSH (TCP)
-- 172.0.0.0/8 (The DC's internal subnets on which their DHCP and other servers exist)
So apparently EVERY 36 hours, Networkd uses Netplan's cloudconfigs to inquire whether there's been any change on the cloud side that needs to be reflected on this machine's eth0 Internet-facing interface (well, there's never any change, but anyway).
What happens is that WHEN NordVPN is Connected, somehow Networkd is unable to perform this task.
Which then results in the eth0 interface going down with the following error:
Nov 19 05:52:27 ubuntu-8gb-hel1-1 systemd-networkd[723]: eth0: Could not set route: IPv6 is disabled on nexthop device. Permission denied
Nov 19 05:52:27 ubuntu-8gb-hel1-1 systemd-networkd[723]: eth0: Failed
And then I have to access the VPS through direct Console, and perform:
-- Which works flawlessly, pulls the configs, and brings eth0 back up.
Also to replicate the problem manually:
-- And your machine will lose Internet/network access entirely as eth0 will go down and you have to console into the device and do the steps above to fix it!
I've also tried testing it on new VPS instances in case this one was broken, same thing.
Any ideas would be appreciated.
If nothing works, probably the only workaround currently would be to setup a cronjob to disconnect NordVPN, restart Networkd, and reconnect NordVPN maybe every 35 hours before the OS does it at the 36th!
The text was updated successfully, but these errors were encountered: