我使用 openvpn 平台创建了一个 VPN 服务器。我可以通过我的 Android 手机成功连接,但无法通过我的笔记本电脑(无论是 ubuntu 还是 windows 操作系统)连接。
当我运行以下命令时:
sudo openvpn --config client.ovpn
我收到以下错误:
Mon Oct 28 17:45:43 2019 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Mon Oct 28 17:45:43 2019 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Oct 28 17:45:43 2019 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Oct 28 17:45:43 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]3.9.169.100:1194
Mon Oct 28 17:45:43 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Oct 28 17:45:43 2019 UDP link local: (not bound)
Mon Oct 28 17:45:43 2019 UDP link remote: [AF_INET]3.9.169.100:1194
Mon Oct 28 17:45:44 2019 TLS: Initial packet from [AF_INET]3.9.169.100:1194, sid=9171bd9d a2c42c74
Mon Oct 28 17:45:44 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Mon Oct 28 17:45:44 2019 VERIFY OK: depth=1, CN=OpenVPN CA
Mon Oct 28 17:45:44 2019 VERIFY OK: nsCertType=SERVER
Mon Oct 28 17:45:44 2019 VERIFY OK: depth=0, CN=OpenVPN Server
Mon Oct 28 17:45:45 2019 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Mon Oct 28 17:45:45 2019 [OpenVPN Server] Peer Connection Initiated with [AF_INET]3.9.169.100:1194
Mon Oct 28 17:45:46 2019 SENT CONTROL [OpenVPN Server]: 'PUSH_REQUEST' (status=1)
Mon Oct 28 17:45:47 2019 PUSH: Received control message: 'PUSH_REPLY,explicit-exit-notify,topology subnet,route-delay 5 30,dhcp-pre-release,dhcp-renew,dhcp-release,route-metric 101,ping 12,ping-restart 50,compress stub-v2,redirect-gateway def1,redirect-gateway bypass-dhcp,redirect-gateway autolocal,route-gateway 172.27.232.1,dhcp-option DNS 172.31.0.2,register-dns,block-ipv6,ifconfig 172.27.232.19 255.255.248.0,peer-id 1,auth-tokenSESS_ID,cipher AES-256-GCM'
Mon Oct 28 17:45:47 2019 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:1 is ignored by previous <connection> blocks
Mon Oct 28 17:45:47 2019 Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:4: dhcp-pre-release (2.4.4)
Mon Oct 28 17:45:47 2019 Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:5: dhcp-renew (2.4.4)
Mon Oct 28 17:45:47 2019 Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:6: dhcp-release (2.4.4)
Mon Oct 28 17:45:47 2019 Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:16: register-dns (2.4.4)
Mon Oct 28 17:45:47 2019 Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:17: block-ipv6 (2.4.4)
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: timers and/or timeouts modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: explicit notify parm(s) modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: compression parms modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: --ifconfig/up options modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: route options modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: route-related options modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: peer-id set
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: adjusting link_mtu to 1625
Mon Oct 28 17:45:47 2019 OPTIONS IMPORT: data channel crypto options modified
Mon Oct 28 17:45:47 2019 Data Channel: using negotiated cipher 'AES-256-GCM'
Mon Oct 28 17:45:47 2019 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Oct 28 17:45:47 2019 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Oct 28 17:45:47 2019 ROUTE_GATEWAY 192.168.43.1/255.255.255.0 IFACE=wlp4s0 HWADDR=48:5a:b6:dc:26:a7
Mon Oct 28 17:45:47 2019 TUN/TAP device tun1 opened
Mon Oct 28 17:45:47 2019 TUN/TAP TX queue length set to 100
Mon Oct 28 17:45:47 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Mon Oct 28 17:45:47 2019 /sbin/ip link set dev tun1 up mtu 1500
Mon Oct 28 17:45:47 2019 /sbin/ip addr add dev tun1 172.27.232.19/21 broadcast 172.27.239.255
Mon Oct 28 17:45:52 2019 ROUTE remote_host is NOT LOCAL
Mon Oct 28 17:45:52 2019 /sbin/ip route add 3.9.169.100/32 via 192.168.43.1
RTNETLINK answers: File exists
Mon Oct 28 17:45:52 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Mon Oct 28 17:45:52 2019 /sbin/ip route add 0.0.0.0/1 via 172.27.232.1
RTNETLINK answers: File exists
Mon Oct 28 17:45:52 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Mon Oct 28 17:45:52 2019 /sbin/ip route add 128.0.0.0/1 via 172.27.232.1
RTNETLINK answers: File exists
Mon Oct 28 17:45:52 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Mon Oct 28 17:45:52 2019 Initialization Sequence Completed
有人能告诉我问题出在哪里吗?我尝试通过不同的无线网络连接它,但问题依然存在。