Configure iPhone iOS to use an IPSec VPN tunnel and resolve reconnect issues

Following on from my post that walks through the set up of an Ubuntu based IPSec VPN server using Openswan and Android, I've now had the chance to also configure an iOS device to work with the same configuration. Read on to see how I configured the iOS 5.0 iPhone 3GS to work with my Openswan IPSec VPN...The following steps I used on an iPhone 3GS iOS 5.o to connect to an Ubuntu IPSec VPN configuration.

  1. Settings
  2. General
  3. Network
  4. VPN
  5. Add VPN Configuration:
  • Select L2TP
  • Description: any
  • Server: server address
  • Account: ubuntu username
  • RSA SecurID: off
  • Password: as per /etc/ppp/chap-secrets
  • Secret: PSK as per /etc/ipsec.secrets
  • Send All Traffic: on
  • Proxy: off  
After setting up the iPhone to work with this IPSec Openswan configuration I experienced the issue that should the iPhone disconnect either intentionally or through a dropped tunnel I was unable to get the iPhone to reconnect to the VPN. The only way to get the phone to reconnect was to restart the IPSec daemon on the Ubunutu  server.             

As Jacco points out one problem is that Apple do not appear to send a “Delete SA” message when the device disconnects. The IPsec connection remains up and the VPN client may not be able to reconnect, and reports an error. He pointed out that the problem is resolved when Dead Peer Detection (DPD) times out, the SA itself times out (if DPD is disabled) or the Openswan daemon is restarted. For this reason it is highly recommended to enable DPD on the Openswan VPN server by adding these parameters to your Openswan configuration (suggested time-out values):

These lines need to be added to /etc/ipsec.conf under the connection configuration and not the daemon configuration from my experience. Putting them in the before the connection configuration will cause openswan to fail when restarting reporting a "confread.c:248: load_setup: Assertion `kw->keyword.keydef->validity & kv_config' failed" error in the terminal.

           dpddelay=40
           dpdtimeout=130
           dpdaction=clear

54 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Very nice post. I just stumbled up?n your weblog and wished to say that I have really enjoyed browsing ?our blog posts.
    Regards - www.office.com/setup

    ReplyDelete
  4. With the Popularity of iOS Devices comes the threat of hacking. FastestVPN is the Best iOS VPN that encodes all your personal and financial data securing it from intruders.

    ReplyDelete
  5. Your selection of topic is very good and also well written. Thanks for sharing. I feel like all your ideas are incredible! Great job!!!
     www.mcafee.com/activate

    ReplyDelete
  6. Office.com/setup – Get simple strides for download, introduce Office setup 365, 2016 and 2010.
     www.office.com/setup

    ReplyDelete
  7. McAfee.com/activate – McAfee Antivirus is one of the most critically acclaimed security program across the globe. Protect your devices and data from viruses, malware, Trojan horses, worms, and other cyber threats with real-time protection and threat scanning. Get robust protection offered by McAfee by following the process (download, install, activate) on  www.mcafee.com/activate

    ReplyDelete
  8. Hi
    I read your post and found it quite interesting.
    The post you shared is very unique and informative.
    Thanks for sharing such a useful post.
    mcafee.com/activate
    norton.com/setup
    mcafee.com/activate

    ReplyDelete
  9. It is amazing post, i am really impressed of your post, its realy useful. Thank you for sharing This article.

     norton.com/setup | www.norton.com/setup

    ReplyDelete
  10. If you want to know about celebrities bio and their updates? You can visit Celebrity Ping. Here you will get all celebrities information, Alan Tudyk, Ashley Johnson, Bernie Mac, Calista Flockhart, Christina Hendricks, Dafne Keen, Emily, Eva Ekeblad, Freddie Prinze Jr, Jessica Barden, Jessica Henwick, Joan Cusack, Josh Wickersham Hartnett, Juan Gabriel, Kaitlyn Dever, Kathryn Hahn, Katie McGrath, Ksenia Solo, Laura Haddock, Lauren German, Lea Thompson, Loni Anderson, Lori Loughlin, Lucas Till, Maika Monroe, Maitland Ward, Markie Post, Matthew Gray Gubler, Olga Kurylenko, Phoebe Cates, Phoebe Snetsinger, Rebecca Romijn, Rene Russo, Robin Williams, Theo James, etc.

    ReplyDelete
  11. Stardust Boutique is a Jovani prom dresses company. If you are looking for a prom dress, we are a Jovani dress store and stockist supplying UK, USA, Canada, Australia, internationally.We stock all kinds of Jovani if you want a Jovani prom dresses, Jovani short dress, Jovani evening dress, Jovani pageant dress, jvn prom dress, jvn short dress and pageant dresses.

    ReplyDelete
  12. The Electric Blender for people to save time and reduce stress The Comparisons vs Reviews Deal of best food processor, Best Smoothie Blender, Best Personal Blender, Best Commercial Blender, best portable blender, Best immersion blender, Best Vitamix Blender, best ninja blender,Best Magic Bullet Blender, best Blendtec blender, The comparisons between Blendtec vs Vitamix, of Magic Bullet vs NutriBullet is another issue to consider if you are looking for a smart and efficient blender. But the Nutri Ninja vs NutriBullet will help you to decide to get the right one. and Best Food Dehydrator, Best Food Chopper, best vegetable chopper Reviews, buying a guide.

    ReplyDelete
  13. Find Vacuum Cleaner - Get Trusted Vacuum Cleaner Reviews If you want to Find Best Vacuum Cleaner Here you will Get Trusted Vacuum Cleaner Reviews, Pros, cons, Buying Guide, etc. Get your Vacuum Cleaner

    ReplyDelete
  14. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
    office.com/setup

    www.office.com/setup

    office.com/setup

    www.office.com/setup

    ReplyDelete
  15. In our quest for the hand blender reviews, we've considered 63 models, interviewed pros, and pureed gallons of soup, smoothies.

    ReplyDelete
  16. Turbo Steam is a powerful, yet portable, fabric and clothes steamer for all of your steaming needs. Our Turbo Steam takes only 45 seconds to heat up and to start generating steam and its steam delivery system evenly distributes steam across fabrics to remove even the worst wrinkles.

    ReplyDelete
  17. تقدم شركة شركة النقل في الدمام جميع عملائها مجموعة واسعة من الخدمات لم يتم رؤيتها قبل أي شركة أخرى لنقل الرغيف. كما سيقدم لك مجموعة كبيرة من الخصومات الضخمة على عمليات النقل التي تصل إلى 40٪.

    ReplyDelete
  18. Microsoft Office is one amongst the most useful productivity suites for Mac and Windows. Log in at office.com/setup and browse various packages for Office 2019, Office 365, Office 2016, Office 2013, Office 2010 and more. After downloading and installing its setup, activate it with the product key from  office.com/setup

    ReplyDelete
  19. Rijschool Delft Ben je opzoek naar een goede rijschool in Delft Voor lessen van topkwaliteit tegen voordelige prijzen moet je zeker bij Hofstad Rijopleiding wezen!

    ReplyDelete
  20. Prom Dress Hut is a prom dresses company. If you are looking for a prom dress, check out our Latest Prom Dress Collection. You can order from Prom Dresses USA, Prom Dresses UK, Prom Dresses Australia, Prom Dresses Canada, and Prom Dresses Germany.

    ReplyDelete
  21. Hi, the post which you have provided is fantastic, I really enjoyed reading your post, and hope to read more. Thank you so much for sharing this post, I appreciate your work.
    norton.com/setup | office.com/setup | www.office.com/setup | mcafee.com/activate

    ReplyDelete
  22. Read the Best Massager Reviews of 2019 Find out which is the best model on the market and the health benefits of using a Best Massager Reviews.

    ReplyDelete
  23. Accident Need Save Yourself, Save the World For any car automobile accident personal injury Lawyer and Attorney Advice Also, all automobile and car insurance quotes guidance for free

    ReplyDelete
  24. Nearbest10 is a participant in the Amazon Services LLC Associates Program which is an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Amazon, the Amazon logo, AmazonSupply, and the AmazonSupply logo are trademarks of Amazon.com, Inc. or its affiliate.

    ReplyDelete
  25. Download and Install Your Product Online, Setup and Install Product With Simple Steps. Enter Product Key To Start Download, Install Product, Activate and Setup Your Product.McAfee.com/activate .

    ReplyDelete
  26. Canon.com/ijsetup
    Visit canon.com/ijsetup and get latest and updated drivers for canon printer.
    =

    ReplyDelete

  27. 123.hp.com/dj3630

    Click below to get latest and updated drivers for HP DJ3630 printer
    123.hp.com/dj3630


    ReplyDelete
  28. QuickBooks Proadvisor Support USA
    Contact QuickBooks proadvisor support USA by calling QuickBooks helpline USA help phone number, our QuickBooks proadvisor technical support number expert will provide tech support USA, Quickbooks helpline usa. You can also dial Quickbook proadvisor customer service care support number USA. +1-877-976-3987

    ReplyDelete
  29. ==========
    QuickBooks Online Tech Support USA
    Call Quickbooks online tech support usa to get fix for all problems related to Quickbooks and contact Quickbooks online helpline usa.
    QuickBooks Online Tech Support (24*7) USA Helpline
    Call Quickbooks online tech support usa to get fix for all problems related to Quickbooks and contact Quickbooks online helpline usa.
    QuickBooks Enterprise Tech Support Phone Number (24/7) Helpline
    Call Quickbooks online tech support usa to get fix for all problems related to Quickbooks and contact Quickbooks online helpline usa.

    ReplyDelete
  30. QuickBooks has stopped working
    Need support to fix or QuickBooks won’t open, Quickbooks is not responding then your are correct place, get help to fix or QuickBooks won’t open, Quickbooks is not responding by best experts.

    ReplyDelete
  31. fix QuickBooks error 3371 Status Code-11118
    Need support to solve QuickBooks error 3371 Status Code-11118 then your are correct place, get help to fix QuickBooks error 3371 Status Code-11118 by best experts.
    fix QuickBooks error 3371 Status Code-11118, fix QuickBooks error 3371

    ReplyDelete
  32. fix QuickBooks unrecoverable error
    Need support to solve QuickBooks unrecoverable error then your are correct place, get help to fix QuickBooks unrecoverable error by best experts. 1-877-410-1171
    QuickBooks unrecoverable error, fix QuickBooks unrecoverable error, get rid of QuickBooks unrecoverable error

    ReplyDelete
  33. QuickBooks Online Support Phone Number
    Need support to solve problems related to QuickBooks then your are correct place, get QuickBooks online support phone number and connect with QuickBooks online customer service phone number @ 1-877-410-1171

    ReplyDelete
  34. QuickBooks Enterprise Support Phone Number
    Need help to fix problems related to QuickBooks then your are at right place, get QuickBooks enterprise support phone number and connect with QuickBooks enterprise customer service phone number.1-877-410-1171

    ReplyDelete
  35. In other sense, the clipping path is like creating a path that will remove the bars from the photo. As the name suggests, it clips a path. It points that the path that you not need gets clipped. The ClippingPath Service Provider is able to bring the change in the photos. Applying the Photoshop tool, the provider does the task.

    ReplyDelete
  36. mcafee.com/activate
    -offers high-end protection against all kinds of online threats, Ransomware attack and other viruses lurking in the digital world. These viruses attack directly or indirectly on your computer system with an intention of corrupting your important data and stealing your confidential information. Sometimes, viruses like Ransomware can permanently lock your system for asking you pay ransom to get the access back.

    ReplyDelete
  37. mcafee.com/activate
    - McAfee Antivirus Offers the cyber security solution for the protection of your digital data. The company developed a number of software and services to fulfill the requirements of the users. You can download and install the security on your system from the link mcafee.com/activate online. In order to download and activate your version of the product on your system, you need a unique product key.

    ReplyDelete
  38. Garmin.com/express
    - The Garmin is the American Company that offers Global Positioning System (GPS), GPS receivers, satellite navigation products, and other consumer electronics. These devices are used and praised by many because of their quality product. Furthermore, the Garmin understands the requirement of their users and gives out an application to manage the Garmin devices. That application is known by name Garmin Express.

    ReplyDelete
  39. office.com/setup - The company has developed an extensive tool for the users which helps them to perform various tasks simultaneously. Microsoft Office suite includes a wide range of desktop applications like MS Word, MS Excel, and many others. You can use either offline or online version of the product to complete your tasks. In order to use the desktop or offline version of the product then you need to download and install Office on your system.

    ReplyDelete
  40. norton.com/setup
    - Norton developed a wide range of products to provide the security to your devices from the malware, threats, and other cyber attacks. The company developed various cross-platform, antimalware, real-time, and subscription-based software for the personal as well as professional use. Every Norton product requires a product key to download, install and activate the product on your system.

    ReplyDelete
  41. https://numbertocontact.com/emails/yahoo-mail-support-number
    – Yahoo mail is another free web mail service provider with many users around the globe. They have specially designed products for the business use. Using the Yahoo mail, you get free 1TB of cloud space to store and send an attachment and other media. Other basic features includes virus and spam protection.

    ReplyDelete
  42. Read the best Foot Massager Reviews of 2019 Inthe following article, we present the top 8 models available today and revealtheir pros and cons.

    ReplyDelete
  43. I love the relevant info show forth in your posts.
    I'll take note of your blog page and check again here continually. Myindigo card login

    ReplyDelete
  44. Password recovery services provide a better solution than other websites. If anyone lives in the United state of America and Candana contact our Hotmail Password recovery service +1-877-637-1326 ( USA/Canada). If you have any problem with Hotmail account password call on AT&T mail password

    ReplyDelete
  45. Thank you for sharing this information with us. Password recovery support provides data recovery and recovers all password of your any account without hassle. Contact us on our toll-free number which is available at your doorstep.

    ReplyDelete
  46. I really happy found this website eventually. Really informative and inoperative, Thanks for the post and effort! Please keep sharing more such blog.

    norton.com/setup

    norton help

    roadrunner email

    mcafee.com/activate

    aol mail

    ReplyDelete
  47. Thank you for the information you shared with us. If you face any kind of problem in RocketMail you can contact to the RocketMail password recovery team and here our best technicians will provide you the best guidance within a few minutes. RocketMail Password Reset team provide 24*7 so the user can contact the Rocketmail Password Recovery team anytime.

    ReplyDelete
  48. Banner Design Service is a focusing fact for any kinds of business institutions. Banner show your products identity which is provided by you. Manage your banner design service creatively by any professional designer to highlight your products. Creative banner grabs your customer’s attention.

    ReplyDelete
  49. You have great ideas to share something like this.Thanks for share this info.


    mcafee.com/activate

    ReplyDelete
  50. If you face any sort of issue in Windows, you can contact the Windows password recovery team and here our best professionals will give you the best direction inside a couple of minutes. Windows Password recovery gives 24*7 so the user can contact the Windows Password Recovery" team whenever.

    ReplyDelete
  51. If you face any kind of problem in PDF you can contact the PDF password recovery team and here our best technicians will provide you the best guidance within a few minutes. PDF Password Reset team provides 24*7 so the user can contact the PDF Password Recovery team anytime.

    ReplyDelete
  52. Thanks for this wonderfull content and information.I found this website eventually. Really good inoperative, Thanks for the post and effort! Please keep sharing more such blog. norton.com/setup | Brother printer support

    ReplyDelete