一些事一些情,记下工作、生活中的问题,以及乱七八糟的胡思乱想

Ubuntu 安装 openvpn

上一篇 / 下一篇  2008-05-27 20:12:57 / 个人分类:linux

下载openvpn :sudo apt-get install openvpn
在下载openvpn的时候会提示 :建议安装软件包 :resolvconf
安装完 openvpn 后再 安装resolvconf
(若没有安装 resolvconf  在启动 openvpn的时候提示 /usr/sbin/openssl-vulnkey: not found)


把 client的密钥匙cp到 /etc/openvpn
运行 :openvpn --config /etc/openvpn/client.conf
提示 :
hzh@hzh:~/桌面$ openvpn --config /etc/openvpn/client.conf
Tue May 27 20:16:49 2008 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on May 14 2008
Tue May 27 20:16:49 2008 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Tue May 27 20:16:49 2008 Cannot load certificate file client.crt: error:02001002:system library:fopen:No such file or directory: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Tue May 27 20:16:49 2008 Exiting

没权限
以root运行
提示 :
root@hzh:/etc/openvpn# openvpn --config client.conf
Tue May 27 20:10:38 2008 OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on May 14 2008
Tue May 27 20:10:38 2008 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Tue May 27 20:10:38 2008 /usr/sbin/openssl-vulnkey -q client.key
Tue May 27 20:10:38 2008 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Tue May 27 20:10:38 2008 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue May 27 20:10:38 2008 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue May 27 20:10:38 2008 Control Channel MTU parms [ L:1543 D:168 EF:68 EB:0 ET:0 EL:0 ]
Tue May 27 20:10:38 2008 Data Channel MTU parms [ L:1543 D:1450 EF:43 EB:4 ET:0 EL:0 ]
Tue May 27 20:10:38 2008 Local Options hash (VER=V4): 'd8421bb0'
Tue May 27 20:10:38 2008 Expected Remote Options hash (VER=V4): 'c413e92e'
Tue May 27 20:10:38 2008 failed to find GID for group nobody
Tue May 27 20:10:38 2008 Exiting

没有添加 nobody

添加 nobody
root@hzh:/etc/openvpn# groupadd nobody

再运行
root@hzh:/etc/openvpn# openvpn --config client.conf

.......
......
......
Tue May 27 20:10:55 2008 GID set to nobody
Tue May 27 20:10:55 2008 UID set to nobody
Tue May 27 20:10:55 2008 Initialization Sequence Completed


大功告成
启动方式 sudo /etc/init.d/openvpn start

TAG:

引用 删除 Guest   /   2010-06-24 12:56:13
不需要添加nobody 组,只要在client.conf 里修改一下就可以:
group nobody
改为
group nogroup
就可以了。
引用 删除 Guest   /   2009-12-20 15:42:11

很好!帮我解决了一个小问题!
引用 删除 sysdba   /   2008-05-28 10:57:49
看看
引用 删除 xxk   /   2008-05-27 23:13:35
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2012-05-25  
  12345
6789101112
13141516171819
20212223242526
2728293031  

数据统计

  • 访问量: 11187
  • 日志数: 65
  • 图片数: 1
  • 建立时间: 2008-04-22
  • 更新时间: 2010-03-02

RSS订阅

Open Toolbar