OpenVPN加密和授权问题

量子物理学家

通过阅读各种教程,我已经配置了我的OpenVPN服务器和客户端。我当前使用的配置如下:

对于服务器:

port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

对于客户:

client
dev tun
proto tcp
remote my-server-1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
verb 3

现在,我面临两个问题:

1)从我的客户端到服务器的连接看起来不错;但是,我不断收到此消息:

******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext

但是我不明白为什么会这样。我希望我的连接被加密,为此我努力工作,并且我创建并使用了所有必要的密钥(如在conf文件中看到的那样)。

2)我去了我的笔记本电脑(不是客户端),并使用apt-get安装了OpenVPN,并简单地与服务器连接(没有任何配置)...然后猜到了...它已连接!现在那吓到我了!看起来每个人都可以连接到我的OpenVPN服务器!我从此连接获得的日志是(删除时间戳记后):

OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Feb 27 2013
IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
TUN/TAP device tun0 opened
UDPv4 link local (bound): [undef]
UDPv4 link remote: [AF_INET]93.111.222.121:1194
event_wait : Interrupted system call (code=4)
SIGINT[hard,] received, process exiting

您能解释一下这是什么意思吗?

谢谢您的辛勤工作。

劳伦斯

您如何启动OpenVPN?听起来您正在以某种方式调用它,即它正在读取错误的配置文件或根本不读取一个配置文件。

我相信我使用的系统openvpn {config-file-name.ovpn}平原openvpn可能会产生这种情况。您需要告诉它要使用的配置文件。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章