OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: dfw3xam1n3r on October 26, 2024, 08:59:29 PM

Title: WireGuard - After Reboot, Clients Can't Connect
Post by: dfw3xam1n3r on October 26, 2024, 08:59:29 PM
Anecdotally after the most recent update, WireGuard seems to be having issues after a reboot of OPNsense now. WG clients aren't able to connect, I restart the WG service, and they're able to connect again. Easy to mitigate, but it's very manual intervention, and not sure why it started happening. Just thought I'd mention it.
Title: Re: WireGuard - After Reboot, Clients Can't Connect
Post by: erlendlk on October 27, 2024, 08:46:06 AM
Same here. I´ve seen this before (don´t remember the exact version numbers), and suddenly "it got fixed" in a later release, so I didn´t bother reporting it. But now it´s back with 24.7.7. What I can see in the WG logs after reboot is a log line like this (for an instance X), right after WG start:

2024-10-26T19:24:47 Notice wireguard wireguard instance X (wg0) can not reconfigure without stopping it first.

Then, after restarting the service manually, the issue is resolved. Same log content, except for the line above.

My setup is pretty straight forward, on bare metal. Single WG instance.
Title: Re: WireGuard - After Reboot, Clients Can't Connect
Post by: wirefall on October 27, 2024, 11:30:56 AM
Exactly the same here, logs show the same. Restart helps.
Title: Re: WireGuard - After Reboot, Clients Can't Connect
Post by: Bob.Dig on October 27, 2024, 12:07:07 PM
No problem here, maybe you share a misconfiguration? Show what you can and also show your rule for the WireGuard port.