Open GoogleCodeExporter opened 8 years ago
感謝你的回報,我的開發環境並沒有讓DDWRT同時兼做PPTP
server, 所以這個部分我還沒碰過。
也許你試試看用graceMode的機制,在graceMode default gw是wan gw,
所以應該不存在default gw跑掉的問題。
Original comment by pahud...@gmail.com
on 25 Feb 2011 at 7:04
我的环境是路由器跑gracemode,做PPTP服务端,做OPENVPN客户端。
目前只有一个问题,我的nexus
s通过PPTP拨入后,只要不运行youtube或者twitter之类的app。就能�
��浏览器正常打开twitter,youtube的网站(当然也包括其它网站�
��。如果打开了这些app,android的网络就完全断掉,连PPTP隧道�
��立的网关都ping不通(机器没有root,没办法执行其他命令排�
��);
还试过以下两种方式
1、手机开启wifi热点功能,笔记本接入后拨PPTP回路由器。一��
�正常
2、手机开启wifi热点功能,并拨PPTP回路由器。手机能正常翻��
�,笔记本接入wifi热点后连手机IP都ping不通。
Original comment by squallg...@gmail.com
on 26 Feb 2011 at 1:23
由于我的路由器没有jffs分区,只能采用wget方式,所以不能测
试。不过我觉得gracemode应该可行,它没有更改defualt gw。
Original comment by yangjuny...@gmail.com
on 1 Mar 2011 at 8:24
是的,請試試看graceMode
Original comment by pahud...@gmail.com
on 1 Mar 2011 at 8:28
不知道對於沒有JFFS的ddwrt
有沒有辦法是用GraceMode。。
我在用的就是DD
OPENVPN版本。沒有jffs。只能用pptp的方式。。。:(((
Original comment by zly...@gmail.com
on 5 Mar 2011 at 6:19
麻煩針對主題回應,如果沒有適合主題請另開一個issue
Original comment by pahud...@gmail.com
on 5 Mar 2011 at 6:28
如果想用classicMode,可以试试我改好的脚本。见附件。
Original comment by liangyuz...@gmail.com
on 31 Jan 2012 at 4:25
Attachments:
我也遇到了一模一样的问题:我的dd-wrt路由器兼做pptp
server和client。路由器作为client连接到国外的服务器,一切运��
�正常。但是当有pptp客户端连接到路由器的server之后,default
gw就变成了wan_gateway了。
我在ssh执行如下命令:
route del default gw $OLDGW
route add default gw $VPNGW
效果就恢复了。
所以初步估计是客户端拨进pptp sever的时候,更改了default gw。
排查了一下,看到:/tmp/pptpd/ip-up里面有一句:startservice
set_routes -f
不是很清楚它的作用。
请指教。
Original comment by river.do...@gmail.com
on 9 Jul 2014 at 4:35
补充说明一下,我用的是wget模式,从局域网的ftp服务器取回�
��.sh文件。
Original comment by river.do...@gmail.com
on 9 Jul 2014 at 4:36
7楼的方法很好用,完美搞定。
日志如下:
[INFO#1064] 01/Jan/1970:08:00:15 log starts
[INFO#1064] 01/Jan/1970:08:00:15 pptp+jffs mode
[INFO#1064] 01/Jan/1970:08:00:15 getting vpnup.sh
[INFO#1064] 01/Jan/1970:08:00:15 getting vpndown.sh
[INFO#1064] 01/Jan/1970:08:00:16 getting pptpdup.sh
[INFO#1064] 01/Jan/1970:08:00:16 modifying /tmp/pptpd_client/ip-up
[INFO#1064] 01/Jan/1970:08:00:16 /tmp/pptpd_client/ip-up not exists, sleep
10sec.
[INFO#1064] 01/Jan/1970:08:00:26 /tmp/pptpd_client/ip-up modified
[INFO#1064] 01/Jan/1970:08:00:26 modifying /tmp/pptpd_client/ip-down
[INFO#1064] 01/Jan/1970:08:00:26 /tmp/pptpd_client/ip-down modified
[INFO#1064] 01/Jan/1970:08:00:26 modifying /tmp/pptpd/ip-up
[INFO#1064] 01/Jan/1970:08:00:26 /tmp/pptpd/ip-up modified
[INFO#1064] 01/Jan/1970:08:00:26 ALL DONE. Let's wait for VPN being connected.
[INFO#1578] 01/Jan/1970:08:00:37 vpnup.sh started
[INFO#1578] 01/Jan/1970:08:00:37 router type: DD-WRT
[INFO#1578] 01/Jan/1970:08:00:38 make xx.xx.xx.xx gw xx.xx.xx.xx.
[INFO#1578] 01/Jan/1970:08:00:38 delete default gw xx.xx.xx.xx
[INFO#1578] 01/Jan/1970:08:00:38 add default gw 10.10.10.1
[INFO#1578] 01/Jan/1970:08:00:38 adding the static routes, this may take a
while.
[INFO#1578] 01/Jan/1970:08:01:19 preparing the exceptional routes
[INFO#1578] 01/Jan/1970:08:01:19 exceptional routes disabled.
[INFO#1578] 01/Jan/1970:08:01:19 exceptional routes features detail:
http://goo.gl/fYfJ
[INFO#1578] 01/Jan/1970:08:01:22 vpnup.sh ended
[INFO#1578] 01/Jan/1970:08:01:22 restarting DNS
[INFO#5713] 10/Jul/2014:13:25:10 pptpdup.sh started
[INFO#5713] 10/Jul/2014:13:25:10 router type: DD-WRT
[INFO#5713] 10/Jul/2014:13:25:11 delete default gw xx.xx.xx.xx
[INFO#5713] 10/Jul/2014:13:25:11 add default gw 10.10.10.1
[INFO#5713] 10/Jul/2014:13:25:12 pptpdup.sh ended
[INFO#5713] 10/Jul/2014:13:25:12 restarting DNS
Original comment by river.do...@gmail.com
on 10 Jul 2014 at 5:30
Original issue reported on code.google.com by
yangjuny...@gmail.com
on 25 Feb 2011 at 5:52