~fkooman/vpn-documentation

ref: 9d22c514a9f893498f2c8bf8688d2e8a6c9adb4d vpn-documentation/LIMIT_N_PROC.md -rw-r--r-- 681 bytes
9d22c514François Kooman hopefully fix IPv6 when deploying on VM using RA 4 months ago

#LimitNPROC

By default the systemd unit file for openvpn-server only allows 10 OpenVPN processes. If you have (many) profiles and many OpenVPN processes this may fail to start some OpenVPN processes.

To fix this we need to override the OpenVPN service file and prevent it from being overriden by (future) software updates.

$ sudo cp /lib/systemd/system/openvpn-server@.service /etc/systemd/system

Modify /etc/systemd/system/openvpn-server@.service, by changing:

LimitNPROC=10

To

LimitNPROC=128

Now we have to apply the changes:

$ sudo systemctl daemon-reload
$ sudo vpn-maint-apply-changes

This should make everything work fine (again).