20 Commits

Author SHA1 Message Date
Erik Thuning
2bdb6e35c6 Still trying to get the tunnel going 2025-02-20 18:07:00 +01:00
Erik Thuning
1374533819 Trying to get the tunnel working 2025-02-20 17:56:40 +01:00
Erik Thuning
432fe8955b Using the wireguard service instead of direct wg call for reload 2025-02-20 16:11:54 +01:00
Erik Thuning
48fc34d315 Added optional support for extra server settings to be included in the server config 2025-02-20 16:04:11 +01:00
Erik Thuning
b1ff300fc8 Expanded locking to the entire config creation function
This to eliminate certain race conditions. Also initial attempt at
dealing with the wireguard interface.
2025-02-19 21:11:41 +01:00
Erik Thuning
2616c59769 The collected serverside config should work now
Also did some type hint housekeeping and formatting tweaks
2025-02-19 18:29:42 +01:00
Erik Thuning
e3d6e52217 Added a thread-safe solution to finding the next free ip 2025-02-19 18:10:04 +01:00
Erik Thuning
8c9842484f Added type hints 2025-02-19 18:08:08 +01:00
Erik Thuning
463fc62d60 Added example config and made wireguard.py read its server keys from disk 2025-02-19 15:35:11 +01:00
Erik Thuning
1b44178084 FIX: Fat fingers 2025-02-19 15:19:36 +01:00
Erik Thuning
1e5bf1aa9a Set samesite attribute as appropriate on all cookies. 2025-02-19 15:11:21 +01:00
Erik Thuning
8481b023b4 FIX: Apparently, module-global objects survive between requests
Moved the wg object into the app object, so it gets the expected lifecycle.
2025-02-19 14:45:53 +01:00
Erik Thuning
b454faea98 Switched to UUID/arbitrary ID:s for configs
Names are now for human readability only
2025-02-18 17:56:41 +01:00
Erik Thuning
b316356de7 FIX: missing member variables 2025-02-18 17:53:27 +01:00
Erik Thuning
804347a4d6 Fix: only set a username cookie if there is data to assign to it 2025-02-18 17:51:04 +01:00
Erik Thuning
343d7cd863 Fixed a typo 2025-02-18 17:49:44 +01:00
cfed319563 Moving closer to actual functional wireguard handling 2025-02-14 15:54:15 +01:00
c146d54d41 Lifted cookie names into variables instead of literals 2025-02-14 15:50:57 +01:00
bc4dd5d6f9 Further along the way to MVP 2025-02-13 16:51:28 +01:00
3213604a78 Initial commit 2025-02-12 16:35:20 +01:00