yaksa-me / autoddvpn

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

所有的流量都默认走了vpn了。请帮助。谢谢 #203

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.openvpn采用webUI方式设定
2.按照官方文档设定都没有问题

你期待是怎樣的結果,然而卻出現了什麼情形?
我期待能否国内流量走wan 
gateway,国外流量走vpngw,但是我的问题是,目前所有流量都��
�走的vpngw。

請提供以下資訊:

1. 您的路由器型號:Netgear R6300 v1
2. DD-WRT版本:DD-WRT v24-sp2 (04/09/15) giga (SVN revision 26653M)
3. 您的作業系統:windows 8.1 x64 pro
4. 您的瀏覽器版本:chrome 41.0.2272.118 m
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, openvpn+jffs等):openvpn + 
jffs
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):gracemode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
(以上1-8點必填,否則可能沒辦法即時協助你解決問題)

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)

下面是我的autoddvpn log
root@DD-WRT:/jffs/openvpn# tail -f /tmp/autoddvpn.log
[INFO#1613] 29/Jul/2010:12:00:00 modifying /tmp/openvpncl/route-down.sh
[INFO#1613] 29/Jul/2010:12:00:00 /tmp/openvpncl/route-down.sh modified
[INFO#1613] 29/Jul/2010:12:00:00 ALL DONE. Let's wait for VPN being connected.
[INFO#1842] 29/Jul/2010:12:00:02 vpnup.sh started
[INFO#1842] 29/Jul/2010:12:00:02 adding the static routes, this may take a 
while.
[INFO#1842] 29/Jul/2010:12:00:55 loading vpnup_custom if available
[INFO#1842] 29/Jul/2010:12:00:55 preparing the exceptional routes
[INFO#1842] 29/Jul/2010:12:00:55 exceptional routes disabled.
[INFO#1842] 29/Jul/2010:12:00:55 exceptional routes features detail:  
http://goo.gl/fYfJ
[INFO#1842] 29/Jul/2010:12:00:55 vpnup.sh ended

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

下面是我的路由表,出现两个default 
root@DD-WRT:/jffs/openvpn# route | tail -n 10
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.255.248.1    128.0.0.0       UG    0      0        0 tun1
default         www1.asd.tj.cn  0.0.0.0         UG    0      0        0 ppp0
10.255.0.0      *               255.255.0.0     U     0      0        0 tun1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
128.0.0.0       10.255.248.1    128.0.0.0       UG    0      0        0 tun1
169.254.0.0     *               255.255.0.0     U     0      0        0 br0
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
216.99.147.115  www1.asd.tj.cn  255.255.255.255 UGH   0      0        0 ppp0
221.198.124.1   *               255.255.255.255 UH    0      0        0 ppp0

Original issue reported on code.google.com by tar...@gmail.com on 10 Apr 2015 at 1:14

GoogleCodeExporter commented 9 years ago
 对不起,忘记提供
7: wan口是pppoe拨号方式
8:route -n | tail -n 20结果:
root@DD-WRT:/jffs/openvpn# route -n | tail -n 20
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.255.248.1    128.0.0.0       UG    0      0        0 tun1
0.0.0.0         221.198.124.1   0.0.0.0         UG    0      0        0 ppp0
10.255.0.0      0.0.0.0         255.255.0.0     U     0      0        0 tun1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
128.0.0.0       10.255.248.1    128.0.0.0       UG    0      0        0 tun1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
216.99.147.115  221.198.124.1   255.255.255.255 UGH   0      0        0 ppp0
221.198.124.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0

Original comment by tar...@gmail.com on 10 Apr 2015 at 1:18