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

Persistence: WireGuad Interface/Peer Configuration #7

Open
jamescun opened this issue Feb 26, 2020 · 3 comments
Open

Persistence: WireGuad Interface/Peer Configuration #7

jamescun opened this issue Feb 26, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jamescun
Copy link
Owner

WG-API currently makes no attempt to persist WireGuard configuration between restarts. The restart may be of the wg-api daemon, or of the system itself.

In the case of the wg-api daemon being restarted, all configuration is persisted as the WireGuard interface itself is used as the source of truth. No persistence nessecary.

In the case of the system restarting, the system may not be configured with wg-quick to load configuration on startup, and thus wg-api will see an empty state. No attempt is made to store configuration changes made by wg-api on termination, this must be done seperately.

WG-API should have a mechanism to snapshot and restore WireGuard's interface/peer configuration, perferably in a format that is compatible with wg-quick.

@jamescun jamescun added the enhancement New feature or request label Feb 26, 2020
@jamescun jamescun self-assigned this Feb 26, 2020
@vandot
Copy link

vandot commented Mar 4, 2020

@jamescun isnt SaveConfig = true inside server config for that?

@jamescun
Copy link
Owner Author

jamescun commented Mar 6, 2020

@vandot SaveConfig = true is a feature that is part of wg-quick rather than wg, and requires extra configuration to automatically load/save configuration as part of boot/shutdown.

This question is whether or not wg-api should have the same / similar functionality, or if we should simply document how to achieve this with wg-quick

@vandot
Copy link

vandot commented Mar 8, 2020

@jamescun for start at least to document that people configure server with SaveConfig = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants