From e143b186a3eba9c03af20156ad3a2e729c638dc9 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 19 Mar 2019 10:14:23 +0200 Subject: BREAKING CHANGES ifname is now passed as an argument before the config file. own_public_key is obtained from the interface. --- wgconfd@.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 wgconfd@.service (limited to 'wgconfd@.service') diff --git a/wgconfd@.service b/wgconfd@.service new file mode 100644 index 0000000..d6e4127 --- /dev/null +++ b/wgconfd@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Configure WireGuard interface +Wants=network-pre.target +Before=network-pre.target nftables.service systemd-networkd.service NetworkManager.service + +[Service] +Type=simple +CapabilityBoundingSet=CAP_NET_ADMIN +ExecStartPre=/usr/bin/wg setconf %i /etc/wireguard/%i.conf +ExecStart=/usr/local/bin/wgconfd %i /etc/wireguard/%i.json +StandardError=journal +SyslogLevelPrefix=true + +[Install] +WantedBy=multi-user.target -- cgit