aireugene
Hello,
I tested an openvpn with 2 openvpn servers. (physically different server)
And then i could access an openvpn using iphone without any error but 2 openvpn servers showed different behaviors.
openvpn SVR 1.
Sslvpn on iphone was disconnected when iphone went to sleep mode. if iphone wokes up from sleep mode, iphone was trying to access and then accessed successfully.
=== logs from iPhone ===
2017-12-21 16:29:45 EVENT: ASSIGN_IP
2017-12-21 16:29:45 Error parsing IPv4 route: [route] [remote_host] [255.255.255.255] [net_gateway] : addr_pair_mask_parse_error: AddrMaskPair parse error 'route': remote_host/255.255.255.255 : ip_exception: error parsing route IP address 'remote_host' : Invalid argument
2017-12-21 16:29:45 Connected via tun
2017-12-21 16:29:45 LZO-ASYM init swap=0 asym=1
2017-12-21 16:29:45 Comp-stub init swap=0
2017-12-21 16:29:45 EVENT: CONNECTED poc03@1.1.1.1:8443 (1.1.1.1) via /TCPv4 on tun/10.81.234.6/ gw=[10.81.234.5/]
2017-12-21 16:29:46 SetStatus Connected
2017-12-21 16:29:59 OS Event: SLEEP
2017-12-21 16:29:59 TUN reassert
2017-12-21 16:29:59 TUN reset routes
2017-12-21 16:29:59 EVENT: PAUSE
2017-12-21 16:30:11 OS Event: WAKEUP
2017-12-21 16:30:14 RESUME TEST: Internet:ReachableViaWWAN/WR t------
2017-12-21 16:30:14 EVENT: RESUME
2017-12-21 16:30:14 EVENT: RECONNECTING
2017-12-21 16:30:14 EVENT: RESOLVE
2017-12-21 16:30:14 Contacting 1.1.1.1:8443 via TCP
2017-12-21 16:30:14 EVENT: WAIT
2017-12-21 16:30:14 SetTunnelSocket returned 1
2017-12-21 16:30:14 Connecting to [1.1.1.1]:8443 (1.1.1.1) via TCPv4
2017-12-21 16:30:14 EVENT: CONNECTING
2017-12-21 16:30:14 Tunnel Options:V4,dev-type tun,link-mtu 1572,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher AES-128-CBC,auth SHA256,keysize 128,key-method 2,tls-client
2017-12-21 16:30:14 Creds: Username/Password
2017-12-21 16:30:14 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.1.1-212
IV_VER=3.1.2
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO=1
IV_LZO_SWAP=1
IV_LZ4=1
IV_LZ4v2=1
IV_COMP_STUB=1
IV_COMP_STUBv2=1
openvpn SVR 2.
Sslvpn on iphone was not disconnected even though when iphone went to sleep mode.
It was continually connected even though when iphone went to sleep mode.
==logs from iPhone ===
OpenVPN core 3.1.2 ios arm64 64-bit built on Dec 5 2016 12:50:25
2017-12-21 16:37:52 Frame=512/2048/512 mssfix-ctrl=1250
2017-12-21 16:37:52 UNUSED OPTIONS
4 [rport] [1194]
7 [tls-client]
2017-12-21 16:37:52 EVENT: RESOLVE
2017-12-21 16:37:52 Contacting 1.1.1.2:1194 via TCP
2017-12-21 16:37:52 EVENT: WAIT
2017-12-21 16:37:52 SetTunnelSocket returned 1
2017-12-21 16:37:52 Connecting to [1.1.1.2]:1194 (1.1.1.2) via TCPv4
2017-12-21 16:37:52 EVENT: CONNECTING
2017-12-21 16:37:52 Tunnel Options:V4,dev-type tun,link-mtu 1543,tun-mtu 1500,proto TCPv4_CLIENT,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2017-12-21 16:37:52 Creds: Username/Password
2017-12-21 16:37:52 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.1.1-212
IV_VER=3.1.2
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_BS64DL=1
I tested with same mobile device using same version of opensslvpn app.
according to the log from OpenVPN SVR 1, it has a OS EVENT log like following.
2017-12-21 16:29:59 OS Event: SLEEP
2017-12-21 16:30:11 OS Event: WAKEUP
But, OpenVPN SVR2 doesn't have a log related to OS EVENT.
I thought that it was because different configuration, but i didn't find out different configuration in between 2 openvpn servers.
If it is possible, I want that openvpn on iphone keeps a sslvpn connection when it go to sleep mode.
But if it is impossible to keep the sslvpn connection when iphone go into sleep mode. i want to keep the sslvpn connection as long as possible.
Anyone can help me know why they have different behaviors in between two openvpns?