zephyrer / autoddvpn

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

按classmode设置好路由器, PPTP拨号后不能建立VPN联系 #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
按classmode设置好路由器, PPTP拨号后不能建立VPN联系
请描述一下您进行怎样的操作之后碰到了问题
1、复位路由器,接入上一级无线路由器
30/30/30复位后,设置wireless为client模式,接入上一级无线路由�
��。
无线接入后WAN IP: 10.10.200.166 / 子网掩码:255.255.255.0 
/默认网关:10.10.200.254
2、开户SSH服务
3、設置PPTP client
先在PC上设置VPN:服务器76.74.158.233/ 用户名/ 密码/ 类型PPTP 
VPN。VPN拨号成功后,服务器地址10.10.0.1,客户端地址10.10.0.2��
�
设置路由器VPN client:服务器76.74.158.233/ 用户名/ 密码
Remote Subnet:10.10.0.0
Remote Subnet Mask:255.255.255.0
MPPE Encryption:mppe required,no40,no56,stateless
4、設置DNS
DHCP中静态DNS1-3设置为:8.8.8.8 、8.8.4.4 、208.67.222.222
5.开启jffs
nvram set jffs_mounted=1 
nvram set enable_jffs2=1 
nvram set sys_enable_jffs2=1 
nvram set clean_jffs2=1 
nvram set sys_clean_jffs2=1 
nvram commit 
reboot 
6、放置脚本到jffs
mkdir /jffs/pptp 
cd /jffs/pptp 
wget http://autoddvpn.googlecode.com/svn/trunk/pptp/jffs/run.sh 
for i in vpnup vpndown; do wget 
http://autoddvpn.googlecode.com/svn/trunk/$i.sh;done; 
chmod a+x *.sh
执行后目录下文件:run.sh、vpndown.sh、vpnup.sh
7、 rc_startup設置
nvram set rc_startup='/jffs/pptp/run.sh' 
nvram commit 
reboot

你期待是怎样的结果,然而却出现了什么情形?
PPTP应该连接VPN,但好像没有连接。

请提供以下信息:
1. 您的路由器型号:
Cisco LinkSys E3200
2. DD-WRT版本:
先刷dd-wrt.v24-17201_NEWD-2_K2.6_mini-e3200.bin,做30/30/30复位。
再刷dd-wrt.v24-17201_NEWD-2_K2.6_mini-e3200.bin
3. 您的操作系统:
Windows XP SP3
4. 您的浏览器版本:
IE8
5. autoddvpn的联机模式(pptp+wget, pptp+jffs, openvpn+jffs等):
pptp+jffs
6. 
autoddvpn的运行模式,传统模式(classicMode)还是优雅模式(graceMode
):
传统模式(classicMode)
7. DD-WRT WAN口联机模式是 pptp or dhcp or static :
DD-WRT 工作在wireless client模式,WAN 口为: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
10.10.200.254   0.0.0.0         255.255.255.255 UH    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
10.10.200.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
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         10.10.200.254   0.0.0.0         UG    0      0        0 eth1
root@DD-WRT:~#
 (以上1-8点必填,否则可能没办法实时协助你解决问题)
如果方便的话,请参考这里的说明,贴上autoddvpn.log内容
root@DD-WRT:~# cat /tmp/autoddvpn.log
[INFO#994] 01/Jan/1970:00:00:05 log starts
[INFO#994] 01/Jan/1970:00:00:05 pptp+jffs mode
[INFO#994] 01/Jan/1970:00:00:05 modifying /tmp/pptpd_client/ip-up
[INFO#994] 01/Jan/1970:00:00:05 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#994] 23/Aug/2012:10:16:09 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#994] 23/Aug/2012:10:16:19 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#994] 23/Aug/2012:10:16:29 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#994] 23/Aug/2012:10:16:39 /tmp/pptpd_client/ip-up modified
[INFO#994] 23/Aug/2012:10:16:39 modifying /tmp/pptpd_client/ip-down
[INFO#994] 23/Aug/2012:10:16:39 /tmp/pptpd_client/ip-down modified
[INFO#994] 23/Aug/2012:10:16:39 ALL DONE. Let's wait for VPN being connected.
root@DD-WRT:~#

最后如果可能的话,请附上截屏或任何可能有帮助的夹檔
root@DD-WRT:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1092 S    /sbin/init noinitrd
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
   39 root         0 SW<  [kblockd/0]
   41 root         0 SW<  [cqueue/0]
   73 root         0 SW   [pdflush]
   74 root         0 SW   [pdflush]
   75 root         0 SW<  [kswapd0]
   76 root         0 SW<  [aio/0]
  606 root         0 SW<  [mtdblockd]
  639 root      1284 S    watchdog
  730 root         0 SWN  [jffs2_gcd_mtd4]
  787 root      1236 S    resetbutton
  865 root      1048 S    telnetd
  905 root       700 S    dnsmasq --conf-file=/tmp/dnsmasq.conf
  921 root      1004 S    dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh_host_dss_key -p 22
  955 root      1160 S    ttraff
  981 root      1304 S    nas -P /tmp/nas.wl0wan.pid -H 34954 -i eth1 -S -m 128 -k 4Y6a2T1m -s csmguest -w 6 -g 3600
 1268 root      1696 S    httpd -p 80
 1365 root      1156 S    process_monitor
 1376 root       600 S    cron
 1627 root      1240 S    wland
 1629 root       600 S    udhcpc -i eth1 -p /var/run/udhcpc.pid -s /tmp/udhcpc
 1649 root      1060 S    /bin/sh /tmp/pptpd_client/vpn go
 1686 root      1060 S    dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -d /tmp/root/.ssh/ssh_host_dss_key -p 22
 1689 root      1068 S    -sh
 1771 root       680 S    pptp 76.74.158.233 file /tmp/pptpd_client/options.vpn
 1772 root       680 S    pptp 76.74.158.233 file /tmp/pptpd_client/options.vpn
 1774 root       680 S    pptp 76.74.158.233 file /tmp/pptpd_client/options.vpn
 1780 root      1052 R    ps
root@DD-WRT:~#

Original issue reported on code.google.com by BH1...@gmail.com on 23 Aug 2012 at 8:21