This unit is provided by:
Options
-
[Install]
-
[Service]
-
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE
-
DeviceAllow=/dev/null rw /dev/net/tun rw
-
ExecReload=/usr/bin/kill -HUP $MAINPID
-
ExecStart=/usr/sbin/openvpn --daemon openvpn@%i --suppress-timestamps --writepid /run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
-
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid
-
KillMode=process
-
LimitNPROC=100
-
PIDFile=/run/openvpn/%i.pid
-
PrivateTmp=yes
-
ProtectHome
Introduced in systemd 214=yes -
ProtectSystem
Introduced in systemd 214=yes -
Restart=on-failure
-
RestartSec=5s
-
Type=notify
-
WorkingDirectory=/etc/openvpn
-
-
[Unit]
-
After=network-online.target
-
After=network.target
-
Before=systemd-user-sessions.service
-
Description=OpenVPN connection to %i
-
Description=OpenVPN tunneling daemon instance using /etc/openvpn/%i.conf
-
Documentation=man:openvpn(8) https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage https://community.openvpn.net/openvpn/wiki/HOWTO
-
PartOf=openvpn.service
-
PartOf=openvpn.target
-
Wants=network-online.target
-
Additionnal notes
Nothing here.