Installing broke my server’s internet connectivity. #398
Replies: 4 comments 1 reply
-
Same here. Look at the resolv.conf file and make sure you have nameservers listed in there. Then restart it. My copy had the nameservers removed after removing WireGuard and was masked and I had to unmask it to restart it. This is on Ubuntu LTS 22.04 system. |
Beta Was this translation helpful? Give feedback.
-
Wireguard needs IP-Forwarding, which is therefore enabled in the /etc/sysctl.conf by the 'wireguard-install' script - when enabling IP6-forwarding, the so-called "router advertisement" functionality is switched off - this is also described in the respective comment section:
The script in fact adds the above setting. Depending on the VPS hosting provider's specific network setup, this breaks in some cases the IPv6 functionality. On top, in one case, which I have experienced on a VPS hosted at IONOS, their /etc/network/interfaces file on Debian 11 for their standard configuration looks as follows:
What happens here is, that router advertisement is used to trigger DHCP and the DHCP client is forced to act, even if no IPv6 address has been acquired yet (-nw parameter) - as a consequence in that case, the file /etc/resolv.conf was rewritten with IPv6 DNS resolver addresses - which corresponds in combination with a non-working IPv6 functionality symptoms indicating a loss of internet connectivity. To get IPv4 resolvers back, simply execute On my IONOS box, I have solved the issue by replacing the IPv6 config in the /etc/network/interfaces as follows by working with a static IP address (replace the IPv6 address place holder with your real one!):
DON'T blindly try to adopt this solution, if you don't have a IONOS VPS - it really depends on the specific IPv6 auto-configuration in your VPS - playing around with this may even cause your system not to boot any more, so be prepared to get into rescue mode. |
Beta Was this translation helpful? Give feedback.
-
I am having the same issues. Tried uninstalling with the script to revert the changes, but it still happens on every restart. |
Beta Was this translation helpful? Give feedback.
-
The Problem looks like your DNS. Fix the DNS |
Beta Was this translation helpful? Give feedback.
-
Installing wireguard on debian 11 broke my server’s internet.
Edit: removed wireguard, didnt fix it.
ping: google.com: Temporary failure in name resolution
Beta Was this translation helpful? Give feedback.
All reactions