softether-vpnserver.service 650 B

123456789101112131415161718192021222324
  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=forking
  7. TasksMax=infinity
  8. EnvironmentFile=-@DIR@/softether/vpnserver
  9. ExecStart=@DIR@/softether/vpnserver/vpnserver start
  10. ExecStop=@DIR@/softether/vpnserver/vpnserver stop
  11. KillMode=process
  12. Restart=on-failure
  13. # Hardening
  14. PrivateTmp=yes
  15. ProtectHome=yes
  16. ProtectSystem=full
  17. ReadOnlyDirectories=/
  18. ReadWriteDirectories=-@DIR@/softether/vpnserver
  19. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYSLOG CAP_SETUID
  20. [Install]
  21. WantedBy=multi-user.target