wireguard icon indicating copy to clipboard operation
wireguard copied to clipboard

Can't update packages or install anything on DO droplet after running script

Open Crazy-Owl opened this issue 3 years ago • 1 comments

Hello, I'm unable to use apt update or apt upgrade on digital ocean droplet after running the script and setting up everything.

Err:1 http://mirrors.digitalocean.com/ubuntu focal InRelease
  Temporary failure resolving 'mirrors.digitalocean.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease
  Temporary failure resolving 'mirrors.digitalocean.com'
Err:4 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease
  Temporary failure resolving 'mirrors.digitalocean.com'

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'mirrors.digitalocean.com'
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal-updates/InRelease  Temporary failure resolving 'mirrors.digitalocean.com'
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/focal-backports/InRelease  Temporary failure resolving 'mirrors.digitalocean.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Also I can't pull or push anything to/from github on my machine when WG tunnel is enabled. I think this has something to do with unbound. What info can I provide to clarify what's going on?

Crazy-Owl avatar Sep 16 '21 10:09 Crazy-Owl

Hi!

Hello, I'm unable to use apt update or apt upgrade on digital ocean droplet after running the script and setting up everything.

Thank you for reporting, I'll check check it out as soon as I have some free time.

Also I can't pull or push anything to/from github on my machine when WG tunnel is enabled. I think this has something to do with unbound. What info can I provide to clarify what's going on?

Unbound is a DNS resolver, and it shouldn't affect pull or push to/from GitHub as well as enabled/disabled tunnels.

To ensure that the wireguard tunnel work correct, you can perform these steps:

  1. Try to ping 1.1.1.1 (this should prove that your connection is not interrupted)
  2. Check your IP with any tool like https://ipinfo.io/ (this should prove that the tunnel work properly)
  3. Try to check DNS resolution. The way to do this depends on your OS. The easiest way is just to open a random site in a browser (this should prove that Unbound work properly)

I hope it will help you with the issue.

drew2a avatar Sep 27 '21 19:09 drew2a

Hi, I tried your awesome script (thank you!) to setup Wireguard on Debian 10 and then Ubuntu 22.04. Everything went well, no errors. Downloaded client config file. Wireguard client is able to connect but after that, DNS just stop working on my laptop until WG client disconnected

$ ping github.com
ping: cannot resolve github.com: Unknown host

The same result is when I install with unbound or without. Any ideas what can be wrong?

nilcolor avatar Jul 06 '23 20:07 nilcolor

@nilcolor thanks for the heads up! I'll go through the scripts this weekend and get back to you after that.

drew2a avatar Jul 07 '23 11:07 drew2a

If this may help, I tried this on DigitalOcean.

nilcolor avatar Jul 08 '23 12:07 nilcolor

Seems like it's not only DNS... The moment I activate WG tinnel from the laptop - I cannot use internet at all. Here the red arrow point to spike (no ping) in the gping output. Immediately after disconnecting WG - everything is back again. SCR-20230708-toba

nilcolor avatar Jul 08 '23 17:07 nilcolor

🤦 looks like the issue was on my side. DPI (( Sorry, when I tested from location that not "protected" by DPI - everything just works!

nilcolor avatar Jul 09 '23 19:07 nilcolor