|
本帖最后由 davi1989 于 2012-10-20 21:45 编辑
服务器端为tomato系统 非双wan版
配置文件如下- # Automatically generated configuration
- daemon
- server-bridge
- proto udp
- port 6570
- dev tap21
- cipher BF-CBC
- comp-lzo adaptive
- keepalive 15 60
- verb 3
- client-config-dir ccd
- client-to-client
- tls-auth static.key 0
- ca ca.crt
- dh dh.pem
- cert server.crt
- key server.key
- status-version 2
- status status
- # Custom Configuration
- script-security 2
- push "redirect-gateway"
- duplicate-cn
- keepalive 10 120
复制代码 客户端是HG255D刷Openwrt
配置文件如下在终端里运行后的结果如下- root@HG255D:/etc/openvirtual**# openvirtual** Client.conf
- Sat Oct 20 17:49:29 2012 Openvirtual** 2.1.4 mipsel-openwrt-linux [SSL] [LZO2] [EPOLL] built on Oct 19 2012
- Sat Oct 20 17:49:29 2012 NOTE: Openvirtual** 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
- Sat Oct 20 17:49:29 2012 WARNING: file 'client.key' is group or others accessible
- Sat Oct 20 17:49:29 2012 WARNING: file 'ta.key' is group or others accessible
- Sat Oct 20 17:49:29 2012 Control Channel Authentication: using 'ta.key' as a Openvirtual** static key file
- Sat Oct 20 17:49:29 2012 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
- Sat Oct 20 17:49:29 2012 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
- Sat Oct 20 17:49:29 2012 LZO compression initialized
- Sat Oct 20 17:49:29 2012 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]
- Sat Oct 20 17:49:29 2012 Socket Buffers: R=[112640->131072] S=[112640->131072]
- Sat Oct 20 17:49:39 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
- Sat Oct 20 17:49:39 2012 UDPv4 link local: [undef]
- Sat Oct 20 17:49:39 2012 UDPv4 link remote: 60.166.181.48:6570
- Sat Oct 20 17:49:39 2012 TLS: Initial packet from 60.166.181.48:6570, sid=a5be874a 18c5d10b
- Sat Oct 20 17:49:39 2012 VERIFY OK: depth=1, /C=CN/ST=Guangdong/L=Guangzhou/O=salem/OU=salem/CN=salem/emailAddress=salemsu@21cn.com
- Sat Oct 20 17:49:39 2012 VERIFY OK: nsCertType=SERVER
- Sat Oct 20 17:49:39 2012 VERIFY OK: depth=0, /C=CN/ST=Guangdong/O=salem/OU=salem/CN=salem/emailAddress=salemsu@21cn.com
- Sat Oct 20 17:49:40 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
- Sat Oct 20 17:49:40 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
- Sat Oct 20 17:49:40 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
- Sat Oct 20 17:49:40 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
- Sat Oct 20 17:49:40 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
- Sat Oct 20 17:49:40 2012 [salem] Peer Connection Initiated with 60.166.181.48:6570
- Sat Oct 20 17:49:43 2012 SENT CONTROL [salem]: 'PUSH_REQUEST' (status=1)
- Sat Oct 20 17:49:43 2012 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,route-gateway dhcp,ping 10,ping-restart 120'
- Sat Oct 20 17:49:43 2012 OPTIONS IMPORT: timers and/or timeouts modified
- Sat Oct 20 17:49:43 2012 OPTIONS IMPORT: route options modified
- Sat Oct 20 17:49:43 2012 OPTIONS IMPORT: route-related options modified
- Sat Oct 20 17:49:43 2012 TUN/TAP device tap0 opened
- Sat Oct 20 17:49:43 2012 TUN/TAP TX queue length set to 100
- Sat Oct 20 17:49:43 2012 NOTE: unable to redirect default gateway -- virtual** gateway parameter (--route-gateway or --ifconfig) is missing
- Sat Oct 20 17:49:43 2012 Initialization Sequence Completed
复制代码 运行后无效果,ip地址不变
openwrt对我这种新手来说真是太复杂了.
电脑上装的Openvirtual** GUI使用这个配置文件就能成功.求高手指点
服务器端是WR-500U刷tomato,设置如下 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|