diff options
Diffstat (limited to 'contrib')
-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 |