diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-04 19:28:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-05 02:30:20 +0100 |
commit | 1f0dc1b69185066d6e493e3a18489806af53a393 (patch) | |
tree | b915a7cf1e8c08a00e72962bc17db53627793ffa /contrib/examples | |
parent | tools: add makefile instructions (diff) | |
download | wireguard-monolithic-historical-1f0dc1b69185066d6e493e3a18489806af53a393.tar.xz wireguard-monolithic-historical-1f0dc1b69185066d6e493e3a18489806af53a393.zip |
tools: add systemd unit and auto-detection
Diffstat (limited to 'contrib/examples')
-rw-r--r-- | contrib/examples/systemd/README | 5 | ||||
-rw-r--r-- | contrib/examples/systemd/wgserver.service | 15 |
2 files changed, 0 insertions, 20 deletions
diff --git a/contrib/examples/systemd/README b/contrib/examples/systemd/README deleted file mode 100644 index 1ef51aa..0000000 --- a/contrib/examples/systemd/README +++ /dev/null @@ -1,5 +0,0 @@ -Until WireGuard receives full integration to the various network -management utilities, there are a number of ways of setting up -a WireGuard tunnel at boot time. This systemd unit file is one -such way of doing things. Probably it should be tweaked before -using. diff --git a/contrib/examples/systemd/wgserver.service b/contrib/examples/systemd/wgserver.service deleted file mode 100644 index dfce1e9..0000000 --- a/contrib/examples/systemd/wgserver.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=WireGuard Server - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/ip link add dev wgserver type wireguard -ExecStart=/bin/ip address add 192.168.177.1/24 dev wgserver -ExecStart=/usr/bin/wg setconf wgserver /etc/wireguard-server.conf -ExecStart=/bin/ip link set up dev wgserver -ExecStop=/bin/sh -c 'umask 077; /usr/bin/wg showconf wgserver > /etc/wireguard-server.conf.tmp && mv /etc/wireguard-server.conf.tmp /etc/wireguard-server.conf' -ExecStop=/bin/ip link del dev wgserver - -[Install] -WantedBy=multi-user.target |