Any suggestions why iOS9 OpenVPN Connect will hand-off from WiFi to 4G but not from 4G to WiFi? The following shows the 4G connection followed by detection of WiFi then repeated attempts to connect to WiFi using the last public IP rather than a private IP. After which OpenVpn gives up and disconnects leaving me to restart next time I leave the WiFi network. I manage the VPN server on the WiFi network.
--------------------------------------------------------------------------------------------------------------------------
2015-11-04 16:26:15 VERIFY OK: depth=1
cert. version : 3
serial number : 00
issuer name : C=US, ST=State, L=City, O=Company Name, emailAddress=email@email.com , CN=VpnCa
subject name : C=US, ST=State, L=City, O=Company Name, emailAddress=email@email.com , CN=VpnCa
issued on : 2013-09-11 02:22:43
expires on : 2023-09-09 02:22:43
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
2015-11-04 16:26:15 VERIFY OK: depth=0
cert. version : 3
serial number : 02
issuer name : C=US, ST=State, L=City, O=Company Name, emailAddress=email@email.com , CN=VpnCa
subject name : C=US, ST=State, L=City, O=Company Name, emailAddress=email@email.com , CN=Vpn Server Cert
issued on : 2013-09-11 02:35:50
expires on : 2023-09-09 02:35:50
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2015-11-04 16:26:16 SSL Handshake: TLSv1.2/TLS-DHE-RSA-WITH-AES-256-CBC-SHA
2015-11-04 16:26:16 Session is ACTIVE
2015-11-04 16:26:16 EVENT: GET_CONFIG
2015-11-04 16:26:16 Sending PUSH_REQUEST to server...
2015-11-04 16:26:16 OPTIONS:
0 [route] [192.168.2.0] [255.255.255.0]
1 [dhcp-option] [DNS] [192.168.2.1]
2 [dhcp-option] [NTP] [192.168.2.1]
3 [redirect-gateway] [def1]
4 [route-gateway] [192.168.99.1]
5 [topology] [subnet]
6 [ping] [10]
7 [ping-restart] [60]
8 [ifconfig] [192.168.99.2] [255.255.255.0]
2015-11-04 16:26:16 EVENT: ASSIGN_IP
2015-11-04 16:26:16 Unknown pushed DHCP option: [dhcp-option] [NTP] [192.168.2.1]
2015-11-04 16:26:16 TunPersist: saving tun context:
Session Name: domain.name
Remote Address: 23.1.1.226
Tunnel Addresses:
192.168.99.2/24 -> 192.168.99.1
Reroute Gateway: IPv4=1 IPv6=0 flags=[ ENABLE REROUTE_GW DEF1 IPv4 ]
Block IPv6: no
Add Routes:
Exclude Routes:
DNS Servers:
192.168.2.1
Search Domains:
2015-11-04 16:26:16 Connected via tun
2015-11-04 16:26:16 EVENT: CONNECTED MarkVpn@domain.name:1194 (23.1.1.226) via /UDPv4 on tun/192.168.99.2/
2015-11-04 16:26:16 SetStatus Connected
2015-11-04 16:26:28 OS Event: NET AVAILABLE (RESUME): ReachableViaWiFi
2015-11-04 16:26:29 OS Event: NET AVAILABLE (RESUME): ReachableViaWiFi
2015-11-04 16:26:29 NET Internet:ReachableViaWiFi/-R -------
2015-11-04 16:26:29 NET WiFi:ReachableViaWiFi/-R ------d
2015-11-04 16:26:32 RECONNECT TEST: ReachableViaWiFi
2015-11-04 16:26:32 EVENT: PAUSE
2015-11-04 16:26:33 RESUME TEST: ReachableViaWiFi
2015-11-04 16:26:33 EVENT: RESUME
2015-11-04 16:26:33 EVENT: RECONNECTING
2015-11-04 16:26:33 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:26:33 EVENT: WAIT
2015-11-04 16:26:33 SetTunnelSocket returned 1
2015-11-04 16:26:33 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:26:33 OS Event: SLEEP
2015-11-04 16:26:33 EVENT: PAUSE
2015-11-04 16:26:39 OS Event: WAKEUP
2015-11-04 16:26:42 RESUME TEST: ReachableViaWiFi
2015-11-04 16:26:42 EVENT: RESUME
2015-11-04 16:26:42 EVENT: RECONNECTING
2015-11-04 16:26:42 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:26:42 EVENT: WAIT
2015-11-04 16:26:42 SetTunnelSocket returned 1
2015-11-04 16:26:42 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:26:52 Server poll timeout, trying next remote entry...
2015-11-04 16:26:52 EVENT: RECONNECTING
2015-11-04 16:26:52 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:26:52 EVENT: WAIT
2015-11-04 16:26:52 SetTunnelSocket returned 1
2015-11-04 16:26:52 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:26:55 OS Event: SLEEP
2015-11-04 16:26:55 EVENT: PAUSE
2015-11-04 16:28:31 OS Event: WAKEUP
2015-11-04 16:28:34 RESUME TEST: ReachableViaWiFi
2015-11-04 16:28:34 EVENT: RESUME
2015-11-04 16:28:34 EVENT: RECONNECTING
2015-11-04 16:28:34 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:28:34 EVENT: WAIT
2015-11-04 16:28:34 SetTunnelSocket returned 1
2015-11-04 16:28:34 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:28:44 Server poll timeout, trying next remote entry...
2015-11-04 16:28:44 EVENT: RECONNECTING
2015-11-04 16:28:44 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:28:44 EVENT: WAIT
2015-11-04 16:28:44 SetTunnelSocket returned 1
2015-11-04 16:28:44 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:28:47 OS Event: SLEEP
2015-11-04 16:28:47 EVENT: PAUSE
2015-11-04 16:40:17 OS Event: WAKEUP
2015-11-04 16:40:20 RESUME TEST: ReachableViaWiFi
2015-11-04 16:40:20 EVENT: RESUME
2015-11-04 16:40:20 EVENT: RECONNECTING
2015-11-04 16:40:20 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:40:20 EVENT: WAIT
2015-11-04 16:40:20 SetTunnelSocket returned 1
2015-11-04 16:40:20 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:40:30 Server poll timeout, trying next remote entry...
2015-11-04 16:40:30 EVENT: RECONNECTING
2015-11-04 16:40:30 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:40:30 EVENT: WAIT
2015-11-04 16:40:30 SetTunnelSocket returned 1
2015-11-04 16:40:30 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:40:40 Server poll timeout, trying next remote entry...
2015-11-04 16:40:40 EVENT: RECONNECTING
2015-11-04 16:40:40 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:40:40 EVENT: WAIT
2015-11-04 16:40:40 SetTunnelSocket returned 1
2015-11-04 16:40:40 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:40:50 Server poll timeout, trying next remote entry...
2015-11-04 16:40:50 EVENT: RECONNECTING
2015-11-04 16:40:50 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:40:50 EVENT: WAIT
2015-11-04 16:40:50 SetTunnelSocket returned 1
2015-11-04 16:40:50 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:41:00 Server poll timeout, trying next remote entry...
2015-11-04 16:41:00 EVENT: RECONNECTING
2015-11-04 16:41:00 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:41:00 EVENT: WAIT
2015-11-04 16:41:00 SetTunnelSocket returned 1
2015-11-04 16:41:00 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:41:10 Server poll timeout, trying next remote entry...
2015-11-04 16:41:10 EVENT: RECONNECTING
2015-11-04 16:41:10 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:41:10 EVENT: WAIT
2015-11-04 16:41:10 SetTunnelSocket returned 1
2015-11-04 16:41:10 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:41:20 Server poll timeout, trying next remote entry...
2015-11-04 16:41:20 EVENT: RECONNECTING
2015-11-04 16:41:20 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:41:20 EVENT: WAIT
2015-11-04 16:41:20 SetTunnelSocket returned 1
2015-11-04 16:41:20 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:41:30 Server poll timeout, trying next remote entry...
2015-11-04 16:41:30 EVENT: RECONNECTING
2015-11-04 16:41:30 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:41:30 EVENT: WAIT
2015-11-04 16:41:30 SetTunnelSocket returned 1
2015-11-04 16:41:30 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:41:31 OS Event: SLEEP
2015-11-04 16:41:31 EVENT: PAUSE
2015-11-04 16:43:43 OS Event: WAKEUP
2015-11-04 16:43:46 RESUME TEST: ReachableViaWiFi
2015-11-04 16:43:46 EVENT: RESUME
2015-11-04 16:43:46 EVENT: RECONNECTING
2015-11-04 16:43:46 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:43:46 EVENT: WAIT
2015-11-04 16:43:46 SetTunnelSocket returned 1
2015-11-04 16:43:46 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:43:56 Server poll timeout, trying next remote entry...
2015-11-04 16:43:56 EVENT: RECONNECTING
2015-11-04 16:43:56 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:43:56 EVENT: WAIT
2015-11-04 16:43:56 SetTunnelSocket returned 1
2015-11-04 16:43:56 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:43:59 OS Event: SLEEP
2015-11-04 16:44:00 EVENT: PAUSE
2015-11-04 16:44:44 OS Event: WAKEUP
2015-11-04 16:44:47 RESUME TEST: ReachableViaWiFi
2015-11-04 16:44:47 EVENT: RESUME
2015-11-04 16:44:47 EVENT: RECONNECTING
2015-11-04 16:44:47 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:44:47 EVENT: WAIT
2015-11-04 16:44:47 SetTunnelSocket returned 1
2015-11-04 16:44:47 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:44:57 Server poll timeout, trying next remote entry...
2015-11-04 16:44:57 EVENT: RECONNECTING
2015-11-04 16:44:57 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:44:57 EVENT: WAIT
2015-11-04 16:44:57 SetTunnelSocket returned 1
2015-11-04 16:44:57 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:07 Server poll timeout, trying next remote entry...
2015-11-04 16:45:07 EVENT: RECONNECTING
2015-11-04 16:45:07 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:07 EVENT: WAIT
2015-11-04 16:45:07 SetTunnelSocket returned 1
2015-11-04 16:45:07 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:17 Server poll timeout, trying next remote entry...
2015-11-04 16:45:17 EVENT: RECONNECTING
2015-11-04 16:45:17 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:17 EVENT: WAIT
2015-11-04 16:45:17 SetTunnelSocket returned 1
2015-11-04 16:45:17 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:27 Server poll timeout, trying next remote entry...
2015-11-04 16:45:27 EVENT: RECONNECTING
2015-11-04 16:45:27 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:27 EVENT: WAIT
2015-11-04 16:45:27 SetTunnelSocket returned 1
2015-11-04 16:45:27 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:37 Server poll timeout, trying next remote entry...
2015-11-04 16:45:37 EVENT: RECONNECTING
2015-11-04 16:45:37 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:37 EVENT: WAIT
2015-11-04 16:45:37 SetTunnelSocket returned 1
2015-11-04 16:45:37 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:47 Server poll timeout, trying next remote entry...
2015-11-04 16:45:47 EVENT: RECONNECTING
2015-11-04 16:45:47 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:47 EVENT: WAIT
2015-11-04 16:45:47 SetTunnelSocket returned 1
2015-11-04 16:45:47 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:45:57 Server poll timeout, trying next remote entry...
2015-11-04 16:45:57 EVENT: RECONNECTING
2015-11-04 16:45:57 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:45:57 EVENT: WAIT
2015-11-04 16:45:57 SetTunnelSocket returned 1
2015-11-04 16:45:57 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:46:07 Server poll timeout, trying next remote entry...
2015-11-04 16:46:07 EVENT: RECONNECTING
2015-11-04 16:46:07 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:46:07 EVENT: WAIT
2015-11-04 16:46:07 SetTunnelSocket returned 1
2015-11-04 16:46:07 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:46:17 Server poll timeout, trying next remote entry...
2015-11-04 16:46:17 EVENT: RECONNECTING
2015-11-04 16:46:17 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:46:17 EVENT: WAIT
2015-11-04 16:46:17 SetTunnelSocket returned 1
2015-11-04 16:46:17 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:46:27 Server poll timeout, trying next remote entry...
2015-11-04 16:46:27 EVENT: RECONNECTING
2015-11-04 16:46:27 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:46:27 EVENT: WAIT
2015-11-04 16:46:27 SetTunnelSocket returned 1
2015-11-04 16:46:27 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:46:37 Server poll timeout, trying next remote entry...
2015-11-04 16:46:37 EVENT: RECONNECTING
2015-11-04 16:46:37 Contacting 23.1.1.226:1194 via UDP
2015-11-04 16:46:37 EVENT: WAIT
2015-11-04 16:46:37 SetTunnelSocket returned 1
2015-11-04 16:46:37 Connecting to domain.name:1194 (23.1.1.226) via UDPv4
2015-11-04 16:46:47 EVENT: CONNECTION_TIMEOUT [ERR]
2015-11-04 16:46:47 EVENT: DISCONNECTED
2015-11-04 16:46:47 Raw stats on disconnect:
BYTES_IN : 119830694
BYTES_OUT : 26275336
PACKETS_IN : 118605
PACKETS_OUT : 99217
TUN_BYTES_IN : 21565548
TUN_BYTES_OUT : 113915893
TUN_PACKETS_IN : 94040
TUN_PACKETS_OUT : 113715
CONNECTION_TIMEOUT : 1
N_PAUSE : 98
N_RECONNECT : 119
PKTID_UDP_REPLAY_WINDOW_BACKTRACK : 42
2015-11-04 16:46:47 Performance stats on disconnect:
CPU usage (microseconds): 37983216
Tunnel compression ratio (uplink): 1.21839
Tunnel compression ratio (downlink): 1.05192
Network bytes per CPU second: 3846594
Tunnel bytes per CPU second: 3566876
2015-11-04 16:46:47 EVENT: DISCONNECT_PENDING
2015-11-04 16:46:47 ----- OpenVPN Stop -----
Handoff fine to 4G but not back to WiFi
-
- OpenVpn Newbie
- Posts: 9
- Joined: Thu Nov 05, 2015 9:17 pm