summaryrefslogtreecommitdiff
path: root/usr/lib/systemd/system/anytun@.service
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd/system/anytun@.service')
-rw-r--r--usr/lib/systemd/system/anytun@.service5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/anytun@.service b/usr/lib/systemd/system/anytun@.service
index 2b7fa72..b28433b 100644
--- a/usr/lib/systemd/system/anytun@.service
+++ b/usr/lib/systemd/system/anytun@.service
@@ -7,6 +7,11 @@ Type=simple
PIDFile=/run/anytun/%i.pid
Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3"
ExecStart=/usr/bin/anytun-launcher.sh vpn
+Restart=on-failure
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
[Install]
WantedBy=multi-user.target