You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

VPN disconnects when iPhone goes into auto-lock ?

As the subject says....my iPhone seems to disconnect the VPN as soon as it goes into auto-lock....in my case after two minutes.
I have a L2TP VPN configured for a mail connection to an Exchange server...if it constantly disconnects then the pushmail functionality is of no use....

Is this behaviour as designed or am I missing something ?

Regards, Robert

PC, Windows 7

Posted on Feb 12, 2010 5:40 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 17, 2010 5:58 AM

this isn't normal.

i'm using VPN for a year now. never noticed this...
i've tried now to replicate this and failed. it works fine!

i've only noticed it to be disconnected when fluctuation between 3G and EDGE happens. between WiFi and 3G the connection is persistent. push mail and other services work fine...

lock screen with 3G: http://img265.imageshack.us/img265/7105/photo2k.png
lock screen with WiFi: http://img411.imageshack.us/img411/2189/photo1ll.png
127 replies

Jul 25, 2012 9:33 AM in response to Mikekan

Anyconnect VPN is useless as a solution if you are using a VPN connection that is reachable only via an APN connection provided by a carrier such (i.e.Verizon). In addition, I am managing a specific iPad device using MobileIron's SmartPhone Manager product, therefore I would need to use a configured and pushed VPN settings profile to manage my VPN settings. This cannot be accomplished in conjunction with a VPN profile created in an installed instance of Anyconnect VPN.

Aug 13, 2012 2:21 AM in response to fastfret

I think that this is exactly what the end-users need to have as an accessible on/off function or button.


For example, I would be very happy to be able to use a simple function that will have the VPN connection back on when wi-fi reconnects (i.e., after sleep, disconnection or switch between wifi and 3G/edge).


Is there anyone using Cisco's Anyconnect to keep PPTP type of VPN connection alive?

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.

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.

Always

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

Never

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 “.example.org” matches “support.example.org” and “sales.example.org,” but doesn’t match “www.private-example.org.” However, if you specify the match domain as “example.com”—without a period at the beginning—it matches “www.private-example.com” 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.

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 !!

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.

Dec 3, 2012 2:07 PM in response to scottm_iphone

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.

Mar 7, 2013 10:24 PM in response to robertvg

This may have been said already, so I’m sorry for the repost.


Just to make sure I understand everyone’s issue with the iPad and iPhone (IOS4 software or higher.)

You’re all connecting to VPN via one of the 3 types of protocols. It really doesn’t matter which VPN protocol you’re using.


Your issue: As long your iPad or iPhone is ON and connected to VPN all is working as designed. But once you press the (Sleep/Wake button) your VPN session drops. Or when your iPad or iPhone goes into (Auto-Lock) your VPN session drops.


I think the issue is that these device are not Laptops so when they go into (Auto-lock) or when you press the (Sleep/Wake button) it break the VPN session, The device goes to sleep mode not screen saver mode like you can configure a laptop to do. These devices don’t have a screen saver mode that I’m aware of.


Think of it like this, you’re connected to VPN on your Laptop at a coffee shop, you close your lid of your laptop to go somewhere else, and your computer goes into sleep mode. You get to your destination open the lid to your laptop and your laptop is no longer connected to VPN. This would be because your computer went to sleep. Now you can configure your laptop to not go into sleep mode when the lid is closed, but unfortunately the iPad or iPhone are not designed that way.


I know your looking for a solution from Apple, but think about it, if your VPN stay connected when your device is locked, you run the chance of running out your data plan and getting charged over usage fees on your cell plan, or possibly going to a website you company may not like.


Finally until apple creates a lock screen like Windows or Mac computer have, the iPad and iPhone will drop their VPN connections.


Hey apple support group, any comments on that?

Mar 7, 2013 10:29 PM in response to Rasapi

> Think of it like this, you’re connected to VPN on your Laptop at a coffee shop, you close your lid of your laptop to go somewhere else, and your computer goes into sleep mode. You get to your destination open the lid to your laptop and your laptop is no longer connected to VPN.


That's a poor analogy because other connections don't drop when my iPhone's screen is off. I still receive notifications when I get an email, instant message, tweet or other message.


Even if that were the case, the least they could do would be to make the VPN automatically reconnect when the screen is unlocked.


Having to go into Settings and turn it on every time the screen is unlocked makes the feature pointless. It might as well not even be there if it's going to be broken in such a way. I don't understand why Apple would knowingly include a feature that is so completely broken when they are usually so anal about perfection.

Mar 7, 2013 10:34 PM in response to Rasapi

Actually you have it only partially correct... Sleep is different on an iPhone than on a Mac. Unless it is physically turned off, the iPhone keeps checking email and getting push messages even while sleeping. (Thus the notifications while it is in your pocket or during the night) Unfortunately, it doesn't keep the VPN connection while doing this. So, the unacceptable scenario is when you turn on a VPN connection to secure your email and messages, but the phone "goes to sleep" and drops the VPN... but the email keeps coming as the phone then checks it insecurely without the VPN. Your only option to keep secure at that point is to diconnect from any open WiFi if it is asleep.

VPN disconnects when iPhone goes into auto-lock ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.