Advertisement
tpaper

Untitled

May 26th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. # cat /lib/systemd/system/openvpn-server@.service
  2. [Unit]
  3. Description=OpenVPN service for %I
  4. After=syslog.target network-online.target
  5. Wants=network-online.target
  6. Documentation=man:openvpn(8)
  7. Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
  8. Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
  9.  
  10. [Service]
  11. Type=notify
  12. PrivateTmp=true
  13. RuntimeDirectory=openvpn-server
  14. RuntimeDirectoryMode=0710
  15. WorkingDirectory=/etc/openvpn/server
  16. ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf
  17. CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE
  18. LimitNPROC=10
  19. DeviceAllow=/dev/null rw
  20. DeviceAllow=/dev/net/tun rw
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement