Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/softether-vpnbridge.service')
-rw-r--r--systemd/softether-vpnbridge.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/systemd/softether-vpnbridge.service b/systemd/softether-vpnbridge.service
new file mode 100644
index 00000000..2f508820
--- /dev/null
+++ b/systemd/softether-vpnbridge.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=SoftEther VPN Bridge
+After=network.target auditd.service
+ConditionPathExists=!/opt/vpnbridge/do_not_run
+
+[Service]
+Type=forking
+ExecStart=/opt/vpnbridge/vpnbridge start
+ExecStop=/opt/vpnbridge/vpnbridge stop
+KillMode=process
+Restart=on-failure
+
+# Hardening
+PrivateTmp=yes
+ProtectHome=yes
+ProtectSystem=full
+ReadOnlyDirectories=/
+ReadWriteDirectories=-/opt/vpnbridge
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID
+
+[Install]
+WantedBy=multi-user.target
+