无法连接到虚拟专用网络

无法连接到虚拟专用网络

我正在尝试弄清楚这里发生了什么,因为我大多数时候都无法连接到 VPN。我在 OpenVPN 协议上使用 FrootVPN。我使用了本指南进行设置。它完全通过我电脑上的软件运行(运行 Windows 7 64 位)我没有对路由器设置进行任何更改。我已经使用了大约 4 或 5 天,一开始它工作正常。然后它开始需要 2 或 3 次尝试才能连接,现在它大多数时候都无法连接。我总是以管理员身份运行。今天我关闭了防病毒/防火墙,现在它可以连接,但我的 IP 地址保持不变。

日志:由于字符数已达到上限,因此必须上传日志

无法连接

IP地址不变

编辑: 如果我将其添加到防火墙的白名单中,地址和端口以及所有这些信息会是什么?此外,现在我收到一个错误对话框,提示“错误:重新连接 FrootVPN 失败

我忘记了路由器的凭证,所以我进行了恢复出厂设置。但这并没有帮助,我将尝试关闭防火墙以进行测试。

好的,关闭路由器上的防火墙并且程序以管理员身份运行后,我得到了以下信息:

Thu Jan 15 13:52:33 2015 OpenVPN 2.3.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Dec  1 2014
Thu Jan 15 13:52:33 2015 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
Enter Management Password:
Thu Jan 15 13:52:33 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Jan 15 13:52:33 2015 Need hold release from management interface, waiting...
Thu Jan 15 13:52:33 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Jan 15 13:52:34 2015 MANAGEMENT: CMD 'state on'
Thu Jan 15 13:52:34 2015 MANAGEMENT: CMD 'log all on'
Thu Jan 15 13:52:34 2015 MANAGEMENT: CMD 'hold off'
Thu Jan 15 13:52:34 2015 MANAGEMENT: CMD 'hold release'
Thu Jan 15 13:52:40 2015 MANAGEMENT: CMD 'username "Auth" "dylan07"'
Thu Jan 15 13:52:40 2015 MANAGEMENT: CMD 'password [...]'
Thu Jan 15 13:52:40 2015 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Jan 15 13:52:40 2015 MANAGEMENT: >STATE:1421358760,RESOLVE,,,
Thu Jan 15 13:52:40 2015 UDPv4 link local: [undef]
Thu Jan 15 13:52:40 2015 UDPv4 link remote: [AF_INET]178.73.212.194:1201
Thu Jan 15 13:52:40 2015 MANAGEMENT: >STATE:1421358760,WAIT,,,
Thu Jan 15 13:52:40 2015 MANAGEMENT: >STATE:1421358760,AUTH,,,
Thu Jan 15 13:52:40 2015 TLS: Initial packet from [AF_INET]178.73.212.194:1201, sid=3406ba47 85bdd4aa
Thu Jan 15 13:52:40 2015 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Jan 15 13:52:41 2015 VERIFY OK: depth=1, C=SE, ST=QQ, L=FrootTown, O=FrootOrg, OU=changeme, CN=changeme, name=changeme, [email protected]
Thu Jan 15 13:52:41 2015 VERIFY OK: nsCertType=SERVER
Thu Jan 15 13:52:41 2015 VERIFY OK: depth=0, C=SE, ST=QQ, L=FrootTown, O=FrootOrg, OU=changeme, CN=server, name=changeme, [email protected]
Thu Jan 15 13:52:42 2015 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jan 15 13:52:42 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 15 13:52:42 2015 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jan 15 13:52:42 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jan 15 13:52:42 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Thu Jan 15 13:52:42 2015 [server] Peer Connection Initiated with [AF_INET]178.73.212.194:1201
Thu Jan 15 13:52:43 2015 MANAGEMENT: >STATE:1421358763,GET_CONFIG,,,
Thu Jan 15 13:52:44 2015 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Jan 15 13:52:45 2015 PUSH: Received control message: 'PUSH_REPLY,ifconfig-ipv6 2a00:1a28:1159:7::1004/64 2a00:1a28:1159:7::1,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-ipv6 2000::/3,tun-ipv6,route-gateway 46.246.9.225,topology subnet,ping 10,ping-restart 160,ifconfig 46.246.9.230 255.255.255.224'
Thu Jan 15 13:52:45 2015 OPTIONS IMPORT: timers and/or timeouts modified
Thu Jan 15 13:52:45 2015 OPTIONS IMPORT: --ifconfig/up options modified
Thu Jan 15 13:52:45 2015 OPTIONS IMPORT: route options modified
Thu Jan 15 13:52:45 2015 OPTIONS IMPORT: route-related options modified
Thu Jan 15 13:52:45 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Jan 15 13:52:45 2015 do_ifconfig, tt->ipv6=1, tt->did_ifconfig_ipv6_setup=1
Thu Jan 15 13:52:45 2015 MANAGEMENT: >STATE:1421358765,ASSIGN_IP,,46.246.9.230,
Thu Jan 15 13:52:46 2015 NETSH: C:\Windows\system32\netsh.exe interface ipv6 set address Local Area Connection 3 2a00:1a28:1159:7::1004 store=active
Thu Jan 15 13:52:46 2015 ERROR: netsh command failed: returned error code 1
Thu Jan 15 13:52:51 2015 NETSH: C:\Windows\system32\netsh.exe interface ipv6 set address Local Area Connection 3 2a00:1a28:1159:7::1004 store=active
Thu Jan 15 13:52:51 2015 ERROR: netsh command failed: returned error code 1
Thu Jan 15 13:52:56 2015 NETSH: C:\Windows\system32\netsh.exe interface ipv6 set address Local Area Connection 3 2a00:1a28:1159:7::1004 store=active
Thu Jan 15 13:52:56 2015 ERROR: netsh command failed: returned error code 1
Thu Jan 15 13:53:01 2015 NETSH: C:\Windows\system32\netsh.exe interface ipv6 set address Local Area Connection 3 2a00:1a28:1159:7::1004 store=active
Thu Jan 15 13:53:01 2015 ERROR: netsh command failed: returned error code 1
Thu Jan 15 13:53:05 2015 MANAGEMENT: Client disconnected
Thu Jan 15 13:53:05 2015 NETSH: command failed
Thu Jan 15 13:53:05 2015 Exiting due to fatal error

答案1

我遇到了同样的错误,对于我来说,解决方案如下。转到网络适配器 -> TunnelTap,更改 IPv4 设置以自动分配 IP 地址。应用更改。

答案2

我通过在控制面板中卸载 TAP-9 网络适配器,然后重新安装 OpenVPN 来纠正这个问题。我花了好几天时间解决这个问题,但在网上找不到太多帮助。

希望这也能帮助你

答案3

@Mahdi 评论道:您的 VPN 客户端是 32 位还是 64 位?显然,netsh 中有一个错误,您需要使用 32 位版本。在 Google 上搜索“netsh 失败,错误代码为 1”,可以找到与您的问题非常相似的问题。– Mahdi

这是我的问题。因为我无法选择评论作为答案,所以我把它放在这里,希望对其他人有帮助。

相关内容