为什么openvpn响应“无法从stdin读取Auth用户名?”

时间:2015-08-15 06:20:37

标签: vpn openvpn gentoo

刚刚对我的系统进行了更新,由于某种原因,我无法再登录我的VPN服务了。我正在运行gentoo。

这是我的/etc/openvpn/openvpn.conf。

client
dev tun
proto udp
remote myvpnguys.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-client
remote-cert-tls server
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem
keepalive 10 300
auth-user-pass

我在gentoo上开始我的服务如下:

$ sudo /etc/init.d/openvpn start
 * Caching service dependencies ...                                       [ ok ]
 * Starting openvpn ...                                                   [ ok ]
 * WARNING: openvpn has started, but is inactive

这是显示用户名提示的日志文件,但就好像它一直在继续。

$ sudo cat ./openvpn.log
Sat Aug 15 00:57:32 2015 OpenVPN 2.3.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Aug 15 2015
Sat Aug 15 00:57:32 2015 library versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.08
Enter Auth Username:
Sat Aug 15 00:57:32 2015 ERROR: could not read Auth username from stdin
Sat Aug 15 00:57:32 2015 Exiting due to fatal error  

1 个答案:

答案 0 :(得分:2)

这是2.3.7中的错误,并在2.3.8中修复: https://community.openvpn.net/openvpn/ticket/248

将此行添加到/etc/portage/package.keywords:
=净杂项/的openvpn-2.3.8

并安装2.3.8。