diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-19 19:26:01 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-19 19:26:01 +0100 |
commit | 5ec7c4b1b31bb3cea080005b0245d09e05048e11 (patch) | |
tree | d43a4d3a38a017493384c9fdb595f1ed980a7fb3 /roles/wgnet/templates/wg0.conf.j2 | |
parent | b4a12dbbf4a4759bf24975ca9bfc5096c90ae8b6 (diff) | |
download | infra-5ec7c4b1b31bb3cea080005b0245d09e05048e11.tar.gz infra-5ec7c4b1b31bb3cea080005b0245d09e05048e11.tar.bz2 infra-5ec7c4b1b31bb3cea080005b0245d09e05048e11.zip |
Migrate away from networkd for wireguard
Migrate due to a bug [1], which wasn't fixed for some time.
[1]: https://github.com/systemd/systemd/issues/25547
Diffstat (limited to 'roles/wgnet/templates/wg0.conf.j2')
-rw-r--r-- | roles/wgnet/templates/wg0.conf.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/wgnet/templates/wg0.conf.j2 b/roles/wgnet/templates/wg0.conf.j2 new file mode 100644 index 0000000..f79b2b4 --- /dev/null +++ b/roles/wgnet/templates/wg0.conf.j2 @@ -0,0 +1,14 @@ +[Interface] +PrivateKey = {{ wireguard_private_key }} +Address = 10.0.0.1/24 +ListenPort = 51820 + +# flame +[Peer] +PublicKey = YUuBBTKHXsD6tTzcAVWXakZffWKlGS5fAdx7zWSXtlI= +AllowedIPs = 10.0.0.2/32 + +# water +[Peer] +PublicKey = X0Gw37N+AUkZjiyZ9buZ8c2ZzFr+niX3FZjxlyqQq0Q= +AllowedIPs = 10.0.0.3/32 |