summaryrefslogtreecommitdiff
path: root/usr/lib/systemd/system/anytun@.service
blob: 48627e83e2d39339b91a69ace66e5c806a604c1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=secure anycast tunneling daemon for %i
PartOf=anytun.service
Requires=anytun-controld@%i.service
Documentation=man:anytun(8)

[Service]
Type=simple
PIDFile=/run/anytun/%i.pid
Environment="NAME=%i" "DAEMONOPTS=-D --username anytun"
ExecStart=/usr/local/lib/anytun-launcher vpn
Restart=on-failure
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes
DeviceAllow=/dev/net/tun rw
DevicePolicy=closed

[Install]
WantedBy=multi-user.target