2016-11-25 06:29:12 +00:00
|
|
|
[Unit]
|
|
|
|
Description=VpnCloud network '%I'
|
2019-12-04 12:43:38 +00:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2019-12-06 09:21:07 +00:00
|
|
|
Documentation=man:vpncloud(1)
|
2016-11-25 06:29:12 +00:00
|
|
|
|
|
|
|
[Service]
|
2019-12-06 09:21:07 +00:00
|
|
|
Type=simple
|
|
|
|
ExecStart=/usr/bin/vpncloud --config /etc/vpncloud/%i.net --log-file /var/log/vpncloud-%i.log --stats-file /var/log/vpncloud-%i.stats
|
2016-11-25 06:29:12 +00:00
|
|
|
WorkingDirectory=/etc/vpncloud
|
2019-12-06 09:21:07 +00:00
|
|
|
RestartSec=5s
|
|
|
|
Restart=on-failure
|
|
|
|
LimitNPROC=10
|
|
|
|
PrivateTmp=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectSystem=strict
|
2019-12-22 16:08:26 +00:00
|
|
|
ReadWritePaths=/var/log
|
2019-12-06 09:21:07 +00:00
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT
|
|
|
|
DeviceAllow=/dev/null rw
|
|
|
|
DeviceAllow=/dev/net/tun rw
|
2016-11-25 06:29:12 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|