1、安装完centos,开启转发
新增一行:net.ipv4.ip_forward = 1
生效:
2、安装oas
yum -y install openvpn-as
3、crack
yum install -y zip unzip epel-release vim curl wget net-tools
cd /usr/local/openvpn_as/lib/python
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
unzip pyovpn-2.0-py3.6.zip
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
python3 -O -m compileall uprop.py && mv pycache /uprop.cpython-36.opt-1.pyc uprop.pyc
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
cd /usr/local/openvpn_as/bin
DELETE
yes