Wireguard issue

Hi,

I split your topic into an own one as it has no relation to the one you posted on first.

Basically you could check status of service running and / or Wireguard status

systemctl status wg-quick@wg0.service
wg

unfortunately, Wireguard server don’t have any logs that could be used to verify or log error messages.

What you could do is to create a 2nd peer that could be used on a different client to check if this would be working.

BTW: don’t trust any connection status inside Wireguard client app. It will show successfully connected, even if not true :wink:
Better to check client logs.

I have a similar issue.
Wireguard (PiVPN) stopped working from one day to another.
Did all DAU fixes aka Router restart, device reboot etc.

2021-09-30 16:39:43.077 [APP] startActivation: Entering (tunnel: MacBookPro)
2021-09-30 16:39:43.078 [APP] startActivation: Starting tunnel
2021-09-30 16:39:43.079 [APP] startActivation: Success
2021-09-30 16:39:43.084 [APP] Tunnel 'MacBookPro' connection status changed to 'connecting'
2021-09-30 16:39:43.156 [NET] App version: 1.0.15 (26)
2021-09-30 16:39:43.156 [NET] Starting tunnel from the app
2021-09-30 16:39:43.311 [NET] DNS64: mapped 88.XX.XXX.XXX to itself.
2021-09-30 16:39:43.311 [NET] Attaching to interface
2021-09-30 16:39:43.312 [NET] UAPI: Updating private key
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 5 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 2 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 1 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 2 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 1 - started
2021-09-30 16:39:43.312 [NET] UAPI: Removing all peers
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 2 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 1 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 6 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 6 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 7 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 7 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 3 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 8 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 4 - started
2021-09-30 16:39:43.312 [NET] Routine: event worker - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 6 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 8 - started
2021-09-30 16:39:43.312 [NET] Routine: TUN reader - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 3 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 4 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 7 - started
2021-09-30 16:39:43.312 [NET] Routine: handshake worker 3 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 4 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 5 - started
2021-09-30 16:39:43.312 [NET] Routine: encryption worker 8 - started
2021-09-30 16:39:43.312 [NET] Routine: decryption worker 5 - started
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Created
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Updating preshared key
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Updating endpoint
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Updating persistent keepalive interval
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Removing all allowedips
2021-09-30 16:39:43.312 [NET] peer(vM9P…6KSQ) - UAPI: Adding allowedip
2021-09-30 16:39:43.313 [NET] peer(vM9P…6KSQ) - UAPI: Adding allowedip
2021-09-30 16:39:43.313 [NET] UDP bind has been updated
2021-09-30 16:39:43.313 [NET] Routine: receive incoming v4 - started
2021-09-30 16:39:43.313 [NET] Routine: receive incoming v6 - started
2021-09-30 16:39:43.313 [NET] peer(vM9P…6KSQ) - Starting
2021-09-30 16:39:43.313 [NET] Interface state was Down, requested Up, now Up
2021-09-30 16:39:43.313 [NET] peer(vM9P…6KSQ) - Routine: sequential receiver - started
2021-09-30 16:39:43.313 [NET] peer(vM9P…6KSQ) - Routine: sequential sender - started
2021-09-30 16:39:43.313 [NET] Device started
2021-09-30 16:39:43.313 [NET] Tunnel interface is utun2
2021-09-30 16:39:43.314 [NET] Network change detected with satisfied route and interface order [en0]
2021-09-30 16:39:43.314 [NET] Routine: receive incoming v4 - stopped
2021-09-30 16:39:43.314 [NET] Routine: receive incoming v6 - stopped
2021-09-30 16:39:43.314 [NET] UDP bind has been updated
2021-09-30 16:39:43.314 [APP] Tunnel 'MacBookPro' connection status changed to 'connected'
2021-09-30 16:39:43.314 [NET] Routine: receive incoming v4 - started
2021-09-30 16:39:43.314 [NET] Routine: receive incoming v6 - started
2021-09-30 16:39:43.543 [NET] Network change detected with satisfied route and interface order [en0, utun2]
2021-09-30 16:39:43.544 [NET] Routine: receive incoming v4 - stopped
2021-09-30 16:39:43.544 [NET] Routine: receive incoming v6 - stopped
2021-09-30 16:39:43.544 [NET] UDP bind has been updated
2021-09-30 16:39:43.544 [NET] Routine: receive incoming v6 - started
2021-09-30 16:39:43.544 [NET] Routine: receive incoming v4 - started
2021-09-30 16:39:43.545 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:39:48.276 [APP] Status update notification timeout for tunnel 'MacBookPro'. Tunnel status is now 'connected'.
2021-09-30 16:39:48.578 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:39:53.741 [NET] peer(vM9P…6KSQ) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-09-30 16:39:53.741 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:39:59.027 [NET] peer(vM9P…6KSQ) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-09-30 16:39:59.027 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:40:04.205 [NET] peer(vM9P…6KSQ) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-09-30 16:40:04.206 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:40:09.303 [NET] peer(vM9P…6KSQ) - Sending handshake initiation
2021-09-30 16:40:14.630 [NET] peer(vM9P…6KSQ) - Handshake did not complete after 5 seconds, retrying (try 2)
2021-09-30 16:40:14.630 [NET] peer(vM9P…6KSQ) - Sending handshake initiation

Are you sure your DDNS still pointing to the correct external IP? Port forwarding still correctly set?

Yep, rechecked everything again.
Nothing changed so far.

Are there any captive portal important to let Wireguard (PiVPN) do it’s thing ?
Or does Wireguard (PiVPN) needs to connect to any external Site for Time/Connection verification or something like that ?

Researched everything from Scratch. Somehow, my Asus Router deleted the correct port forwarding rule.
Now it’s working again.

TBirth
yeah usually it’s one of these thinks like not updated DDNS or incorrect port forwarding. Good you found it :sunglasses: