Advertisement
Guest User

Untitled

a guest
Mar 27th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Unit]
  2. StartLimitBurst=99999
  3. Description=OpenVPN tunnel 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. Restart=always
  13. RestartSec=5
  14. PrivateTmp=true
  15. RuntimeDirectory=openvpn-client
  16. RuntimeDirectoryMode=0710
  17. WorkingDirectory=/etc/openvpn/client
  18. ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config %i.conf
  19. CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE
  20. LimitNPROC=10
  21. DeviceAllow=/dev/null rw
  22. DeviceAllow=/dev/net/tun rw
  23.  
  24. [Install]
  25. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement