Set maximum vpn clients

This commit is contained in:
Bob Mottram 2017-09-25 23:35:11 +01:00
parent f4281adfcd
commit 193f5aa20c
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ function install_vpn {
sed -i 's|;push "dhcp-option|push "dhcp-option|g' /etc/openvpn/server.conf 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|;user nobody|user nobody|g' /etc/openvpn/server.conf
sed -i 's|;group nogroup|group 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 echo 1 > /proc/sys/net/ipv4/ip_forward
sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf