wireguard issue after upgrade Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard issue after upgrade

Post by Joulinar »

can you share your service configuration

Code: Select all

systemctl cat wg-quick@<client-file-name>.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

That's it:

Code: Select all

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:~$
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard issue after upgrade

Post by Joulinar »

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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

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 ... Qa5KSPdait

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?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard issue after upgrade

Post by Joulinar »

could be
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

Thanks for help. I will report if that issue will back.
Regards.
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

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.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard issue after upgrade

Post by Joulinar »

you are connecting via VPN to your RPI? I though you use the client function on DietPi. Means DietPi is connecting to something.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

I use wireguard to tunnel my dietpi (Rpi3). I have wireguqrd server on VPS with CentOS. My Dietpi2 is client.
Regards.
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: wireguard issue after upgrade

Post by przemko »

Maybe install openresolve instead systemd-resolve?

Edit. No, install openresolv don't help. 😕
Post Reply