harleylg / autoddvpn

Automatically exported from code.google.com/p/autoddvpn
0 stars 0 forks source link

classic模式wget+pptp靜態路由表無法修改 #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.配置JFFS CLASSIC PPTP模式,靜態路由表無法加載。
2.之前使用wget模式一直OK,直到今天,變成靜態路由表無法加
載。
3.

你期待是怎樣的結果,然而卻出現了什麼情形?
應該像以前使用wget一樣,靜態路由表會有很多條目,定義了�
��走VPN的流量,也就是國內流量。
我使用的是不限流量的高速VPN,我的理想是:讓國內自定義��
�流量直接走,別的都走VPN,包括但不限於不需要翻牆的網站�
��如itunes store。

請提供以下資訊:

1. 您的路由器型號:NETGEAR WGR614
2. DD-WRT版本:DD-WRT v24-sp2 (08/07/10) mini
3. 您的作業系統:WIN7
4. 您的瀏覽器版本:CHROME 16.0.912.63 m
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, openvpn+jffs等):
PPTP+JFFS
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):classicMode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :dhcp
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
root@DD-WRT:~# route -n | tail -n 20
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
5.1.0.1         0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
110.83.72.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
110.83.72.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
69.46.80.3      110.83.72.1     255.255.255.255 UGH   0      0        0 ppp0
5.1.0.0         0.0.0.0         255.255.255.0   U     0      0        0 ppp1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         5.1.0.1         0.0.0.0         UG    0      0        0 ppp1
(以上1-8點必填,否則可能沒辦法即時協助你解決問題)
root@DD-WRT:~# tail -f /tmp/autoddvpn.log
[INFO#836] 31/Dec/2011:17:10:31 vpnup.sh started
[INFO#836] 31/Dec/2011:17:10:31 router type: DD-WRT
[INFO#836] 31/Dec/2011:17:10:31 make 69.46.80.3 gw 110.83.72.1
[INFO#836] 31/Dec/2011:17:10:31 delete default gw 110.83.72.1
[INFO#836] 31/Dec/2011:17:10:31 add default gw 5.1.0.1
[INFO#836] 31/Dec/2011:17:10:31 adding the static routes, this may take a while.
[INFO#836] 31/Dec/2011:17:11:33 preparing the exceptional routes
[INFO#836] 31/Dec/2011:17:11:33 exceptional routes disabled.
[INFO#836] 31/Dec/2011:17:11:33 exceptional routes features detail:  http://goo.
gl/fYfJ
[INFO#836] 31/Dec/2011:17:11:33 vpnup.sh ended
如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)

最後如果可能的話,請附上截屏或任何可能有幫助的夾檔

Original issue reported on code.google.com by xmuschna...@gmail.com on 31 Dec 2011 at 4:27

GoogleCodeExporter commented 8 years ago
大家新年快樂。

Original comment by xmuschna...@gmail.com on 31 Dec 2011 at 4:31

GoogleCodeExporter commented 8 years ago
wget模式會下載vpnup.sh到/tmp底下,你注意一下/tmp/autoddvpn.log, 
如果最後vpnup.sh ended但是route -n 
並沒有出現大量的路由表的話,試著在路由器裡面手動執行��
�看:

# /tmp/vpnup.sh pptp

另外,我看到你的vpn gw 是5.1.0.1 , 
這IP很奇怪,不應該是5.x.x.x這樣開頭的

Original comment by pahud...@gmail.com on 31 Dec 2011 at 4:49

GoogleCodeExporter commented 8 years ago
我的VPN 
GW就是這樣的。5.1.0.1,這個沒有問題的。之前一直這樣。

Original comment by xmuschna...@gmail.com on 31 Dec 2011 at 11:56

GoogleCodeExporter commented 8 years ago
目前的狀態是,所有的流量都走VPN。很尷尬。

Original comment by xmuschna...@gmail.com on 31 Dec 2011 at 11:59

GoogleCodeExporter commented 8 years ago
手動執行后,看到有添加的過程,但是最後,路由表里依然��
�有那些條目,怎麼辦?是我DD有問題嗎?

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 12:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 12:33

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
請先幫我這樣測試

手動執行:

route add -net 222.82.0.0/255.255.0.0 gw 110.83.72.1

然後 route -n 看看這個規則是否有加進去。

如果沒有,再試試看這樣寫

route add -net 222.82.0.0/16 gw 110.83.72.1

然後 route -n 看看這個規則是否有加進去。

我前兩天有進行vpnup.sh一次升級,可能是這個原因。

如果我是這個原因的話,你可以先用這個替代方式頂一下:

cd /tmp;wget http://autoddvpn.googlecode.com/svn/trunk/pptp/wget/run-r526.sh  
&& /bin/sh run.sh || touch failed

Original comment by pahud...@gmail.com on 1 Jan 2012 at 12:41

GoogleCodeExporter commented 8 years ago
運行到紅線那裡,會停頓一下,卡住2~3s,然後跳出下面的。

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 12:42

Attachments:

GoogleCodeExporter commented 8 years ago
上圖就是嘗試的r526的,依然這樣。

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 12:42

GoogleCodeExporter commented 8 years ago
確實是route語句有問題。
但是,r526.sh依然無解。r526依然無法正確修改路由表。

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 12:47

Attachments:

GoogleCodeExporter commented 8 years ago
呃,我剛剛修正了原來vpnup.sh的問題,現在你應該用原來方式
就可以用了,試試看。

Original comment by pahud...@gmail.com on 1 Jan 2012 at 12:49

GoogleCodeExporter commented 8 years ago
反饋一下,正常了。爲了以後不受這種影響,我決定還是換��
�jffs的classic把。

Original comment by xmuschna...@gmail.com on 1 Jan 2012 at 1:11

GoogleCodeExporter commented 8 years ago
好的,謝謝你回報問題,希望你用的愉快。

Original comment by pahud...@gmail.com on 1 Jan 2012 at 1:18