Apple’s Worldwide Developers Conference returns June 10, 2024

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

Jun 20, 2013 11:14 AM in response to robertvg

For what its worth, this works VERY well for me....


There is a new app in the store called OpenVPN Connect. If you can create a proper profile for your VPN provider then the VPN will stay persistent thru the device lock.


I signed up with www.privateinternetaccess.com for $39/year which was about the cheapest I could find (and they keep NO logs). I then browsed their forum and found a way to create the profile that makes the above app work. This is very easy to do but VERY geeky to figure out. Some VPN companies have their own apps and maybe they work as well but if you happen to be using the one I chose, here is a link to the posts about the simple text edit to create the profile and make the app use that profile to keep things under VPN persistently. This is needed so your phone or IOS device isn't in the clear when it autolocks and you wander around an open wifi area that you previously were logged into under VPN initiated using Apple's VPN switch.


Here is the link for the PIA discussion. Hope it can be extrapolated by those in the know for other services....


https://www.privateinternetaccess.com/forum/index.php?p=/discussion/comment/3848 #Comment_3848


I'm not sure if you can get to this link unless you are a subscriber to their service but maybe searches on OpenVPN connect and profile setup in Google will tell you about your provider....


For what its worth.....

Jun 20, 2013 11:44 AM in response to wgoosey

This is ofcourse a wonderfull thing. But it is a lot of mumbo to get it actually working and it only works when you are, like me, a happy privateinternetaccess user.


However once you are connected to their network on openvpn your internetconnection gets as speedy as a slow slow snail.....


Wouldn't it be nice if apple makes the service on the iPhone work, as it should, for all?

Jun 20, 2013 11:47 AM in response to Peter Almere

I've not really seen significant speed differences. I have to admit that they routed everyone to the US East and I find, at least for me, that the Chicago server is consistently twice at fast. Also, the Toronto one is speedy too. I ended up putting 4 different profiles in for different servers. I don't notice speed losses at all except on my Mac Pro if one of the servers slows down. IOS seems fine all the time for me....

Jun 20, 2013 4:45 PM in response to jaymiethomas

This is a serious issue....battery. While the method I described above works great on both my iPad 1, iPad 3 and iPhone 5, I have noticed that my phone battery drain is quite noticeable. Since I'm retired, I have ample opportunity to change the phone but even with that, I wouldn't want to just leave VPN turned on 24/7. While the secuity isn't needed at home, the anonymity would be welcome (marketeers annoy me!) but I just don't want to be watching the battery all the time. I think with IOS7 and the easy control panel to turn off unneeded battery eating services it might be tolerable to leave VPN on all the time but not likely.


On the other hand, the larger battery on the iPad makes it reasonably tolerable. Ie, the ipad seems to hang in all day, even with the VPN on constantly.


Still, as you said, having the choice would be nice. LTE (and my grandfathered in unlimited plan) makes wireless sort of uneeded on the fly with the phone but sitting in hotels and watching Netflix or browsing on my WiFi only ipads makes having it available really reassuring.


Ah well, we'll have to see what IOS7 really brings.....but I can live with what I have if Apple doesn't break it!

Jun 21, 2013 11:34 AM in response to robertvg

I found a workaround that works using the OpenVPN Connect client which you can download in the App Store:


https://www.privateinternetaccess.com/forum/index.php?p=/discussion/comment/4958 #Comment_4958


This is geared toward Private Internet Access VPN but should be adaptable to other VPN providers.


I have tested and found that the OpenVPN Connect client stays connected when the screen is off as opposed to the iOS built-in client which drops the connection and then does not re-establish it when the screen is unlocked.

Jun 21, 2013 12:01 PM in response to foxmajik

Yep,


I posted this a few messages upstream and after more testing I've found it to work well also. The VPN pauses when you go off wireless and resumes most of the time when you jump back on. I've tested it using four of PIA's many servers on an iPad 1 under ios 5 as well as on an iPad 3 and iPhone 5 under ios 6.x. All worked fine for me. PIA support doesn't support this though because it apparently doesn't work for everyone. They are fine with our using it but don't want to troubleshoot for user issues if it doesn't work. My guess is that might become official someday if ios 7 doesn't provide a better path.


Very handy

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 ID.