From b4a12dbbf4a4759bf24975ca9bfc5096c90ae8b6 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 19 May 2024 17:02:45 +0100 Subject: Wireguard overlay network setup Need to migrate away from networkd, because it can't add new wireguard peers now out of the box without hacks. [1]: https://github.com/systemd/systemd/issues/25547 --- roles/wgnet/templates/wg0.network.j2 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 roles/wgnet/templates/wg0.network.j2 (limited to 'roles/wgnet/templates/wg0.network.j2') diff --git a/roles/wgnet/templates/wg0.network.j2 b/roles/wgnet/templates/wg0.network.j2 new file mode 100644 index 0000000..2f578e5 --- /dev/null +++ b/roles/wgnet/templates/wg0.network.j2 @@ -0,0 +1,6 @@ +[Match] +Name=wg0 + +[Network] +Address={{ wgnet_ip }}/24 +IPMasquerade=ipv4 -- cgit v1.2.3-70-g09d2