Skip navigation

VPN disconnects when iPhone goes into auto-lock ?

132420 Views 114 Replies Latest reply: Apr 7, 2014 5:30 AM by mavisiyah RSS Branched to a new discussion.
  • Secruoser Calculating status...
    Currently Being Moderated
    Aug 14, 2012 8:59 PM (in response to robertvg)

    I temporarily solve this problem by keeping my phone charged and set it to never lock.

  • ghiathb Calculating status...
    Currently Being Moderated
    Aug 20, 2012 4:28 PM (in response to robertvg)

    Hi all;


    Just finished installing my mountain lion and osx server at home for many uses. The main feature I was looking forward to is VPN connection through my iPhone since i run a voip pbx at home and i was using a public ip and got really fedup with all the attacks.


    I was unpleasently surprised to say the least when I found out the my VPN drops off when I lock my phone thus losing my connection with my pbx. The voip software i use on my iPhone is groundwire and it has the option to be always on. why can't we have that option with VPN.

  • ghiathb Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 20, 2012 5:45 PM (in response to robertvg)

    Found this info bit on apple website for the iphone config utility.


    VPN On Demand

    For certificate-based and SSL configurations, you can turn on VPN On Demand so that a VPN connection is automatically established when accessing certain domains.


    Initiates a VPN connection for any address that matches the specified domain.


    Doesn’t initiate a VPN connection for addresses that match the specified domain, but if VPN is already active, it can be used.

    Establish if needed

    Initiates a VPN connection for addresses that match the specified domain, after a failed DNS look-up has occurred.

    The action applies to all matching addresses. Addresses are compared using simple string matching, starting from the end and working backwards. The address “” matches “” and “,” but doesn’t match “” However, if you specify the match domain as “”—without a period at the beginning—it matches “” and all the others.

    LDAP connections don’t initiate a VPN connection; if the VPN hasn’t already been established by another app, such as Safari, the LDAP lookup fails.

    The device closes a VPN session initiated by VPN On Demand after two minutes of inactivity. If the connection was initiated manually using the Settings app, the VPN server’s timeout applies.

  • Peter Almere Level 2 Level 2 (475 points)
    Currently Being Moderated
    Sep 9, 2012 10:43 AM (in response to robertvg)

    Oh my it is not me doing something wrong... It's Apple!!! brrrrrrrrrrrr

  • ghiathb Level 1 Level 1 (0 points)

    I had a 2 hour telephone conversation with apple about yesterday and did not really get anywhere, I hope that they will give us the option of choosing weather we want to keep it on after locking.

  • Zeeshana Calculating status...
    Currently Being Moderated
    Sep 17, 2012 12:43 AM (in response to ghiathb)

    I am still waiting for this update ..




  • Peter Almere Level 2 Level 2 (475 points)
    Currently Being Moderated
    Sep 17, 2012 1:39 AM (in response to Zeeshana)

    Yes me too!

  • gleep52 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 17, 2012 1:22 PM (in response to robertvg)

    +1 from me as well - have hundreds of iPads that need to use VPN to authenticate on our local network to gain internet access...

  • wassimdaccache Calculating status...
    Currently Being Moderated
    Sep 19, 2012 9:02 AM (in response to robertvg)

    Facing the same problem. VPN is auto disconnecting without following any rule. Sometime the battery is full and the VPN disconnect In 2 min and sometimes the battery is 10% and the VPN disconnect in 15 minutes!! No doubt guys it is a bug



    apple developers are  focusing on media and the shape of iPhone and iPad and not focusing on security and IT solutions


    I think they know very well that SIP can't be used without a VPN connection to secure our packet !!


    And Always without any solutions !!

  • fastfret Level 1 Level 1 (0 points)

    It's not a bug. The iPhone is designed to disconnect from WiFi and VPN when it sleeps. This is to save battery life.  And that is how it will always be, because battery life is an important marketing point. More important than permanent VPN.

  • G J Piper Level 1 Level 1 (90 points)
    Currently Being Moderated
    Sep 19, 2012 7:58 PM (in response to fastfret)

    I would think there would be no reason why they can't allow sleeping to suspend all internet activity, including VPN. Then, they could initiate the VPN upon waking — not allowing any internet service until the VPN is reestablished. (Or just allow a choice between battery and perm VPN in the settings)

  • Peter Almere Level 2 Level 2 (475 points)
    Currently Being Moderated
    Sep 20, 2012 3:12 AM (in response to G J Piper)

    I think the same! It is crazy that it works in another way. Even though WIFI seems to stay active when the phone is 'sleeping'. And other internet connection over cellular probably too. But that is one more reason to keep VPN active. I use the iPhone as a sip-phone and why is this not protected when the phone receives a sip-call?

  • Auroraron Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 5, 2012 9:37 AM (in response to robertvg)

    This is why companies like RIM stay in business.  There are security issues with iPhone and iPad.   Have to turn off all push and updates so nothing happens without manually turning VPN back.  Kind of usless.


    I'm going to China and guaranteed without VPN you will be monitored and hacked.  If your ever in a hotel, airport, the apple store or even a coffee shop, without VPN your almost guaranteed to be monitored and hacked at some point or another.


    This really needs to be addressed soon.   Would be fine if you could force the phone to not exchange ANY data without a VPN connection that could fix it for now.

  • scottm_iphone Calculating status...

    me too. turned off autolock and ok so far. not really feasible to administrate across 30 users though.

  • Auroraron Level 1 Level 1 (0 points)

    That is why business will stick with Blackberry.   Apple has bugs in this IOS. It will not let you keep a connection.


    Even if you use it manually each time you turn on your phone, data is still being sent unsecured.  Can't depend on IOS devices for secure data.


    Apple and VPN connections don't mix.   Should be an option to never send any data without a VPN connection, that would solve it.

1 ... 3 4 5 6 7 8 Previous Next


More Like This

  • Retrieving data ...

Bookmarked By (6)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.