softether-vpnserver.service 582 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=SoftEther VPN Server
  3. After=network.target auditd.service
  4. ConditionPathExists=!/opt/vpnserver/do_not_run
  5. [Service]
  6. Type=forking
  7. EnvironmentFile=-/opt/vpnserver
  8. ExecStart=/opt/vpnserver/vpnserver start
  9. ExecStop=/opt/vpnserver/vpnserver stop
  10. KillMode=process
  11. Restart=on-failure
  12. # Hardening
  13. PrivateTmp=yes
  14. ProtectHome=yes
  15. ProtectSystem=full
  16. ReadOnlyDirectories=/
  17. ReadWriteDirectories=-/opt/vpnserver
  18. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID
  19. [Install]
  20. WantedBy=multi-user.target