赞助连接

赞助连接

阅 读 文 章

openvpn 启动错误

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友() | 时间:2007-06-24 | 浏览: 人次 ]

OS: freebsd 6.2

============= openvpn.conf 配置如下:====================

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 172.17.17.0 255.255.255.0
client-to-client
keepalive 10 120
tls-auth ta.key 0
auth-user-pass-verify checkpwd via-env
client-cert-not-required
username-as-common-name
push "redirect-gateway"
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status ostatus.log
log /var/log/openvpn.log
log-append  oopenvpn.log
verb 3
;mute 20

================启动openvpn, 提示错误日志如下: =====================

Thu Jun 14 13:58:01 2007 OpenVPN 2.1_rc4 i386-unknown-freebsd6.2 [SSL] [LZO2] built on May 27 2007
Thu Jun 14 13:58:01 2007 Diffie-Hellman initialized with 1024 bit key
Thu Jun 14 13:58:01 2007 WARNING: This configuration may accept clients which do not present a certificate
Thu Jun 14 13:58:01 2007 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu Jun 14 13:58:01 2007 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jun 14 13:58:01 2007 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jun 14 13:58:01 2007 TLS-Auth MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu Jun 14 13:58:01 2007 gw 111.222.111.222
Thu Jun 14 13:58:01 2007 TUN/TAP device /dev/tun0 opened
Thu Jun 14 13:58:01 2007 /sbin/ifconfig tun0 172.17.17.1 172.17.17.2 mtu 1500 netmask 255.255.255.255 up
Thu Jun 14 13:58:01 2007 /sbin/route add -net 172.17.17.0 172.17.17.2 255.255.255.0
route: writing to routing socket: File exists
add net 172.17.17.0: gateway 172.17.17.2: route already in table
Thu Jun 14 13:58:01 2007 ERROR: FreeBSD route add command failed: shell command exited with error status: 1
Thu Jun 14 13:58:01 2007 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Jun 14 13:58:02 2007 GID set to nobody
Thu Jun 14 13:58:02 2007 UID set to nobody
Thu Jun 14 13:58:02 2007 Socket Buffers: R=[41600->65536] S=[65535->65536]
Thu Jun 14 13:58:02 2007 UDPv4 link local (bound): [undef]:1194
Thu Jun 14 13:58:02 2007 UDPv4 link remote: [undef]
Thu Jun 14 13:58:02 2007 MULTI: multi_init called, r=256 v=256
Thu Jun 14 13:58:02 2007 IFCONFIG POOL: base=172.17.17.4 size=62
Thu Jun 14 13:58:02 2007 Initialization Sequence Completed
========================================================================

client 可以连接, 就是不能上网.  

这个是什么问题引起的???  如何解决.   谢谢.

route: writing to routing socket: File exists
add net 172.17.17.0: gateway 172.17.17.2: route already in table

因为路由存在,所以shell脚本返回1,所以错误了


谢谢, wenzk !
TAG标签 : 错误 启动 Thu Jun add Channel nobody to Authentication:

最新评论 共有1位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.