liuxuan30 / autoddvpn

DD-WRT VPN, imported from autoddvpn on code.google.com
1 stars 0 forks source link

没有JFFS路由器的使用grace mode #167

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我借鉴了wget实现PPTP拨号的方式,把grace 
mode和wget方式拼凑了起来,目前测试下来,至少能凑合用……
如果有自己的服务器的话还可以考虑在服务器上面维护vpnup_cu
stom,这样就更完美了。
方法是在firewall里面写入以下命令:

mkdir /tmp/pptp
cd /tmp/pptp
wget http://autoddvpn.googlecode.com/svn/trunk/grace.d/vpnup.sh
wget http://autoddvpn.googlecode.com/svn/trunk/grace.d/vpndown.sh
wget http://autoddvpn.googlecode.com/svn/trunk/pptp/jffs/run.sh
chmod a+x *.sh
sed -i "s/jffs/tmp/g" *.sh
sh run.sh
cd /tmp;wget http://autoddvpn.googlecode.com/svn/trunk/pptp/wget/run.sh  && 
/bin/sh run.sh || touch failed

Original issue reported on code.google.com by liang1...@gmail.com on 5 Oct 2012 at 12:24

GoogleCodeExporter commented 9 years ago
update: 我发现最后一句是多余的

Original comment by liang1...@gmail.com on 5 Oct 2012 at 1:08