softether-vpnserver.service 832 B

123456789101112131415161718192021222324252627
  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=16777216
  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. ReadOnlyPaths=/
  18. ReadWritePaths=-@DIR@/softether/vpnserver
  19. ReadWritePaths=@CPACK_PACKAGING_INSTALL_PREFIX@/run/softether
  20. ReadWritePaths=@CPACK_PACKAGING_INSTALL_PREFIX@/var/log/softether
  21. ReadWritePaths=@CPACK_PACKAGING_INSTALL_PREFIX@/var/lib/softether
  22. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYSLOG CAP_SETUID
  23. [Install]
  24. WantedBy=multi-user.target