OpenVPN with Android Smartphones - VARIATION 1

back to OpenVPN main

The Android smartphone must be “rooted” to install the OpenVPN binaries. For example on Cyanogenmod, they are already exist! It will be not explained here how to “rooted” the Android !

  • On VARIATION 1 you need an app.
  • On VARIATION 2 you don´t need an app, but the Cyanogenmod is assumed!

IPFire preferences

You want to access along the way with the Android smartphone your documents at home or in the company? No problem! Thanks IPFire you can build a VPN over the mobile telephone system to make this possible.

Since some steps are necessary, they are kept as simple as possible.

OpenVPN must first be prepared for the IPFire:

If you want to access a server in the DMZ (orange zone), an additional route MUST be registered

  • The encryption on the IPFire must be set on “BF-CBC” ! Otherwise, the VPN does not work correctly !
  • There was also successfully build up a 256-AES-CBC chiphered connection with HTC Desire und Samsung Galaxy S2 http://forum.ipfire.org/index.php?topic=6268.0 and Samsung Galaxy S3 LTE

Subsequently the ”.p12 certificate” and the ”.ovpn file” have to be transferred to the Android device. Simply click on the floppy-disk icon and copy the files onto the memory card of your smartphone.

Where exactly? In the root directory of the memory card into the subfolder “openvpn” (possibly it must be created first):

Android preferences

One thing is missing still, the app that connects to the OpenVPN. The app consists of two parts.

  • Part 1: OpenVPN Installer - this will check whether the binaries are already installed on the Android device. If the binaries are not installed, the app does this by pushing a button. After this procedure you can then uninstall the app easily.
  • Part 2: OpenVPN Settings - this app initialize then the OpenVPN network connection between IPFire and the smartphone.

If “OpenVPN settings” are started, it should automatically find the files in the openvpn folder on the memory card:

If OpenVPN and the connection is activated, an entry appears on the login “curtain” where you can enter the password.

Shortly after, you are connected. This will be shown on the Android device and on the IPFire …

OpenVPN with Android Smartphones - VARIATION 2

The Android smartphone must be “rooted” to install the OpenVPN binaries. For example on Cyanogenmod, they are already exist! It will not be explained here how to “rooted” the Android !

  • On VARIATION 1 you need an app.
  • On VARIATION 2 you don´t need an app, but the CyanogenMod is assumed!

IPFire preferences

You want to access along the way with the Android smartphone your documents at home or in the company? No problem! Thanks IPFire you can build a VPN over the mobile funk network to make this possible.

Since some steps are necessary, they are kept as simple as possible.

OpenVPN must first be prepared for the IPFire:

If you want to access a server in the DMZ (orange zone), an additional route MUST be registered

Subsequently the ”.p12” certificate and the ”.ovpn” file have to be transferred to the Android device. Simply click on the floppy-disk icon and copy the files onto the memory card of your smartphone.

Where exactly? In the root directory of the memory card into the subfolder “openvpn” (possibly it must be created first):

Android preferences

The following is a brief picture story as the VPN is set up on the smartphone. The “Cyanogenmod 7” was used here. The pictures are arranged in order from left to right.

Now click on the VPN …. and shortly after you are connected, this will shown on the Android device and on IPFire.

back to OpenVPN main


wiki.ipfire.org

The community-maintained documentation platform of IPFire