2 Commits

Author SHA1 Message Date
Erik Thuning
116a480e41 Fixed a typo, added a comment regarding sudo safety and set commands.sh executable 2025-02-27 15:05:16 +01:00
Erik Thuning
bc44648c30 Setting routes and dealing more robustly with privileged operations
- Created commands.sh, which is now responsible for all operations that
   require root permissions: addin/deleting routes and reloading wireguard

 - Added creation and deletion of routes when creating or deleting a client.
   This *feels* like a bug in wg-quick, considering that the routes are
   created/deleted as expected on start/stop. Reload informs wireguard of a
   peer's existence but fails to set routes. For now, this is
   a suitable workaround.
2025-02-27 14:59:21 +01:00