From 193f5aa20c3574cfd684e554b1d2efeaba552156 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Sep 2017 23:35:11 +0100 Subject: [PATCH] Set maximum vpn clients --- src/freedombone-app-vpn | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-app-vpn b/src/freedombone-app-vpn index 4fcb6abb..d48de147 100755 --- a/src/freedombone-app-vpn +++ b/src/freedombone-app-vpn @@ -249,6 +249,7 @@ function install_vpn { sed -i 's|;push "dhcp-option|push "dhcp-option|g' /etc/openvpn/server.conf sed -i 's|;user nobody|user nobody|g' /etc/openvpn/server.conf sed -i 's|;group nogroup|group nobody|g' /etc/openvpn/server.conf + sed -i 's|;max-clients.*|max-clients 2|g' /etc/openvpn/server.conf echo 1 > /proc/sys/net/ipv4/ip_forward sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf