m.cia

Q: VPN on demand blocks network after sleep

Hello everyone

 

On my iPhone I have configured a VPN on-demand profile, which routes all connections through the VPN. When my iPhone is on WiFi and wakes up from sleep the connection works. But as soon I switch to the mobile network, I have no more Internet connection. I can then switch back to WiFi and it works again. If I disable & re-enable the VPN then the connection also works on the mobile network..

This issue only seems to happen after the phone wakes up from sleep.. When I am using the phone and switch networks I never have such issues...

 

I am using an iPhone 5s with the newest iOS 8.2 installed.

 

Here is the log file from the event:

Mar 31 10:19:13 Manuels-iPhone MobileMail[2363] <Warning>: WiFi is associated YES

Mar 31 10:19:13 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated YES

Mar 31 10:19:13 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated YES

Mar 31 10:19:13 Manuels-iPhone UserEventAgent[17] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone SpringBoard[2359] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone locationd[64] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone imagent[27] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone MobileMail[2363] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone MobileMail[2363] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone apsd[83] <Warning>: WiFi is associated NO

Mar 31 10:19:13 Manuels-iPhone configd[24] <Notice>: IPMonitor: can't resolve excluded route: Net 195.176.211.24/32 Ifp en0 !Ifp ipsec0 [first]

Mar 31 10:19:13 Manuels-iPhone networkd[88] <Warning>: +[NETLedBelly stopFastFail] Clearing ledbelly failure cache

Mar 31 10:19:13 Manuels-iPhone neagent[2386] <Notice>: BUG in libdispatch client: kevent[EVFILT_READ] delete: "Bad file descriptor" - 0x9

Mar 31 10:19:13 Manuels-iPhone configd[24] <Notice>: Captive: CNPluginHandler en0: Inactive

Mar 31 10:19:13 Manuels-iPhone configd[24] <Notice>: network changed: v4(ipsec0:10.11.4.1, en0-:10.11.3.14) DNS* Proxy

Mar 31 10:19:13 Manuels-iPhone com.apple.WebKit.Networking[2390] <Error>: tcp_connection_destination_prepare_complete 45 connectx to 74.125.136.147:80@0 failed: Can't assign requested address

Mar 31 10:19:13 Manuels-iPhone com.apple.WebKit.Networking[2390] <Error>: tcp_connection_destination_prepare_complete 45 connectx to 74.125.136.99:80@0 failed: Can't assign requested address

Mar 31 10:19:13 Manuels-iPhone com.apple.WebKit.Networking[2390] <Error>: tcp_connection_destination_prepare_complete 45 connectx to 74.125.136.104:80@0 failed: Can't assign requested address

Mar 31 10:19:13 Manuels-iPhone discoveryd[67] <Notice>: Basic Bonjour stop listening on en0

Mar 31 10:19:13 Manuels-iPhone discoveryd[67] <Notice>: Basic Bonjour stop listening on awdl0

Mar 31 10:19:13 Manuels-iPhone networkd[88] <Warning>: +[NETLedBelly stopFastFail] Clearing ledbelly failure cache

Mar 31 10:19:13 Manuels-iPhone configd[24] <Notice>: network changed: v4(ipsec0-:10.11.4.1) DNS- Proxy-

Mar 31 10:19:14 Manuels-iPhone discoveryd[67] <Notice>: Basic WABServer NetResolverEvent no resolvers, resetting domains

Mar 31 10:19:14 Manuels-iPhone aosnotifyd[103] <Warning>: WiFi is associated YES

Mar 31 10:19:14 Manuels-iPhone aosnotifyd[103] <Warning>: WiFi is associated YES

Mar 31 10:19:14 Manuels-iPhone aosnotifyd[103] <Warning>: WiFi is associated NO

Mar 31 10:19:14 Manuels-iPhone dataaccessd[2353] <Warning>: WiFi is associated YES

Mar 31 10:19:14 Manuels-iPhone networkd[88] <Error>: -[FlowAnalyticsEngine _newFlowData:] netanalyticsdebug: (3) avoiding multiple instantiations for flow proxy-vpn.pot.vptt.ch, discarding all its new records

Mar 31 10:19:14 Manuels-iPhone dataaccessd[2353] <Warning>: WiFi is associated NO

Mar 31 10:19:14 Manuels-iPhone dataaccessd[2353] <Warning>: WiFi is associated NO

Mar 31 10:19:15 Manuels-iPhone locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

Mar 31 10:19:16 Manuels-iPhone locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

Mar 31 10:19:19 Manuels-iPhone kernel[0] <Notice>: AppleH4CamIn::setPowerStateGated: 0

Mar 31 10:19:19 Manuels-iPhone kernel[0] <Notice>: AppleH4CamIn::power_off_hardware

Mar 31 10:19:19 Manuels-iPhone itunescloudd[102] <Notice>: (Note ) MC: User has completed cloud configuration. Not showing UI again.

Mar 31 10:19:19 Manuels-iPhone mediaserverd[2350] <Notice>: 'FigPlayer - 41' (pid = 41) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_PresenceScan

Mar 31 10:19:19 Manuels-iPhone mediaserverd[2350] <Notice>: 2015-03-31 10:19:19.368649 AM [AirPlay] BTLE client stopping to browse for AirPlay Solo Target Presence.

Mar 31 10:19:19 Manuels-iPhone mediaserverd[2350] <Notice>: 2015-03-31 10:19:19.369740 AM [AirPlay] BTLE discovery stopped

Mar 31 10:19:19 Manuels-iPhone wirelessproxd[45] <Notice>: (Error) trying to stop a scan while the central isn't available

Mar 31 10:19:19 Manuels-iPhone wirelessproxd[45] <Warning>: (Warn ) CoreBluetooth: API MISUSE: <CBCentralManager: 0x14e372c0> can only accept this command while in the powered on state

 

This line looks pretty suspicious:

Mar 31 10:19:14 Manuels-iPhone networkd[88] <Error>: -[FlowAnalyticsEngine _newFlowData:] netanalyticsdebug: (3) avoiding multiple instantiations for flow proxy-vpn.pot.vptt.ch, discarding all its new records

 

Anybody has encountered this problem?

Thanks for the help..

iPhone 5s, iOS 8.2

Posted on Mar 31, 2015 2:32 AM

Close

Q: VPN on demand blocks network after sleep

  • All replies
  • Helpful answers

  • by brenden dv,

    brenden dv brenden dv Apr 2, 2015 1:37 PM in response to m.cia
    Community Specialists
    Apr 2, 2015 1:37 PM in response to m.cia

    Hi m.cia,

     

    If you are having issues with your VPN On-demand configuration, you may find the following article helpful, especially the more advanced config link at the bottom (apologies if you have already seen it):

     

    iOS 7: About the Always option for VPN On Demand - Apple Support

     

    Regards,

    - Brenden

  • by m.cia,

    m.cia m.cia Apr 7, 2015 2:44 AM in response to brenden dv
    Level 1 (0 points)
    Apr 7, 2015 2:44 AM in response to brenden dv

    Thanks Brenden dv, yes I already saw that..

     

    Here are some more logs..

    Apr  7 09:34:37 Manuels-iPhone MobileMail[147] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone SpringBoard[43] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone SpringBoard[43] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone apsd[83] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone apsd[83] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone locationd[64] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone locationd[64] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone imagent[27] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone imagent[27] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone UserEventAgent[17] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone UserEventAgent[17] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated YES

    Apr  7 09:34:37 Manuels-iPhone MobileMail[147] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone SpringBoard[43] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone apsd[83] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone locationd[64] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone imagent[27] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone UserEventAgent[17] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone identityservicesd[42] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone MobileMail[147] <Warning>: WiFi is associated NO

    Apr  7 09:34:37 Manuels-iPhone syncdefaultsd[225] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x14d35ce0>

    Apr  7 09:34:37 Manuels-iPhone configd[24] <Notice>: IPMonitor: can't resolve excluded route: Net 195.176.211.24/32 Ifp en0 !Ifp ipsec0 [first]

    Apr  7 09:34:37 Manuels-iPhone nesessionmanager[126] <Notice>: NESMIKEv2VPNSession[Safe Connect On-Demand:95C8DBBC-D61D-4777-AF21-765DAAB5EF99]: status changed to reasserting

    Apr  7 09:34:37 Manuels-iPhone networkd[88] <Warning>: +[NETLedBelly stopFastFail] Clearing ledbelly failure cache

    Apr  7 09:34:37 Manuels-iPhone discoveryd[67] <Warning>: Basic Bonjour,Warn Failed to enable multicast listener sending for V4 socket en0, 49

    Apr  7 09:34:37 Manuels-iPhone discoveryd[67] <Warning>: Basic Bonjour,Warn Warning: IPv4 listener multicast send failed en0, 49

    Apr  7 09:34:37 Manuels-iPhone discoveryd[67] <Warning>: Basic Bonjour,Warn Warning: IPv6 listener multicast send failed en0, 49

    Apr  7 09:34:37 Manuels-iPhone configd[24] <Notice>: Captive: CNPluginHandler en0: Inactive

    Apr  7 09:34:37 Manuels-iPhone syncdefaultsd[225] <Notice>: (Note ) SYDAccount: no account

    Apr  7 09:34:37 Manuels-iPhone configd[24] <Notice>: network changed: v4(ipsec0:10.11.4.1, pdp_ip0, en0-:195.176.215.130) DNS* Proxy

    Apr  7 09:34:37 Manuels-iPhone discoveryd[67] <Notice>: Basic Bonjour stop listening on en0

    Apr  7 09:34:37 Manuels-iPhone discoveryd[67] <Notice>: Basic Bonjour stop listening on awdl0

    Apr  7 09:34:38 Manuels-iPhone networkd[88] <Warning>: +[NETLedBelly stopFastFail] Clearing ledbelly failure cache

    Apr  7 09:34:38 Manuels-iPhone configd[24] <Notice>: network changed: v4(pdp_ip0:10.223.168.238, ipsec0-:10.11.4.1) DNS! Proxy-

    Apr  7 09:34:38 Manuels-iPhone itunesstored[84] <Error>: tcp_connection_handle_connect_conditions_bad 24 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:38 Manuels-iPhone Skype[148] <Error>: tcp_connection_handle_connect_conditions_bad 39 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:38 Manuels-iPhone syncdefaultsd[225] <Notice>: (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x14d35ce0>

    Apr  7 09:34:38 Manuels-iPhone dataaccessd[116] <Warning>: WiFi is associated YES

    Apr  7 09:34:38 Manuels-iPhone dataaccessd[116] <Warning>: WiFi is associated NO

    Apr  7 09:34:38 Manuels-iPhone dataaccessd[116] <Warning>: WiFi is associated NO

    Apr  7 09:34:38 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 45 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:39 Manuels-iPhone syncdefaultsd[225] <Error>: tcp_connection_handle_connect_conditions_bad 1 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:39 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 46 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone com.apple.WebKit.Networking[196] <Error>: tcp_connection_handle_connect_conditions_bad 115 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 47 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 48 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 49 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 50 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 51 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone MobileSafari[195] <Error>: tcp_connection_handle_connect_conditions_bad 52 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:40 Manuels-iPhone Skype[148] <Error>: tcp_connection_handle_connect_conditions_bad 40 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:43 Manuels-iPhone itunesstored[84] <Error>: tcp_connection_handle_connect_conditions_bad 25 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:43 Manuels-iPhone kernel[0] <Notice>: AppleH4CamIn::setPowerStateGated: 0

    Apr  7 09:34:43 Manuels-iPhone kernel[0] <Notice>: AppleH4CamIn::power_off_hardware

    Apr  7 09:34:43 Manuels-iPhone itunescloudd[102] <Notice>: (Note ) MC: User has completed cloud configuration. Not showing UI again.

    Apr  7 09:34:43 Manuels-iPhone mediaserverd[37] <Notice>: 'FigPlayer - 41' (pid = 41) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_PresenceScan

    Apr  7 09:34:43 Manuels-iPhone mediaserverd[37] <Notice>: 2015-04-07 09:34:43.770365 AM [AirPlay] BTLE client stopping to browse for AirPlay Solo Target Presence.

    Apr  7 09:34:43 Manuels-iPhone mediaserverd[37] <Notice>: 2015-04-07 09:34:43.771537 AM [AirPlay] BTLE discovery stopped

    Apr  7 09:34:43 Manuels-iPhone wirelessproxd[45] <Notice>: (Error) trying to stop a scan while the central isn't available

    Apr  7 09:34:44 Manuels-iPhone Skype[148] <Error>: tcp_connection_handle_connect_conditions_bad 41 failed: Must use VPN but VPN is not connected

    Apr  7 09:34:52 Manuels-iPhone Skype[148] <Error>: tcp_connection_handle_connect_conditions_bad 42 failed: Must use VPN but VPN is not connected

    Apr  7 09:35:09 Manuels-iPhone Skype[148] <Error>: tcp_connection_handle_connect_conditions_bad 43 failed: Must use VPN but VPN is not connected

    Apr  7 09:35:55 Manuels-iPhone kernel[0] <Notice>: AppleMultitouchN1SPI: updating power statistics

    Apr  7 09:35:55 Manuels-iPhone SpringBoard[43] <Warning>: [MPUSystemMediaControls] Disabling lock screen media controls updates for screen turning off.

  • by brenden dv,

    brenden dv brenden dv Apr 8, 2015 2:52 PM in response to m.cia
    Community Specialists
    Apr 8, 2015 2:52 PM in response to m.cia

    Hi m.cia,

     

    Thank you for using the Apple Support Community. Given the nature of the issues you are describing and your current configuration, you may be better served by reaching out to one of Apple's other available resources for more direct assistance - https://getsupport.apple.com/GetproductgroupList.action

     

    Regards,

    - Brenden

  • by m.cia,Solvedanswer

    m.cia m.cia Apr 14, 2015 5:25 AM in response to brenden dv
    Level 1 (0 points)
    Apr 14, 2015 5:25 AM in response to brenden dv

    The problem solved itself when I upgraded the firmware to iOS 8.3...