WireGuard - After Reboot, Clients Can't Connect

Started by dfw3xam1n3r, October 26, 2024, 08:59:29 PM

Previous topic - Next topic
October 26, 2024, 08:59:29 PM Last Edit: October 26, 2024, 09:57:07 PM by dfw3xam1n3r
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.
OPNsense 24.7.7  - QEMU/KVM (Ubuntu), i9-9900K 16 core @ 5ghz, 16GB RAM, 64GB SSD, 2 dedicated SFP+ NICs

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.
Intel Celeron J4125 CPU @ 2GHz (4 cores), 8GB RAM, 4 Intel NICs

Exactly the same here, logs show the same. Restart helps.

No problem here, maybe you share a misconfiguration? Show what you can and also show your rule for the WireGuard port.