Dead peer detection
aaronmdjones at gmail.com
Sun May 27 08:02:32 CEST 2018
-----BEGIN PGP SIGNED MESSAGE-----
On 25/05/18 14:50, Ryan Whelan wrote:
> I thought this conversation had been had in the past, but I can
> not find it so forgive me if I'm rehashing something thats been
> discussed already.
> How do you guys detect dead peers? Actively via a ping or
> passively via the 'latest handshake' (once it gets past a certain
> age, you assume the peer is offline). Are their other options?
If no traffic is being exchanged, handshakes won't take place either,
so you can't rely on just looking at that.
If you try to communicate with the peer, and the latest handshake is
more than 3 minutes ago, it should be safe to assume the peer is gone;
as handshakes occur (when there's traffic) every 2 minutes.
Note that persistent keep-alive packets count as traffic.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the WireGuard