Getting OpenVPN working on Android

#“Getting OpenVPN working on Android”

There are many uses for a VPN and they are generally very easy to setup on desktop computers. The experience with phones can be variable. iPhone is a doddle but Android is a horror (see my last post). The built-in PPTN VPN is utterly broken and does not work over 3G at all or for more than a few minutes on Wifi. The steps to get an alternative working on a HTC Desire are as follows:

  1. Brace yourself
  2. Install Windows OpenVPN and get it working on your PC with your VPN provider
  3. Root your Android phone. If you don't know how to do this, stop reading now.
  4. Replace the standard ROM with the latest community Froyo. Either Cyanogen 6.0 Nightly or DeFroST are good(I use DeFroST). OpenDesire does not seem to work in the later steps of this process and I haven't had a chance to try any of the Modaco ones with Sense still enabled.
  5. Install the Google Apps add-on too if your ROM doesn't include them.
  6. In Android Market, install the "OpenVPN Settings App"
  7. Note this is not the same as the OpenVPN Settings Page in Network->Settings. I wasted a ridiculous amount of time trying to get Cert files etc working there. Avoid it. That settings page is the source of most of the confusion around OpenVPN on all the forums. I'm sure there is a use for it if you have your own keys/certs etc but not for generic VPN users.
  8. Copy the config directory from C:Program FilesOpenVPN (including the sub-dir) on your PC to a directory like openvpn on the SD Card on your phone
  9. Go to that OpenVPN Settings App you installed
  10. Tell it where you have stored the config files and it should show you the configurations you copied from the PC
  11. Tap on the config you want and all going well, it will connect for you
  12. You are in business!
  13. I've noticed that it sometimes disconnects after a minute or so and then reconnects and stays solid after that.
  14. All of the above works on both WiFi and 3G

So Google, any ETA on fixing all those built-in VPN bugs?

Conor O'Neill

Tech guy who likes running slowly

Bandon, Cork, Ireland https://conoroneill.net