|
@@ -264,6 +264,9 @@ function install_vpn {
|
264
|
264
|
sed -i 's|;proto tcp|proto tcp|g' /etc/openvpn/server.conf
|
265
|
265
|
sed -i 's|proto udp|;proto udp|g' /etc/openvpn/server.conf
|
266
|
266
|
|
|
267
|
+ sed -i 's|explicit-exit-notify.*|explicit-exit-notify 0|g' /etc/openvpn/server.conf
|
|
268
|
+ sed -i 's|tls-auth|;tls-auth|g' /etc/openvpn/server.conf
|
|
269
|
+
|
267
|
270
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
268
|
271
|
sed -i 's|# net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|
269
|
272
|
sed -i 's|#net.ipv4.ip_forward|net.ipv4.ip_forward|g' /etc/sysctl.conf
|