Set maximum vpn clients
This commit is contained in:
parent
f4281adfcd
commit
193f5aa20c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue