wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

Clean up inactive peers

Open xyz-nobody opened this issue 1 year ago • 0 comments

Wireguard has no logs, but we can keep track of IPs that were connected months ago, even if a peer has become inactive:

wg show wg0

So when you install the script, it would be cool if you could have the option to add a cron entry to clean all the inactive peers every night. That way we don't keep more information than necessary

  • 1 * * * /usr/sbin/service wg-quick@wg0 restart >/dev/null 2>&1

xyz-nobody avatar Apr 16 '23 08:04 xyz-nobody