I was running a wireguard 1 to 1 connection between a Flint (wg server) and Opal (wg client) for about 18 days with no issue. Today, I couldnt reach the lan anymore from Flint to Opal, yet the wireguard connection was still connected. I can reach the Opal but no lan behind it anymore, Opal web interface showing this where the wg connection is connected though:
Log is spamming this:
Sun Feb 4 12:04:52 2024 kern.info kernel: [1633232.084828] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:07:41 2024 kern.info kernel: [1633400.424249] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:09:46 2024 kern.info kernel: [1633525.666319] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:11:47 2024 kern.info kernel: [1633646.325443] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:13:49 2024 kern.info kernel: [1633768.232739] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:15:53 2024 kern.info kernel: [1633892.498445] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:17:53 2024 kern.info kernel: [1634012.936047] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:19:53 2024 kern.info kernel: [1634133.020117] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:21:53 2024 kern.info kernel: [1634253.152861] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:23:55 2024 kern.info kernel: [1634375.012528] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
Sun Feb 4 12:25:55 2024 kern.info kernel: [1634495.068701] wireguard: wireguard-hotplug IFNAME=wgclient ACTION=KEYPAIR-CREATED
connection is on though:
Connecting via SSH on the Opal and I can ping all clients on the subnet with no problem.
Seems some service crashed on the Opal mostly GLInet logic scripts? Anyone seen this happening before? Workaround solutions except rebooting the Opal?
Doing this remotely on the Opal via ssh had no effect:
/etc/init.d/firewall reload
But doing this fixed the issue:
ifup wgclient
Now web interface shows properly connected status again and reaching Opal lan also works:
Seems there is some flaw in the Glinet watchdog script. any way to write a simple workaround script for this? how would you check if the connection is broken though, if you can reach the wgserver and other way around.