连接任何 VPN 失败!

连接任何 VPN 失败!

在我的 CentOS 6.4 x64 机器上,PPTP VPN 和 OpenVPN 无法连接,并且都返回有关 VPN Secret 的错误!我已经在 Windows 和 Ubuntu 中测试了配置,没有问题。我还注意到我的 OpenVPN 高级设置缺少 CentOS 中的“代理”选项卡,而 Ubuntu 中提供了该选项卡!我提到它是因为我还应该在“代理”选项卡中设置一些设置。

以下是该问题的系统日志:

PPTP:

Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 3180
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN plugin state changed: 1
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN connection 'PPTP' (ConnectInteractive) reply received.
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN plugin state changed: 3
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> VPN connection 'PPTP' (Connect) reply received.
Sep 25 13:07:00 Athlon NetworkManager[1848]: <warn> VPN connection 'PPTP' failed to connect: 'No VPN secrets!'.
Sep 25 13:07:00 Athlon NetworkManager[1848]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep 25 13:07:00 Athlon NetworkManager[1848]: <info> Policy set 'Auto FFR' (wlan0) as default for IPv4 routing and DNS.

打开VPN:

Sep 25 12:31:18 Athlon NetworkManager[1846]: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'...
Sep 25 12:31:18 Athlon NetworkManager[1846]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 10750
Sep 25 12:31:18 Athlon NetworkManager[1846]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' appeared, activating connections
Sep 25 12:31:18 Athlon dbus: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=1846 comm="NetworkManager) interface="org.freedesktop.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.openvpn" (uid=0 pid=10750 comm="/usr/libexec/nm-openvpn-service))
Sep 25 12:31:18 Athlon NetworkManager[1846]: <error> [1411635678.904108] [nm-vpn-connection.c:952] connection_need_secrets_cb(): NeedSecrets failed: dbus-glib-error-quark Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=1846 comm="NetworkManager) interface="org.freedesktop.NetworkManager.VPN.Plugin" member="NeedSecrets" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.openvpn" (uid=0 pid=10750 comm="/usr/libexec/nm-openvpn-service))
Sep 25 12:31:18 Athlon dbus: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=1846 comm="NetworkManager) interface="org.freedesktop.NetworkManager.VPN.Plugin" member="Disconnect" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.openvpn" (uid=0 pid=10750 comm="/usr/libexec/nm-openvpn-service))
Sep 25 12:31:18 Athlon NetworkManager[1846]: <warn> error disconnecting VPN: Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=1846 comm="NetworkManager) interface="org.freedesktop.NetworkManager.VPN.Plugin" member="Disconnect" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager.openvpn" (uid=0 pid=10750 comm="/usr/libexec/nm-openvpn-service))
Sep 25 12:31:18 Athlon NetworkManager[1846]: <info> Policy set 'Auto FFR' (wlan0) as default for IPv4 routing and DNS.

我google了一下这个问题,发现NetworkManager中有一个相关的bug,但我无法解决问题

相关内容