I am getting frustrated because I just solved a long standing issue where my dynamic wireguard clients can’t reconnect because when they reset, their time is incorrect, however they don’t connect to the internet until the wireguard tunnel is up (which provides the only route out)
I worked around this by checking the handshake time on each interface and running,
set int wireg del wgX disable
commit
sudo ip link del dev wgX
del interface wireg del wgX disable
commit
if the handshake time is greater than 400 secconds
This has resolved the initial issue with extreme success, all wireguard remote peers can now connect regardless of their local time.
however, now this seems to cause bgp on this vyos router to crash, all wireguard peers lose their routes. and running restart bgp hangs.
Ultimately the only solution is to restart the whole router.
Can someone suggest a more graceful way to purge wireguard peer sessions that doesn’t so suddenly delete the interface , which I suspect is related to bgp daemon locking up?
Alternatively is there a way to re-fresh the bgp daemon directly in systemctl that bypasses the vbash run level commands?
recently updated to 20230905 nightly 1.4