maxming2333 / autoddvpn

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

用 prep_optware 配置 dd-wrt 的話,“route add -net”結束後就會無法訪問公共網路 #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1. 用 prep_optware 配置 dd-wrt 的話,“route add 
-net”結束後就會無法訪問公共網路

你期待是怎樣的結果,然而卻出現了什麼情形?
能幫我找到解決的辦法麼?

請提供以下資訊:

1. 您的路由器型號:asus wl-500w
2. DD-WRT版本:DD-WRT v24-sp2 (05/17/11) mega (SVN revision 17084M NEWD-2 
Eko) k24
3. 您的作業系統:Mac OS X 10.7.1
4. 您的瀏覽器版本:Safari 5.1
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, 
openvpn+jffs等):openvpn+jffs
6. 
autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(graceMode
):graceMode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :pppoe
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
$ route -n  | tail -n 20
78.129.203.0    192.168.40.13   255.255.255.0   UG    0      0        0 tun0
4.28.16.0       192.168.40.13   255.255.255.0   UG    0      0        0 tun0
208.71.104.0    192.168.40.13   255.255.252.0   UG    0      0        0 tun0
66.102.0.0      192.168.40.13   255.255.240.0   UG    0      0        0 tun0
64.233.160.0    192.168.40.13   255.255.224.0   UG    0      0        0 tun0
208.117.224.0   192.168.40.13   255.255.224.0   UG    0      0        0 tun0
72.14.192.0     192.168.40.13   255.255.192.0   UG    0      0        0 tun0
208.111.128.0   192.168.40.13   255.255.192.0   UG    0      0        0 tun0
184.72.0.0      192.168.40.13   255.255.0.0     UG    0      0        0 tun0
173.194.0.0     192.168.40.13   255.255.0.0     UG    0      0        0 tun0
69.63.0.0       192.168.40.13   255.255.0.0     UG    0      0        0 tun0
69.171.0.0      192.168.40.13   255.255.0.0     UG    0      0        0 tun0
66.220.0.0      192.168.40.13   255.255.0.0     UG    0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
74.125.0.0      192.168.40.13   255.255.0.0     UG    0      0        0 tun0
116.214.0.0     192.168.40.13   255.255.0.0     UG    0      0        0 tun0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.40.13   128.0.0.0       UG    0      0        0 tun0
128.0.0.0       192.168.40.13   128.0.0.0       UG    0      0        0 tun0
0.0.0.0         58.247.192.1    0.0.0.0         UG    0      0        0 ppp0

(以上1-8點必填,否則可能沒辦法即時協助你解決問題)

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

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

service狀況:
$ service                            
Service:                 named (/opt/etc/init.d/S09named) disabled
Service:                xinetd (/opt/etc/init.d/S10xinetd) 
Service:              usbmount (/opt/etc/init.d/S30usbmount) disabled
Service:             automount (/opt/etc/init.d/S35automount) 
Service:          reloc_syslog (/opt/etc/init.d/S40relocate_syslog) disabled
Service:             pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service:               portmap (/opt/etc/init.d/S55portmap) 
Service:                 unfsd (/opt/etc/init.d/S56unfsd) 
Service:                zabbix (/opt/etc/init.d/S70zabbix) disabled
Service:              lighttpd (/opt/etc/init.d/S80lighttpd) disabled
Service:                 pound (/opt/etc/init.d/S80pound) disabled
Service:                 samba (/opt/etc/init.d/S80samba) 
Service:             vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service:                  kaid (/opt/etc/init.d/S85kaid) disabled
Service:              asterisk (/opt/etc/init.d/S90asterisk) disabled
Service:                nzbget (/opt/etc/init.d/S90nzbget) disabled
Service:          transmission (/opt/etc/init.d/S90transmission) disabled
Service:             fixtables (/opt/etc/init.d/S94fixtables) 
Service:            stophammer (/opt/etc/init.d/S94stophammer) 
Service:             asiablock (/opt/etc/init.d/S95asiablock) disabled
Service:            birmablock (/opt/etc/init.d/S95birmablock) disabled
Service:                twonky (/opt/etc/init.d/S95twonky) disabled
Service:          watchprinter (/opt/etc/init.d/S95watchprinter) disabled
Service:            worldblock (/opt/etc/init.d/S95worldblock) disabled
Service:               siproxd (/opt/etc/init.d/S98siproxd) disabled
Service:              stophack (/opt/etc/init.d/S98stophack) 

prep_optware 的連接 
http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way

Original issue reported on code.google.com by oick...@gmail.com on 29 Sep 2011 at 5:41

GoogleCodeExporter commented 8 years ago
是這段命令結束以後就不能訪問外部網路了,繼續求解!

+ echo [INFO#19073] 07/Oct/2011:13:05:45 preparing the exceptional routes
+ nvram get exroute_enable
+ [ -eq 1 ]
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:45 exceptional routes disabled.
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:45 exceptional routes features detail:  
http://goo.gl/fYfJ
+ echo [INFO#19073] final check the default gw
[INFO#19073] final check the default gw
+ true
+ route -n
+ grep ^0.0.0.0
+ awk {print $2}
+ GW=58.247.192.1
+ echo [DEBUG#19073] my current gw is 58.247.192.1
[DEBUG#19073] my current gw is 58.247.192.1
+ [ 58.247.192.1 == 58.247.192.1 ]
+ echo [DEBUG#19073] GOOD
[DEBUG#19073] GOOD
+ break
+ echo [INFO#19073] static routes added
[INFO#19073] static routes added
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:46 vpnup.sh ended
+ rm -f /tmp/autoddvpn.lock
Fri Oct  7 13:05:46 2011 /sbin/route add -net 211.22.125.93 netmask 
255.255.255.255 gw 58.247.192.1
Fri Oct  7 13:05:46 2011 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 
192.168.40.5
Fri Oct  7 13:05:46 2011 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 
192.168.40.5
Fri Oct  7 13:05:46 2011 /sbin/route add -net 192.168.40.1 netmask 
255.255.255.255 gw 192.168.40.5
Fri Oct  7 13:05:46 2011 Initialization Sequence Completed

現在的服務精簡到如下:
Service:                xinetd (/opt/etc/init.d/S10xinetd) 
Service:                  dbus (/opt/etc/init.d/S20dbus) 
Service:                  afpd (/opt/etc/init.d/S21afpd) 
Service:                 avahi (/opt/etc/init.d/S21avahi-daemon) 
Service:             automount (/opt/etc/init.d/S35automount) 

env狀況:
$ env
TERM=xterm-256color
SHELL=/opt/bin/bash
USER=root
LD_LIBRARY_PATH=/opt/lib:
PATH=/opt/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/
jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/
bin
PWD=/jffs/bin
PS1=[\u@\h \W]$ 
SHLVL=1
HOME=/tmp/root
LOGNAME=root
_=/opt/bin/env
OLDPWD=/tmp/root

PS:
ps -A 
  PID TTY          TIME CMD
    1 ?        00:00:01 init
    2 ?        00:00:00 keventd
    3 ?        00:00:00 ksoftirqd_CPU0
    4 ?        00:00:00 kswapd
    5 ?        00:00:00 bdflush
    6 ?        00:00:00 kupdated
   11 ?        00:00:00 mtdblockd
   22 ?        00:00:00 watchdog
   28 ?        00:00:00 USBLEDprobe
   29 ?        00:00:00 khubd
   49 ?        00:00:00 usb-storage-0
   50 ?        00:00:00 scsi_eh_0
   63 ?        00:00:00 kjournald
  186 ?        00:00:00 resetbutton
  262 ?        00:00:00 telnetd
  269 ?        00:00:00 p910nd
  290 ?        00:00:10 dnsmasq
  375 ?        00:00:00 pppd
  376 ?        00:00:00 redial
  393 ?        00:00:00 ttraff
  405 ?        00:00:00 nas
  455 ?        00:00:00 jffs2_gcd_mtd4
  687 ?        00:00:00 udhcpd
  693 ?        00:01:43 httpd
  705 ?        00:00:00 syslogd
  714 ?        00:00:00 klogd
  720 ?        00:00:00 dropbear
  726 ?        00:00:00 macupd
  879 ?        00:00:00 process_monitor
  972 ?        00:00:00 xinetd
 1008 ?        00:00:00 dbus-daemon
 1024 ?        00:00:00 afpd
 1052 ?        00:00:03 avahi-daemon
 1284 ?        00:00:00 upnp
 1624 ?        00:00:04 wland
 2580 ?        00:00:00 cron
 3146 ?        00:00:01 dropbear
 3159 ?        00:00:00 sftp-server
 4704 ?        00:00:01 dropbear
 4705 pts/0    00:00:00 bash
13060 ?        00:00:00 dropbear
13063 pts/1    00:00:00 bash
21666 pts/0    00:00:00 ps

Original comment by oick...@gmail.com on 7 Oct 2011 at 5:15

GoogleCodeExporter commented 8 years ago
沒有人願意慷慨解答麼?

Original comment by oick...@gmail.com on 13 Oct 2011 at 2:05