Reply To: OpenVPN disable Comp-LZO

Home Page Forums Network Management ZeroShell OpenVPN disable Comp-LZO Reply To: OpenVPN disable Comp-LZO

#48281

zevlag
Member

Ok, here’s the process for you:

  1. At a shell as root# mkdir /Database/patches
  2. # vi /Database/patches/vpn_start-nocomplzo.patch
  3. Paste the large block of code below in to the patch file. Save. Quit.
  4. In webinterface, setup menu, startup/cron tab, in the preboot script put:

/usr/bin/patch -p0 -d /root < /Database/patches/vpn_start-nocomplzo.patch
--- kerbynet.cgi/scripts/vpn_start	2009-05-26 18:01:00.000000000 +0200
+++ kerbynet.cgi/scripts/vpn_start.new 2009-07-22 08:24:44.000000000 +0200
@@ -70,5 +70,5 @@
fi
fi
MGT=34099
- bash -c "vpn --dev-type tap --dev VPN99 --mode server --tls-server --proto $PROTO --port $PORT --dh /etc/ssl/dh.pem --ca $REGISTER/system/openvpn/Auth/X509/CAFile --cert $REGISTER/system/openvpn/TLS/cert.pem --key $REGISTER/system/openvpn/TLS/key.pem $NOCERTREQ $AUTHSCRIPT --daemon VPN99_H2L --comp-lzo $POOL --push '$PUSHGW' --push '$REDIRECTGW' --push '$RESOLVER' --push '$PUSHNETS0' $PUSHNETS --client-connect $SCRIPTS/ov_connect --client-disconnect $SCRIPTS/ov_disconnect --mute 3 --management 127.0.0.1 $MGT --keepalive 5 60 --duplicate-cn $PARAM"
+ bash -c "vpn --dev-type tap --dev VPN99 --mode server --tls-server --proto $PROTO --port $PORT --dh /etc/ssl/dh.pem --ca $REGISTER/system/openvpn/Auth/X509/CAFile --cert $REGISTER/system/openvpn/TLS/cert.pem --key $REGISTER/system/openvpn/TLS/key.pem $NOCERTREQ $AUTHSCRIPT --daemon VPN99_H2L $POOL --push '$PUSHGW' --push '$REDIRECTGW' --push '$RESOLVER' --push '$PUSHNETS0' $PUSHNETS --client-connect $SCRIPTS/ov_connect --client-disconnect $SCRIPTS/ov_disconnect --mute 3 --management 127.0.0.1 $MGT --keepalive 5 60 --duplicate-cn $PARAM"
fi