pfSense® software Configuration Recipes — Configuring IPsec IKEv2 Remote Access VPN Clients — Configuring IPsec IKEv2 Remote Access VPN Clients on Android (2024)

  • Docs »
  • pfSense® software »
  • pfSense® software Configuration Recipes »
  • Configuring IPsec IKEv2 Remote Access VPN Clients
  • Give Feedback

Next
Configuring IPsec IKEv2 Remote Access VPN Clients on macOS

Previous
Configuring IPsec IKEv2 Remote Access VPN Clients on Windows

Note

Android considers using a VPN an action that must be secure. When activatingany VPN option the OS will force the user to add a lock method to the deviceif one is not already present. It does not matter which type of lock ischosen (PIN lock, Pattern lock, Password, etc) but it will not allow a VPN tobe configured until a secure lock has been added.

On Android devices with Face lock, that is not available as a secure locktype on its own.

There are two methods to configuring IKEv2 on Android: Natively on Android 11.xand later, or using the strongSwan app from the Play Store.

Native IKEv2 on Android

Android 11.x and later now include several IKEv2 client options compatible withmobile IPsec on pfSense® software. This example covers EAP-MSCHAPv2 which alsoworks with EAP-RADIUS.

Note

The settings below are from pure Android 11.x. These exact settings may notpresent on all Android devices, depending on the Android version and changesmade by the OEM.

Import the Server CA

To validate the server, the client needs to know the server certificate CA. TheAndroid IKEv2 client will only validate against CA entities imported by theuser.

Warning

Installing a self-signed root CA into Android in this manner carries somedanger as the CA could also be used to impersonate other servers. The dangeris lower since this is controlled by firewall administrators but the warningspresented when this is done may still confuse and worry end users.

If this is unacceptable, use the strongSwan application instead. It canvalidate against an existing root CA as well as validating a CA withoutinstalling it into the operating system trust store.

  • Copy the CA certificate to the device

  • Swipe down twice from the top of the screen

  • Tap the Settings cog

  • Tap Security, Encryption & Credentials

  • Tap Install a certificate

  • Tap CA certificate

  • Read the warning text

  • Tap Install anyway to continue

  • Locate and tap the CA certificate which was copied to the device

Setup the VPN Connection

  • Swipe down twice from the top of the screen

  • Tap the Settings cog

  • Tap Networks & Internet, Advanced, VPN

  • Tap +

  • Enter the connection settings as follows:

    Name

    ExampleCo Mobile VPN or another suitable description

    Type

    IKEv2/IPsec MSCHAPv2

    Server Address

    The address of the server.

    Note

    This must match a value in the server certificate. For example, ahostname or IP address in a certificate SAN entry.

    IPsec Identifier

    The identifier on the EAP pre-shared key for this user (e.g. a username ore-mail address)

    IPsec CA Certificate

    Select the imported CA (optional, but the best practice)

    Username

    The identifier for this user again.

    Password

    The EAP key value associated with the identifier for this user.

  • Tap Save

Connecting and Disconnecting

To Connect:

  • Swipe down twice from the top of the screen

  • Tap the Settings cog

  • Tap Networks & Internet, Advanced, VPN

  • Tap the name of the VPN

  • Tap Connect

Android displays a key icon in the notification bar near the network statusicons and clocks while a VPN is connected.

To Disconnect:

  • Swipe down twice from the top of the screen

  • Tap the Settings cog

  • Tap Networks & Internet, Advanced, VPN

  • Tap the name of the VPN

  • Tap Disconnect

strongSwan App on Android

Before starting, install the strongSwan app from the Play Store:

Setup the VPN Connection

  • Copy the CA Certificate to the device

  • Open the strongSwan app

  • Import the CA:

    • Tap the settings icon (Three vertical dots in the upper right)

    • Tap CA Certificates

    • Tap the settings icon (Three vertical dots in the upper right)

    • Tap Import Certificate

    • Locate the CA Certificate copied earlier and tap it.

  • Tap Add VPN Profile

  • Enter the address of the firewall as the Gateway (e.g.vpn.example.com)

  • Select IKEv2 EAP (Username/Password) for the Type

  • Enter the Username

  • Enter the Password to have it be remembered or leave it blank to promptfor the password on each connection.

  • Check Select automatically under CA Certificate

  • Enter a Profile Name (optional, if left blank, the gateway address will beused)

  • Compare the settings to FigureAndroid strongSwan Client Settings

pfSense® software Configuration Recipes — Configuring IPsec IKEv2 Remote Access VPN Clients — Configuring IPsec IKEv2 Remote Access VPN Clients on Android (1)

Android strongSwan Client Settings

Connecting and Disconnecting

To Connect:

  • Open the strongSwan app

  • Tap the desired VPN

  • Check I trust this application at the security prompt as shown inAndroid strongSwan Client Settings

  • Tap OK

pfSense® software Configuration Recipes — Configuring IPsec IKEv2 Remote Access VPN Clients — Configuring IPsec IKEv2 Remote Access VPN Clients on Android (2)

Android strongSwan Client Settings

To Disconnect:

  • Swipe down from the top notification bar

  • Tap the strongSwan entry in the notification list

  • Tap Disconnect

Alternately:

  • Open the strongSwan app

  • Tap Disconnect on the desired VPN

pfSense® software Configuration Recipes — Configuring IPsec IKEv2 Remote Access VPN Clients — Configuring IPsec IKEv2 Remote Access VPN Clients on Android (2024)

References

Top Articles
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 6211

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.