在 network-manager-openvpn 上导入配置

Oxw*_*ivi 9 network-manager vpn openvpn

我正在尝试使用 OpenVPN 协议在网络管理器中使用 OpenVPN 的 GUI 模块来使用免费服务。

该配置.ovpn在 Windows 上运行良好。Windows 中的行为是这样的,我运行 OpenVPN GUI 并选择连接到这个特定的 VPN。然后它会显示尝试连接的活动,并打开一个对话框进行用户名/密码验证。

通过将文件类型更改为.conf并使用网络管理器中的导入功能,我已成功导入所有配置。但是,尝试连接只会显示网络管理器尝试连接的动画,但最终会以连接超时通知结束。根本不会出现要求身份验证的提示,我也找不到任何功能来作为身份验证详细信息的前缀。

client
dev tun
proto tcp
remote miami.proxpn.com 443 
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher BF-CBC
keysize 512
comp-lzo
verb 4
mute 5
tun-mtu 1500
mssfix 1450
auth-user-pass
reneg-sec 0


# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here.  See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
Run Code Online (Sandbox Code Playgroud)

不用说,但我已经下载了设置 OpenVPN 连接所需的所有软件包。

顺便说一句,因为你可以在上面看到,.key并且.crt位置被指定的文件是在同一目录下的配置文件。导入配置文件后,如果我把它们删除,会不会有什么问题?请注意,我没有删除它们,所以我面临的问题不是由于缺少这些文件。

bin*_*inW 13

尝试从命令行连接到 VPN。这将确保问题出在 NetworkManager 而不是其他方面。您可以使用以下命令从命令行连接:

openvpn --config /path/to/config.ovpn
Run Code Online (Sandbox Code Playgroud)

您可能需要使用 sudo 运行此命令。

如果您可以从命令行成功连接,请尝试将自己添加到netdev组并Available to all users在 NetworkManager 的 vpn 设置窗口中取消选中,然后尝试使用 NM 进行连接。