我使用https://github.com/Nyr/openvpn-install来配置我的openvpn。
我的窗口计算机无法连接,但是电话可以连接。
我的Android手机连接经常断开。
如何解决此问题?非常感谢。
这是我的手机openvpn断开连接时的日志。
Jun 23 08:41:33 vps77304135 systemd[1]: Started OpenVPN service.
Jun 23 08:42:05 vps77304135 openvpn[1083]: 120.236.146.39:33803 TLS: Initial packet from [AF_INET]120.236.146.39:33803, sid=6232cfee 89a097f7
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 VERIFY OK: depth=1, CN=ChangeMe
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 VERIFY OK: depth=0, CN=qimi
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_GUI_VER=OC30Android
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_VER=3.2
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_PLAT=android
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_NCP=2
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_TCPNL=1
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_PROTO=2
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_IPv6=0
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 peer info: IV_AUTO_SESS=1
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Jun 23 08:42:09 vps77304135 openvpn[1083]: 120.236.146.39:33803 [qimi] Peer Connection Initiated with [AF_INET]120.236.146.39:33803
Jun 23 08:42:09 vps77304135 openvpn[1083]: MULTI: new connection by client 'qimi' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Jun 23 08:42:09 vps77304135 openvpn[1083]: MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Jun 23 08:42:09 vps77304135 openvpn[1083]: MULTI: Learn: 10.8.0.2 -> qimi/120.236.146.39:33803
Jun 23 08:42:09 vps77304135 openvpn[1083]: MULTI: primary virtual IP for qimi/120.236.146.39:33803: 10.8.0.2
Jun 23 08:42:09 vps77304135 openvpn[1083]: qimi/120.236.146.39:33803 PUSH: Received control message: 'PUSH_REQUEST'
Jun 23 08:42:09 vps77304135 openvpn[1083]: qimi/120.236.146.39:33803 SENT CONTROL [qimi]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' (status=1)
Jun 23 08:42:09 vps77304135 openvpn[1083]: qimi/120.236.146.39:33803 Data Channel: using negotiated cipher 'AES-256-GCM'
Jun 23 08:42:09 vps77304135 openvpn[1083]: qimi/120.236.146.39:33803 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 23 08:42:09 vps77304135 openvpn[1083]: qimi/120.236.146.39:33803 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 23 08:44:07 vps77304135 openvpn[1083]: 112.74.179.83:6809 TLS: Initial packet from [AF_INET]112.74.179.83:6809, sid=4c0f204b 75afb48c
Jun 23 08:44:13 vps77304135 openvpn[1083]: 112.74.179.83:6809 VERIFY OK: depth=1, CN=ChangeMe
Jun 23 08:44:13 vps77304135 openvpn[1083]: 112.74.179.83:6809 VERIFY OK: depth=0, CN=qimi
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_VER=2.4.7
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_PLAT=linux
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_PROTO=2
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_NCP=2
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_LZ4=1
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_LZ4v2=1
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_LZO=1
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_COMP_STUB=1
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_COMP_STUBv2=1
Jun 23 08:44:14 vps77304135 openvpn[1083]: 112.74.179.83:6809 peer info: IV_TCPNL=1
Jun 23 08:44:21 vps77304135 openvpn[1083]: 112.74.179.83:6809 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Jun 23 08:44:21 vps77304135 openvpn[1083]: 112.74.179.83:6809 [qimi] Peer Connection Initiated with [AF_INET]112.74.179.83:6809
Jun 23 08:44:21 vps77304135 openvpn[1083]: MULTI: new connection by client 'qimi' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Jun 23 08:44:21 vps77304135 openvpn[1083]: MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Jun 23 08:44:21 vps77304135 openvpn[1083]: MULTI: Learn: 10.8.0.2 -> qimi/112.74.179.83:6809
Jun 23 08:44:21 vps77304135 openvpn[1083]: MULTI: primary virtual IP for qimi/112.74.179.83:6809: 10.8.0.2
Jun 23 08:44:22 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 PUSH: Received control message: 'PUSH_REQUEST'
Jun 23 08:44:22 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 SENT CONTROL [qimi]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0,peer-id 1,cipher AES-256-GCM' (status=1)
Jun 23 08:44:22 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 Data Channel: using negotiated cipher 'AES-256-GCM'
Jun 23 08:44:22 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 23 08:44:22 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Jun 23 08:44:27 vps77304135 openvpn[1083]: qimi/112.74.179.83:6809 PUSH: Received control message: 'PUSH_REQUEST'