找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: dosar

[原创修改]TT+openvirtual**,使用修改autoddvirtual**方案实现自动fan wall

  [复制链接]
发表于 2011-2-24 21:29 | 显示全部楼层
正需要这个呢,来学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-2-24 22:53 | 显示全部楼层
卡在"先删除第一步中openvirtual**配置中的前第2、3行,然后从web界面启动virtual**连接",我在设置openvirtual**客户端的界面处点击"立即开始",然后没有任何反应.
状态是 "客户端没有运行或无法读取状态。"

另外password.txt中的用户名密码是指我在virtual**cup的用户名密码,对吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-2-27 21:05 | 显示全部楼层
很好很强大很给力
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-2-27 22:47 | 显示全部楼层
为什么访问不了www.youtube.com呢?http://www.bbc.co.uk/都可以访问。用 traceroute -n www.youtube.com看应该是走了virtual**了,是不是virtual**本身的问题?

Tomato v1.28.0526 MIPSR1 K26 USB 8M
root@unknown:/tmp/home/root# traceroute -n www.youtube.com
traceroute to www.youtube.com (59.24.3.173), 30 hops max, 38 byte packets
1  192.168.8.1  325.631 ms  331.901 ms  335.276 ms
2  74.117.61.1  333.919 ms  329.093 ms  326.429 ms
3  216.151.129.201  326.045 ms  328.996 ms  328.551 ms
4  216.152.255.62  323.441 ms  320.548 ms  325.044 ms
5  204.70.193.49  326.691 ms  328.038 ms  327.761 ms
6  208.172.44.194  325.684 ms  324.845 ms  324.441 ms
7  152.63.112.146  324.044 ms  325.971 ms  325.758 ms
8  152.63.1.202  336.453 ms  339.471 ms  339.894 ms
9  152.63.49.229  339.026 ms  336.944 ms  340.505 ms
10  157.130.200.6  487.157 ms  495.662 ms  504.026 ms
11  112.174.87.109  627.352 ms  *  599.019 ms
12  112.174.84.161  603.538 ms  617.073 ms  624.673 ms
13  112.174.82.141  633.916 ms  650.082 ms  653.016 ms
14  112.174.56.122  637.309 ms  610.052 ms  636.004 ms
15  112.190.175.90  669.788 ms  680.345 ms  645.607 ms
16  112.190.135.154  610.396 ms  *  628.318 ms
17  112.190.136.158  609.959 ms  627.175 ms  634.299 ms
18  *  *  *
19  *  *  *
20  *  *  *
21  *  *  *
22  *  *  *
23  *  *  *
24  *  *  *
25  *  *  *
26  *  *  *
27  *  *  *
28  *  *  *
29  *  *  *
30  *  *  *



traceroute: bad port spec 'http://www.bbc.co.uk/'
root@unknown:/tmp/home/root# traceroute -n www.bbc.co.uk
traceroute to www.bbc.co.uk (212.58.244.69), 30 hops max, 38 byte packets
1  192.168.8.1  322.722 ms  328.306 ms  326.011 ms
2  74.117.61.1  326.915 ms  324.950 ms  320.451 ms
3  216.151.129.201  321.355 ms  322.505 ms  326.720 ms
4  *  216.152.255.62  327.501 ms  327.453 ms
5  204.70.193.105  325.606 ms  319.160 ms  321.196 ms
6  *  204.70.198.6  324.450 ms  326.436 ms
7  4.68.110.93  328.084 ms  322.188 ms  322.096 ms
8  4.69.144.190  319.967 ms  327.788 ms  *
9  *  4.69.137.17  335.844 ms  327.678 ms
10  4.69.148.202  335.288 ms  334.146 ms  336.206 ms
11  4.69.148.142  342.040 ms  342.499 ms  343.620 ms
12  4.69.135.186  403.069 ms  398.938 ms  405.527 ms
13  4.69.148.46  413.405 ms  4.69.148.34  418.607 ms  4.69.148.42  407.861 ms
14  4.69.134.65  402.186 ms  4.69.134.69  402.669 ms  4.69.134.65  406.139 ms
15  4.69.137.65  476.371 ms  4.69.137.69  465.999 ms  4.69.137.73  467.511 ms
16  4.69.139.98  469.008 ms  474.230 ms  475.094 ms
17  195.50.118.242  482.876 ms  487.465 ms  481.916 ms
18  212.58.238.153  486.654 ms  484.503 ms  487.576 ms
19  212.58.239.62  486.146 ms  491.831 ms  *
20  212.58.251.44  481.817 ms  484.771 ms  482.571 ms
21  212.58.244.69  485.584 ms  492.735 ms  494.347 ms
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-2-27 23:50 | 显示全部楼层
为什么访问不了www.youtube.com呢?http://www.bbc.co.uk/都可以访问。用 traceroute -n www.youtube.com看应该是走了virtual**了,是不是virtual**本身的问题?

Tomato v1.28.0526 MIPSR1 K26 USB 8M
root@unknown:/tmp/hom ...
shyboy0415 发表于 2011-2-27 22:47

你的路由访问中断了,而且你解析出来的地址也跟我的不同:
# nslookup www.youtube.com 8.8.8.8
Server:    8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com

Name:      www.youtube.com
Address 1: 72.14.213.190 pv-in-f190.1e100.net
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-2-28 16:42 | 显示全部楼层
35# dosar


为什么路由会断了,不是走了代理,又用8.8.8.8解析的地址
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-3-1 13:15 | 显示全部楼层
还有一个问题,我弄了一个OPENvirtual**的服务器,配置如下
  1. script-security 2
  2. up '/tmp/mnt/sda1/openvirtual**/virtual**up.sh openvirtual**'
  3. down '/tmp/mnt/sda1/openvirtual**/virtual**down.sh openvirtual**'
  4. client
  5. resolv-retry infinite
  6. nobind
  7. persist-key
  8. persist-tun
  9. ca /tmp/mnt/sda1/openvirtual**/ca.crt
  10. cert /tmp/mnt/sda1/openvirtual**/client.crt
  11. key /tmp/mnt/sda1/openvirtual**/client.key
  12. tls-auth /tmp/mnt/sda1/openvirtual**/ta.key
  13. auth-user-pass /tmp/mnt/sda1/openvirtual**/password.txt
  14. ns-cert-type server
  15. comp-lzo
  16. verb 3
  17. log-append /tmp/mnt/sda1/openvirtual**/openvirtual**.log
复制代码
无法实现国内国外分流,一打开国外的网站就访问不了
看日志好像挺正常的,帮忙分析一下吧
  1. Tue Mar  1 12:55:06 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
  2. Tue Mar  1 12:55:06 2011 Re-using SSL/TLS context
  3. Tue Mar  1 12:55:06 2011 LZO compression initialized
  4. Tue Mar  1 12:55:06 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
  5. Tue Mar  1 12:55:06 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
  6. Tue Mar  1 12:55:06 2011 Socket Buffers: R=[112640->131072] S=[112640->131072]
  7. Tue Mar  1 12:55:06 2011 UDPv4 link local: [undef]
  8. Tue Mar  1 12:55:06 2011 UDPv4 link remote: 64.71.159.226:9841
  9. Tue Mar  1 12:55:06 2011 TLS: Initial packet from 64.71.159.226:9841, sid=172b473e 67bb8dc3
  10. Tue Mar  1 12:55:06 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
  11. Tue Mar  1 12:55:14 2011 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=https://yegle.net/openvirtual**//CN=yegle_openvirtual**/Email=me@yegle.net
  12. Tue Mar  1 12:55:14 2011 VERIFY OK: nsCertType=SERVER
  13. Tue Mar  1 12:55:14 2011 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=https://yegle.net/openvirtual**//CN=server/Email=me@yegle.net
  14. Tue Mar  1 12:56:05 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
  15. Tue Mar  1 12:56:05 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
  16. Tue Mar  1 12:56:05 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
  17. Tue Mar  1 12:56:05 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
  18. Tue Mar  1 12:56:05 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 EDH-RSA-DES-CBC3-SHA, 1024 bit RSA
  19. Tue Mar  1 12:56:05 2011 [server] Peer Connection Initiated with 64.71.159.226:9841
  20. Tue Mar  1 12:56:07 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
  21. Tue Mar  1 12:56:07 2011 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 74.82.42.42,route-gateway 10.12.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.12.0.13 255.255.255.0'
  22. Tue Mar  1 12:56:07 2011 OPTIONS IMPORT: timers and/or timeouts modified
  23. Tue Mar  1 12:56:07 2011 OPTIONS IMPORT: --ifconfig/up options modified
  24. Tue Mar  1 12:56:07 2011 OPTIONS IMPORT: route-related options modified
  25. Tue Mar  1 12:56:07 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
  26. Tue Mar  1 12:56:07 2011 TUN/TAP device tun11 opened
  27. Tue Mar  1 12:56:07 2011 TUN/TAP TX queue length set to 100
  28. Tue Mar  1 12:56:07 2011 /sbin/ifconfig tun11 10.12.0.13 netmask 255.255.255.0 mtu 1500 broadcast 10.12.0.255
  29. Tue Mar  1 12:56:07 2011 /tmp/mnt/sda1/openvirtual**/virtual**up.sh openvirtual** tun11 1500 1542 10.12.0.13 255.255.255.0 init
  30. + export PATH=/bin:/sbin:/usr/sbin:/usr/bin
  31. + LOG=/tmp/autoddvirtual**.log
  32. + LOCK=/tmp/autoddvirtual**.lock
  33. + PID=14741
  34. + EXROUTEDIR=/jffs/exroute.d
  35. + INFO=[INFO#14741]
  36. + DEBUG=[DEBUG#14741]
  37. + ERROR=[ERROR#14741]
  38. + date +%d/%b/%Y:%H:%M:%S
  39. + echo [INFO#14741] 01/Mar/2011:12:56:07 virtual**up.sh started
  40. + [ -f /tmp/autoddvirtual**.lock ]
  41. + break
  42. + [ -f /tmp/autoddvirtual**.lock ]
  43. + date +%d/%b/%Y:%H:%M:%S
  44. + echo [INFO#14741] 01/Mar/2011:12:56:07 virtual**up
  45. + nvram get wan_gateway
  46. + OLDGW=192.168.1.1
  47. + nvram get openvirtual**cl_remoteip
  48. + virtual**SRV=
  49. + OPENvirtual**DEV=tun11
  50. + ifconfig tun11
  51. + grep -Eo P-t-P:([0-9.]+)
  52. + cut -d: -f2
  53. + virtual**GW=10.12.0.13
  54. + [ 192.168.1.1 ==  ]
  55. + echo [INFO#14741] OLDGW is 192.168.1.1
  56. [INFO#14741] OLDGW is 192.168.1.1
  57. + date +%d/%b/%Y:%H:%M:%S
  58. + echo [INFO#14741] 01/Mar/2011:12:56:07 make  gw 192.168.1.1
  59. + route add -host gw 192.168.1.1
  60. route: resolving gw
  61. + date +%d/%b/%Y:%H:%M:%S
  62. + echo [INFO#14741] 01/Mar/2011:12:56:08 delete default gw 192.168.1.1
  63. + route del default gw 192.168.1.1
  64. + date +%d/%b/%Y:%H:%M:%S
  65. + echo [INFO#14741] 01/Mar/2011:12:56:08 add default gw 10.12.0.13
  66. + route add default gw 10.12.0.13
  67. + date +%d/%b/%Y:%H:%M:%S
  68. + echo [INFO#14741] 01/Mar/2011:12:56:08 adding the static routes, this may take a while.
  69. + route add -net 1.12.0.0/14 gw 192.168.1.1
  70. ...............................
  71. + date +%d/%b/%Y:%H:%M:%S
  72. + echo [INFO#14741] 01/Mar/2011:12:56:26 preparing the exceptional routes
  73. + nvram get exroute_enable
  74. + [ -eq 1 ]
  75. [: 1: unknown operand
  76. + date +%d/%b/%Y:%H:%M:%S
  77. + echo [INFO#14741] 01/Mar/2011:12:56:26 exceptional routes disabled.
  78. + date +%d/%b/%Y:%H:%M:%S
  79. + echo [INFO#14741] 01/Mar/2011:12:56:26 exceptional routes features detail:  http://goo.gl/fYfJ
  80. + echo [INFO#14741] final check the default gw
  81. [INFO#14741] final check the default gw
  82. + true
  83. + route -n
  84. + grep ^0.0.0.0
  85. + awk {print $2}
  86. + GW=10.12.0.13
  87. + echo [DEBUG#14741] my current gw is 10.12.0.13
  88. [DEBUG#14741] my current gw is 10.12.0.13
  89. + [ 10.12.0.13 == 192.168.1.1 ]
  90. + break
  91. + echo [INFO#14741] static routes added
  92. [INFO#14741] static routes added
  93. + date +%d/%b/%Y:%H:%M:%S
  94. + echo [INFO#14741] 01/Mar/2011:12:56:27 virtual**up.sh ended
  95. + rm -f /tmp/autoddvirtual**.lock
  96. Tue Mar  1 12:56:27 2011 Initialization Sequence Completed
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-3-1 15:05 | 显示全部楼层
技术贴,学习了。支持!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-3-1 23:30 | 显示全部楼层
还有一个问题,我弄了一个OPENvirtual**的服务器,配置如下script-security 2
up '/tmp/mnt/sda1/openvirtual**/virtual**up.sh openvirtual**'
down '/tmp/mnt/sda1/openvirtual**/virtual**down.sh openvirtual**'
client
resolv-retry infinite
nobind
...
shyboy0415 发表于 2011-3-1 13:15

直接把路由器的dns设置为8.8.8.8和8.8.4.4吧,不过这样的话要依靠virtual**的稳定性了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-3-3 21:32 | 显示全部楼层
直接把路由器的dns设置为8.8.8.8和8.8.4.4吧,不过这样的话要依靠virtual**的稳定性了。
dosar 发表于 2011-3-1 23:30

已经设置过了,还有一人问题,怎么能它断线自动重连~~每次回来都发现断线了,要手动点连接
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-3-3 22:12 | 显示全部楼层
已经设置过了,还有一人问题,怎么能它断线自动重连~~每次回来都发现断线了,要手动点连接
shyboy0415 发表于 2011-3-3 21:32

从设置上来说是自动连接的。看1楼图片。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-3-7 20:00 | 显示全部楼层
L2TP同样适用吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-3-7 22:40 | 显示全部楼层
L2TP同样适用吗?
daisuki 发表于 2011-3-7 20:00

L2TP不适用这个方法。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-3-7 22:50 | 显示全部楼层
Tomato v1.27virtual**3.6


BusyBox v1.14.4 (2010-01-31 21:34:54 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
接下来输入以下指令:
# mkdir /jffs/openvirtual**
# cd /jffs/openvirtual**
# vi password.txt
按字母i后可以进入简易文本编辑模式,复制粘贴以下内容(你可以一行一行复制粘贴),然后依次按Esc键>>英文冒号>>wq
回车后便可以保存了,好了,现在password应答文件/jffs/openvirtual**/password.txt创建好了。

到这一步看不懂了,“按字母i后可以进入简易文本编辑模式,复制粘贴以下内容(你可以一行一行复制粘贴),然后依次按Esc键>>英文冒号>>wq
”  怎么操作?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-3-8 12:43 | 显示全部楼层
在shell 里
# vi password.txt
不要输入#
回车
接着
按字母i后可以进入简易文本编辑模式,复制粘贴内容(你可以一行一行复制粘贴),完了以后依次按Esc键 英文冒号 wq
  1. :wq
复制代码
回车便可保存。
或者,干脆你直接用WinSCP吧。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 23:53

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表