Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use a secure VPN configuration in my iPhone (iOS 5.1), to be able to use Internet thru hostile wifi hotspots.

I have already configured an IPSec tunnel to a server I control. I can manually activate the VPN in the phone and be "quite" sure nobody can snoop the WIFI data to/from my phone.

But this scenario has a few problems:

  1. In my VPN, I send a secure DNS configuration to the phone at tunnel creation time. What happen to any DNS record cached?. Is it purged and refetched thru the tunnel?. Leaking DNS data, beside leaking info, can be used as an attack vector AFTER the tunnel is UP and running.

  2. How can I know that ALL data is send thru the tunnel?.

  3. The tunnel must be activated manually. If you forget, you are KO.

  4. If the tunnel breaks, my data is at risk. Since the tunnel can break anytime, including because malicious action, I have to keep a constant eye on the VPN icon. And even if I am fast to stop the data traffic, I am going to leak potentially sensitive data.

Briefly, I would like to be able to use only internet THRU the tunnel. I rather lose Internet service than using the connection with no VPN connection. But I don't see how to do it. Does exist any configuration in iPhone 5.1 to force that ANY internet traffic to go thru a VPN?.

Any advice?.


share|improve this question

migrated from Apr 10 '12 at 22:42

This question came from our site for information security professionals.

Let me share my personal experience with you. Whenever I want to protect my personal data and my personal files over wifi or hotspots I personally use PureVPN as a reliable provider on my iPhone. When you connect VPN on iPhone you see provider name logo on the top of your screen. Even when my VPN connection drops, it give me a message that your VPN connection drop to allow me to take a minute before sending my personal files on the internet.

Moreover, if you want to find how to connect VPN connection on iPhone you can follow this pictorial tutorial

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.