Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 1.55 KB

2.9.4.md

File metadata and controls

49 lines (46 loc) · 1.55 KB

1、安装完centos,开启转发

nano /etc/sysctl.conf

新增一行:net.ipv4.ip_forward = 1 生效:

sysctl -p

2、安装oas

yum -y install openvpn-as

passwd openvpn

3、crack

yum install -y zip unzip epel-release vim curl wget net-tools

systemctl stop openvpnas

cd /usr/local/openvpn_as/lib/python

mkdir unlock_license

mv pyovpn-2.0-py3.6.egg pyovpn-2.0-py3.6.egg_bak

cp -rp pyovpn-2.0-py3.6.egg_bak unlock_license/pyovpn-2.0-py3.6.zip

cd unlock_license/

unzip pyovpn-2.0-py3.6.zip

cd pyovpn/lic/

pip3 install uncompyle6

uncompyle6 uprop.pyc > uprop.py

新增一行:ret['concurrent_connections'] = 2048 位置在: apc = self._apc() v_agg += apc if ret == None: ret = {} ret[prop] = max(v_agg + v_nonagg, bool('v_agg') + bool('v_nonagg')) ret['apc'] = bool(apc) if DEBUG: print("ret['%s'] = v_agg(%d) + v_nonagg(%d)" % (prop, v_agg, v_nonagg)) ret['concurrent_connections'] = 2048 return ret

rm -f uprop.pyc

python3 -O -m compileall uprop.py && mv pycache/uprop.cpython-36.opt-1.pyc uprop.pyc

rm -rf pycache uprop.py

cd /usr/local/openvpn_as/lib/python/unlock_license

zip -r pyovpn-2.0-py3.6_cracked.zip common EGG-INFO pyovpn

mv pyovpn-2.0-py3.6_cracked.zip pyovpn-2.0-py3.6.egg

mv pyovpn-2.0-py3.6.egg ../ && cd ..

cd /usr/local/openvpn_as/lib/python

rm -rf pycache/*

cd /usr/local/openvpn_as/bin

./ovpn-init

DELETE yes