From c3b30460b49eac11f82acb465e9682a3c308115b Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sun, 13 Oct 2019 02:01:20 +0200 Subject: Removed systemd-networkd --- templates/wg.conf.j2 | 16 ++++++++++++++++ templates/wg.netdev.j2 | 21 --------------------- templates/wg.network.j2 | 5 ----- 3 files changed, 16 insertions(+), 26 deletions(-) create mode 100644 templates/wg.conf.j2 delete mode 100644 templates/wg.netdev.j2 delete mode 100644 templates/wg.network.j2 (limited to 'templates') diff --git a/templates/wg.conf.j2 b/templates/wg.conf.j2 new file mode 100644 index 0000000..6a62c7f --- /dev/null +++ b/templates/wg.conf.j2 @@ -0,0 +1,16 @@ +#tamriel 10.0.27.1 +[Interface] +ListenPort = 48574 +PrivateKey = {{ wireguard_private_key }} + +# balmora 10.0.27.2 +[Peer] +PublicKey = 6dbkVQAQPkbk0+wt6f+wge5cPW6THe0Kua830jio528= +AllowedIPs = 10.0.27.2/32 +PersistentKeepalive = 20 + +# motorola g6 10.0.27.3 +[Peer] +PublicKey = pqSY7SCKuRkHBTMWVhYAASrx/A1HF8Nlb3emnO8WqAc= +AllowedIPs = 10.0.27.3/32 +PersistentKeepalive = 20 diff --git a/templates/wg.netdev.j2 b/templates/wg.netdev.j2 deleted file mode 100644 index 5d0bf5f..0000000 --- a/templates/wg.netdev.j2 +++ /dev/null @@ -1,21 +0,0 @@ -[NetDev] -Name = wg0 -Kind = wireguard -Description = Wireguard - -#tamriel 10.0.27.1 -[WireGuard] -ListenPort = 48574 -PrivateKey = {{ wireguard_private_key }} - -# balmora 10.0.27.2 -[WireGuardPeer] -PublicKey = 6dbkVQAQPkbk0+wt6f+wge5cPW6THe0Kua830jio528= -AllowedIPs = 10.0.27.2/32 -PersistentKeepalive = 20 - -# motorola g6 10.0.27.3 -[WireGuardPeer] -PublicKey = pqSY7SCKuRkHBTMWVhYAASrx/A1HF8Nlb3emnO8WqAc= -AllowedIPs = 10.0.27.3/32 -PersistentKeepalive = 20 diff --git a/templates/wg.network.j2 b/templates/wg.network.j2 deleted file mode 100644 index 31fef48..0000000 --- a/templates/wg.network.j2 +++ /dev/null @@ -1,5 +0,0 @@ -[Match] -Name = wg0 - -[Network] -Address = 10.0.27.1/24 -- cgit 1.4.1