softether-vpnserver.service 539 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=SoftEther VPN Server
  3. After=network.target auditd.service
  4. ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
  5. [Service]
  6. Type=exec
  7. TasksMax=infinity
  8. ExecStart=@DIR@/softether/vpnserver/vpnserver execsvc
  9. Restart=on-failure
  10. # Hardening
  11. PrivateTmp=yes
  12. ProtectHome=yes
  13. ProtectSystem=full
  14. ReadOnlyDirectories=/
  15. ReadWriteDirectories=-@DIR@/softether/vpnserver
  16. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYSLOG CAP_SETUID
  17. [Install]
  18. WantedBy=multi-user.target