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

Feb 24, 2014 12:30 PM in response to robertvg

This issue has been going on for four years. FOUR years, and I just experienced it myself too, as many other users did. Sounds like Apple don't like people wanting a bit of online safety/privacy...


Anyway? Is there a workaround for this? Will I have to root my phone to get it to work properly?


Otherwise, what is Apple's policy regarding refunds when the hardware/software is faulty? Because it is by definition faulty, if one sells a device with advertised features not working.

Feb 24, 2014 1:10 PM in response to entropyk

Did they advertise it as having a VPN on 24/7? Can you show where they said that... I think they "get away with it" because they haven't said it can do that. So technically - it's not faulty, it's just missing a critical feature.


I believe there are some MDM solutions which offer a way to do VPN, by means of installing an apple Profile configured for such - but I've never dealt with it before... just read about it...

Feb 25, 2014 5:13 AM in response to gleep52

Customers have a right to expect that VPN will work without interruption, because otherwise it is meaningless and useless.


Moreover, VPN function with interruption without any warning for interruption creates a false safety sense among customers, which might be defined as a customer deception.


I think, as a lawyer, according to Article 4 of Turkish Customer Protection Law, Apple may be hold responsible for VPN problem on its products. However I am not sure whether courts would be on customers' side.


On the other hand if customers do not take legal action it seems that Apple would never care how much we complain on these forums. I think this is obvious after long years.

Mar 22, 2014 2:26 PM in response to robertvg

Hotspot Shield connects automatically whenever I unlock the phone. It's not the best when it reconnects (some minor issues) but I didn't realize that was something unique to that app, I thought all VPNs would do that! So imagine my suprise when I just paid for ExpressVPN and have been looking for how to turn "always-on" like HSS did? Dangit...guess i'll stick with HSS. I have no complaints about HSS except in hotels when the router bogs down and it kicks everyone off and re-initiates hotel login screen, then the "always-on" hangs up trying to get reconnected. But other than that it works great. i wouldn't have switched if I would have known HSS was the only one with that setting.


HotSpot Shield...i am coming back...

Apr 7, 2014 5:30 AM in response to yeabud2

OpenVPN app automatically reconnects whenever my iPhone (iOS 6) or iPad (iOS 7) returns from sleep. This solves this problem to some extent. To use this app you can rent a VPS and install openvpn on it, or you can use privatetunnel VPN service.


This solution would solve everything If there was a basic option in settings: "Transfer internet data only via VPN".

Apr 29, 2014 9:09 PM in response to robertvg

Hi,


I just discovered this issue. Only became an issue for me because I need to travel. I'm assuming when travelling one could adopt the following procedure as a work around to this problem.


1) Before locking iPad simply turn off Wifi.

2) when I get back on the iPad turn on Wifi and immediately turn on VPN.


This is a hassle but I would only need to do this when travelling in my case which means I probably won't use VPN when at home and hence only subscribe to a VPN service monthly I.e. only on those months when I'm away. I.e. So this bug will hurt VPN providers' bottom line as well since I would have considered using VPN all the time if it wasn't such a hassle to use on the iPad.

May 19, 2014 8:15 PM in response to robertvg

I use the VPN to access my company network and works good, I tried manually going to sleep and then awakening back and the connection is still there, then letting go auto-lock and worked good.


I'm using a profile provided by company IT.


Now, we use a tunnel for security reasons and of course if your current IP changes for any reason (going cellular to Wi-Fi or viceversa) of course the tunnel goes down and you need to re-open the VPN.


We also use a soft token as password for bringing the tunnel up so it is a little bit cumbersome but it is the same as using accessing the VPN with a laptop, either in Windows or OSX. I guess if we were to use a certificate the VPN should connect immediately but I have no way to tell.


So I think the problem may be related on the characteristic of the VPN. Just an opninion.

Aug 12, 2014 3:17 AM in response to robertvg

Hello,


I had the same problem with losing WIFI and VPN when the phone goes into lock screen.

I found an own "solution":


- Download a silent mp3 file on the internet

- install switch (mp3 convert program) and convert the mp3 to the lowest bitrate possible> 8kbs / 11Khz.

- place mp3 on USB stick and put this into your Router, Nas or Iconnect.

- when connected to VPN with iphone / Ipad> play the mp3 file from the stick bij using any program like remote file / file explorer

- the result is:


1. you dont here any sound of the mp3

2. you will hear every whatsapp sound or sms etc

3. Because of the low bitrate it uses very low data

4. your vpn stays connected when the phone goes into lock


This works perfect for me and i hope it will help you.


Greetings

Jan 18, 2016 11:00 AM in response to qgi

http://www.howtogeek.com/218851/how-to-enable-always-on-vpn-on-an-iphone-or-ipad /


Problem people is that apple is really doing this on purpose to match the silent privacy agreements they made, basically to make some guys rely on the feature which fails and exposes them, the link i provided is a legitimate way of creating ALWAYS ON VPN mode on an iPhone, and that is ONE and ONLY way for corporations to make use of constant encryption.


Basically it involves in setting up a "Supervised" profile while you are setting up a new iPhone

type

You need to use IKEv2 type of security, its was built for mobile devises, it reconnects better when there is loss of internet (subway tunnel in and out) and is extremely well encrypted, supports AES 128, AES 192, AES 256 and 3DES ciphers

1. To set this up you need Apple Configurator installed on your Mac computer, yes you need Mac computer to do this, you cannot do this on PC.

2. Disable Find My iPhone

3. plug it in, open the Apple configurator, name the phone, and switch on "Supervision"

4. preparation will wipe the iphone you will need to back it up, later you can restore it without any problems, it will also download an entirely different iOS version, not the usual one you get.

5. Now you need to set up an Always On profile, follow instructions in the link to make new profile.

etc

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.