Home > General, iPad, iphone, Security > iPad VPN (configure and setup)

iPad VPN (configure and setup)

Number of View: 41997

So far the iPad has been a great hit in our home. From remote access, browsing the web, email and movies. I have only good things to say about this device.

Inside the comfort of my own home I know my connection is safe. However, when I venture out to public wifi or a coffee shop, I cannot be a comfortable with the network security. When using my laptop at a public wifi I normally use SSH or a VPN to secure my connection. I will show you a quick how-to on using VPN on you iPad to get a secure connection when using a public hotspot.

To use a VPN client on your iPad you will need a VPN server somewhere. I use DDWRT as a vpn server at my home. It has a built-in PPTP VPN server. The iPad supports (PPTP, IPSec, and L2TP).

Thankfully the iPad has a built in VPN client. To access the settings for this you will need to go into settings | general | network.

Under your network settings you can find vpn connections. In this section you can turn on vpn, view the status of a connection, add a connection or edit a connection. We will be adding a connection:

Next you select “Add Vpn Connection”. Select PPTP, L2TP, or IPSec. For each type of vpn you have different options:
PPTP:

L2TP:

IPsec (cisco):

Once you have setup your vpn connection you only need to go back to the setting page (network / vpn) to enable the vpn connection. You then can view the status and be connected or browsing through your VPN tunnel. In the image below I can connected to my home VPN and have an IP of 192.168.2.200.

Happy secure browsing. Remember to still take precautions when in a public location and using any type of secure sites.

If you are in need of a personal VPN provider, I recommend wifi-vpn.com.

  1. April 5th, 2010 at 16:54 | #1

    Interesting article Jim.

    I have a similar setup…new iPad and a VPN runinng on DDWRT. I can connect with my VPN with Win 7, but not the iPad.

    Would you be willing to share info on the options you set on the server?

    Thanks,
    KC

  2. jimiz
    April 5th, 2010 at 20:46 | #2

    I had DDWRT v24sp2
    Here are the settings. Pretty standard / default.
    Here is a screen shot
    http://screencast.com/t/N2NjZGQwMz

  3. jimiz
    April 5th, 2010 at 21:00 | #3

    Here is the command configuration:
    root@myrouter:~# nvram show|grep “pptpd”
    pptpd_client_srvsub=0.0.0.0
    pptpd_forcemppe=1
    pptpd_bcrelay=1
    pptpd_client_srvip=
    pptpd_client_ipparam=
    pptpd_client_srvsec=mppe required
    pptpd_radserver=0.0.0.0
    pptpd_radpass=
    pptpd_enable=1
    pptpd_client_mtu=1450
    pptpd_client_srvsubmsk=0.0.0.0
    pptpd_radius=0
    pptpd_client_srvmru=1450
    pptpd_rip=192.168.2.200-220
    pptpd_radport=1812
    pptpd_client_srvpass=
    pptpd_client_srvmtu=1450
    pptpd_client_enable=0
    pptpd_client_srvuser=DOMAIN\\Username
    pptpd_acctport=1813
    pptpd_client_nat=1
    size: 32757 bytes (11 left)
    pptpd_auth=Myusername* Mypassword*
    root@jimizrouter:~#

  4. April 5th, 2010 at 21:39 | #4

    Thanks Jim.

    Still didn’t work so I decided to delete the VPN Configuration and re-enter it…that’s when I realized I’d been leaving a character out of the password all day. *slaps forehead*

    On the upside, once they get the bugs worked out of this app http://www.stratospherix.com/products/filebrowser/support/ it’ll be awesome to be able to access my network resources from the road.

  5. Justin
    April 24th, 2010 at 07:20 | #5

    I would like to do this with the VPN connection integral to WIN 7. Can’t get it to work yet. Should this be OK?

  6. Scott
    May 24th, 2010 at 22:56 | #6

    My Ipad will connect to my home DD WRT but as soon as I try and open safari or a app is will disconnect. I have an iphone that can connect with no problems any suggestions?

  7. jimiz
    May 28th, 2010 at 23:02 | #7

    CAn you see the IP address of the iPad on your ddwrt router? If so is it taking over an exiting IP?

  8. Jim Becher
    August 18th, 2010 at 21:51 | #8

    Thanks for the comments everyone.

  9. Gordon
    August 31st, 2010 at 03:32 | #9

    Thanks for the article, problem I have is when I am on the VPN I cannot access the public Internet, I know how to configure my CISCO VPN client on my PC but do not see similar option on Ipad, any clues

  10. jimiz
    September 4th, 2010 at 07:45 | #10

    On your VPN or network do you have a defined proxy setting (or gateway) It is possible that the ipad cannot find it’s way to the internet.

    What version of the vpn client are you using? It may be something that has to be set.

  11. Ted
    September 22nd, 2010 at 08:41 | #11

    Hello
    I have seen lots of discussion about PPTP and L2TP with shared key VPN’s for iPad but our solution is L2TP/IPSEC. The requriements are a device certificate and windows authentication.
    Has anyone tackled this? I think the tricky part is that on a pc, the certificate must be in the computer store and not the user store.
    Any thoughts are apreciated!

  12. Anon
    October 13th, 2010 at 21:04 | #12

    @Scott I have not yet find a solution but i have dtermined the problem was the ddwrt dhcp server. Once I set a static ip, ther is no more disconnects.

  13. October 27th, 2010 at 15:15 | #13

    i only buy my pc parts on very reputable computer stores both online and offline”‘-

  14. deven
    November 9th, 2010 at 09:50 | #14

    ipad is support is MS-CHAP-V2 (Microsoft Challenge-Handshake Authentication Protocol v2) and all vpn are use PAP(password authentication protocol)

  15. Steve
    November 21st, 2010 at 00:10 | #15

    I found a site called hidepad.com, they charge $8.99/month, but claim to provide ‘push-button’ easy VPN setup for the iPad, if anyone’s interested.

  16. jimiz
    December 8th, 2010 at 00:48 | #16

    Thank you for the link on hidepad.com. I sent them a message to see what their app does. I’d like to try it. I am guessing it is basically a VPN account.

  17. Michael
    December 22nd, 2010 at 18:01 | #17

    Thank you for the info and screenshots. Between your site and this one http://bit.ly/gCAspD I was able to Finally get my vpn working on my ipad.

  18. Nataia
    December 24th, 2010 at 20:58 | #18

    Hello , you seem to be the only person on this planet who knows how to use this VPN thing ! urgh ! its so confusing ! so what i do is
    - go to settings
    -General
    -network
    - VPN
    add vpn ,
    now where do i find all the information for this ?
    like the decripiton ? the server ? the account ?

    where do i find the information to set this up ?

  19. December 29th, 2010 at 15:37 | #19

    http://www.freevpn.co – Free PPTP VPN for windows, mac and iphone/android mobile, very nice service, always free, works very well in my iPad and windows 7 PC :-)

  20. David
    April 18th, 2011 at 15:54 | #20

    I have used this method to configure my VPN on both my iPhone 4 and iPad 2 with success, sort of.

    The connection works flawlessly with the exception that my iPad consistently cannot connect if it is the first client connecting to the VPN. As soon as I make a connection from my iPhone or a PC to the VPN, then my iPad will connect successfully every time. I can then disconnect the first client and the iPad will continue to function on the VPN as expected. Reconnecting however, would again require that another client be connected first.

    The iPhone and iPad connections are configured identically, both using Encryption Level: Auto.

    This is very consistent and reproducable. I can attempt dozens of times to connect to the VPN as the first client from my iPad and it will consistently show “Connecting”, then “Starting”, then “Disconnecting”. As soon as I make the same connection from my iPhone or PC, the next attempt from my iPad works perfectly.

    I am using DD-WRT v24-sp1 and have configured the PPTP server as per this article including required encryption:
    http://www.dd-wrt.com/wiki/index.php/PPTP_Server_Configuration

    cat /tmp/pptpd/options.pptpd shows the following:

    lock
    name *
    proxyarp
    ipcp-accept-local
    ipcp-accept-remote
    lcp-echo-failure 10
    lcp-echo-interval 5
    deflate 0
    auth
    -chap
    -mschap
    +mschap-v2
    mppe required,stateless
    mppc
    ms-ignore-domain
    chap-secrets /tmp/pptpd/chap-secrets
    ip-up-script /tmp/pptpd/ip-up
    ip-down-script /tmp/pptpd/ip-down
    ms-dns 192.168.1.1
    mtu 1450
    mru 1450

    Any ideas would be appreciated.
    David

  21. jimiz
    April 22nd, 2011 at 15:50 | #21

    I’ve not seen that type of behavior before. I would first connect via the iPad and see if you can then ssh into the router and look at the logs
    /tmp/var/log/messages. I typically do “cat /tmp/var/log/messages” to see what is happening on the device. I would watch the log as you log in and see any messages or errors.

  22. Chris
  23. Aviel
    June 3rd, 2011 at 06:49 | #23

    Hey jimiz,
    i’ve been searching the internet for practically a day, and your guide is the only one that actually makes ipad’s connect to DD-WRT,
    could you help me figure it out,please? (i’m kinda desperate abit)
    settings: DD-WRT on tp-link w1043nd (its the latest version) 24v sp2,
    ipad2 with 3g,
    been trying to set the usual, all options enabled, skipping dns1,2 and wins1,2 serverip- my router LAN IP, client ip, some free ip range-20(20 addresses) and chap is user * password * (i hope i got it right)
    and it won’t work.. :( what am i missing? i tried a few commands but i don’t see how it catches or anything…
    thanks for your help mate, really appreciate it..

  24. Aviel
    June 3rd, 2011 at 09:35 | #24

    I have some news about it. i made a few try outs, and it seems that with dyndns it doesn’t connect. not sure why yet, but i’ll look into there :) if anyone can help me out with this or solved that issue, i’d love to hear.

  25. Aviel
    June 3rd, 2011 at 10:04 | #25

    Well, i’m just doing a follow up for anyone with that problem.
    Dyndns not updating.
    i done it on custom,
    done in the dyndns server: members.dyndns.org (please notice it is said .com on the dd-wrt tutorials)
    and added the url like on dd-wrt, /nic/update?
    (not to mention user, password,and the host address which is the usual part.)

  26. jimiz
    June 4th, 2011 at 10:07 | #26

    Thank you for the update

  27. jimiz
    June 4th, 2011 at 10:09 | #27

    I will update the post today. I appreciate the info on the incorrect info about .com

  1. April 20th, 2010 at 19:27 | #1
  2. June 5th, 2010 at 17:32 | #2
  3. November 4th, 2010 at 20:42 | #3
  4. June 18th, 2011 at 12:55 | #4