Stop VPN Disconnecting when going to Sleep When the iPhone (4) goes to sleep, the VPN will disconnect.
Is there any way to disable this behavior as it's sometimes a bit annoying.

I am jailbroken, and the server I'm connecting to is Windows Server 2008 R2 which I can edit settings on.
The VPN will disconnect because your WiFi disconnects.

Therefore you would have to...


either reconnect your VPN connection when on 3G (How?)
or enable your iPhone to keep connected to WiFi (requires jailbreak)


To keep WiFi on in sleep mode you need to install KeepAwake via Cydia.

See this step-by-step guide.