wireguard issue after upgrade

No, I cannot connect with VPN tunnel. Also I have to plug off my Rpi to make it work because I cannot connect with ssh in local address.

Edit. Now even I disable wireguard I have internet test failture in dietpi-config.

Regards.

what do you mean you need to plug off the RPi? And pls put aside the internet connection test. Just do a simple ping to an internet address like google.com to see if it’s working or not.

Hi, I disable wireguard, change DNS to google and I have internet working. Then I reinstall wireguard. First after reboot everything works super slow but after few minutes everything is working OK. I’m afraid after some time it will be broken again. I will ask for help then.

Regards.

Hi Joulinar everything works great until today. I make some apt upgrade and after reboot my Dietpi stop working. I cannot ssh. I must plug off and then turn it on but wireguard not working. Also internet connections:

ping: google.com: Temporary failure in name resolution

Regards.

DNS doesn’t seems to be working.

Temporary failure in name resolution

What DNS you are using?

cat /etc/resolv.conf

I set Google’s DNS before reinstall wireguqrd and everything was OK

dietpi@DietPi:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
dietpi@DietPi:~$

Is the Wireguard client active? If yes, stop it and try to ping google.com

Now I stop, disable wg-quick. Then start and everything works fine.

Looks like client was not connected correct. Probably it’s starting too early before network is fully online.

Can I do something with that?

can you share your service configuration

systemctl cat wg-quick@<client-file-name>.service

That’s it:

dietpi@DietPi:~$ sudo systemctl cat wg-quick@Dietpi.service
# /lib/systemd/system/wg-quick@.service
[Unit]
Description=WireGuard via wg-quick(8) for %I
After=network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
PartOf=wg-quick.target
Documentation=man:wg-quick(8)
Documentation=man:wg(8)
Documentation=https://www.wireguard.com/
Documentation=https://www.wireguard.com/quickstart/
Documentation=https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8
Documentation=https://git.zx2c4.com/wireguard-tools/about/src/man/wg.8

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/wg-quick up %i
ExecStop=/usr/bin/wg-quick down %i
ExecReload=/bin/bash -c 'exec /usr/bin/wg syncconf %i <(exec /usr/bin/wg-quick strip %i)'
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity

[Install]
WantedBy=multi-user.target
dietpi@DietPi:~$

could you share your journalctl pls. I would like to see on which place service is started

  • reboot (yes I know system might not have internet afterwards)
  • login again
  • cd /tmp
  • journalctl > journalctl.txt
  • upload the file to this forum
  • rm journalctl.txt

I lost connection to my Dietpi after some time now. I don’t use any device bacause I on walk with my dog. Even ssh connection don’t work. I must plug off Rpi from power.
Now after login.
https://mojservernas.ddns.net/nextcloud/index.php/s/2kS8XQa5KSPdait

I lllok at first lines and I see that there’s some problem with older VPN I use mullvad. I remove that mlvd conf file and disable service as I remember.
Now I stop mlvd service then disaable and mask.
After reboot it works. Meybe that was reason?

could be

Thanks for help. I will report if that issue will back.
Regards.

Hi Joulinar today I connect with VPN to my Dietpi and web apps and after few minutes everything stop working. So that not was mullvad service.

you are connecting via VPN to your RPI? I though you use the client function on DietPi. Means DietPi is connecting to something.

I use wireguard to tunnel my dietpi (Rpi3). I have wireguqrd server on VPS with CentOS. My Dietpi2 is client.
Regards.

Maybe install openresolve instead systemd-resolve?

Edit. No, install openresolv don’t help. :confused: