Extra vpn settings
This commit is contained in:
parent
43c6406e2f
commit
b738afa07a
|
@ -264,6 +264,9 @@ function install_vpn {
|
|||
sed -i 's|;proto tcp|proto tcp|g' /etc/openvpn/server.conf
|
||||
sed -i 's|proto udp|;proto udp|g' /etc/openvpn/server.conf
|
||||
|
||||
sed -i 's|explicit-exit-notify.*|explicit-exit-notify 0|g' /etc/openvpn/server.conf
|
||||
sed -i 's|tls-auth|;tls-auth|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
|
||||
sed -i 's|#net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
||||
|
|
Loading…
Reference in New Issue