IOS – How to keep a VPN connection alive on an iPhone

iosvpn

I connect to a bunch of WiFi hot spots with my iPhone, and love that I have a VPN option.

One thing I don't love is that it disconnects from the VPN if the screen ever goes blank.

How can I keep the VPN connected so I don't have random emails or other data in the open for man-in-the-middle attacks?

Best Answer

According to this thread this is standard for most users. But there is Jailbreak solution with external app called Insomnia

Insomnia is an iPhone native application that, when enabled, will prevent the iPhone from sleeping, thus overriding its default behavior. This allows background applications to continue to run and WiFi to work long after the screen has been switched off.

(The iPhone's default behavior is to sleep 30 seconds after the screen has gone off, when not docked and charging that is).

Downside of this is your cpu etc is still running so battery will go down quickly.

There is also a tweak for Cisco VPN with SBSetting with Jailbreak that might work for non-Cisco software (as in the built-in VPN) but as I haven't tested it it's hard to say :-) It may be that the blog mentions the built-in VPN but I can't verify it myself. It's not clear whether it mentions Cisco app or the built-in VPN (and just names it Cisco VPN).