Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up inactive peers #446

Open
xyz-nobody opened this issue Apr 16, 2023 · 0 comments
Open

Clean up inactive peers #446

xyz-nobody opened this issue Apr 16, 2023 · 0 comments

Comments

@xyz-nobody
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant