Tag Archives: OpenVPN

OpenVPN is free software for building a virtual private network over an encrypted TLS connection. OpenVPN is available for Windows, macOS iOS and Android.

OpenVPN Connect using on iPhone and Android

OpenVPN is enjoying increasing popularity. The OPNsense firewall offers an excellently integrated OpenVPN server with numerous features, but other open source solutions also use OpenVPN, as well as the Synology NAS devices, where OpenVPN is part of the VPN server, which is available in the DSM Package Center. The popular open source VPN solution is available for all common operating systems, from Linux and Windows to MacOS and mobile devices with iOS and Android.

This tutorial shows how to set up OpenVPN Connect and using VPN connections on iOS and Android.

How to use OpenVPN Connect on iPhone and Android

First, the OpenVPN Connect app is loaded onto the device. This is available free of charge in the Apple App Store and Google Play.

OpenVPN Apple StoreOpenVPN Google Play

The configuration of the clients is done by importing the ovpn profile, which contains all the necessary settings.

  1. Launch the OpenVPN Connect app
  2. Tap Upload File
  3. Tab BROWSE
  4. Choose My Documents folder – Select Downloads
  5. Select OpenVPN configuration file .ovpn
  6. Tab Done
  7. Import .ovpn profile? OK
  8. Enter your username and select CONNECT
  9. For 2FA enter OTP and password together OTP token + password

  Import more OpenVPN profiles by tapping on the + symbol.

Screenshot gallery of OpenVPN Import Profile for Android.

  The first time you connect after tapping the slide switch, the app will ask for permission to add the VPN configuration. If everything has been completed successfully, a VPN tunnel is established by the client to the server, which the app outputs via the status CONNECTED.

How to transfer OpenVPN profile?

The easiest way to transfer the configuration file (.ovpn) to an iOS or Android device is to transfer the file from the PC to the smartphone or tablet via Bluetooth. First both devices you’re have to pair via Bluetooth, then on the PC select the OVPN file with click the right mouse button, from the context menu choose – Send to Bluetooth device.

After confirming with OK, the OVPN file should now be found on the mobile device under “My Documents” in the “Downloads” folder.

Alternatively, you can send the OVPN file by email to your email address and then save it to your smartphone or tablet, or via cloud storage, and if available, via local synchronization such as Synology Drive.

Conclusion

OpenVPN as an open source solution is available for all clients of the common platforms, such as iOS and Android.

The corresponding app can be obtained from the respective store and the configuration is done via a file that contains all the settings and that you download from the OpenVPN server.

The OPNsense firewall is particularly recommended as an OpenVPN server. Numerous options can be configured, such as client and server certificates and 2FA authentication, with the integration of LDAP for active directory and google authenticator TOTP for multi-factor authentication.

Sources:

The next relevant post might also be helpful, see How To OPNsense 2FA TOTP with Google Authenticator shows the provisioning.

Launch OpenVPN connection from KeePass

If you use the KeePass Password Manager for system administration, it makes sense to launch the OpenVPN connection and authentication directly from KeePass, for this purpose the user and password can be transferred via variables to another program, such as an FTP client or a browser. It would also be practical if you could launch a VPN tunnel directly from KeePass.

This tutorial shows how to set up and launch a OpenVPN connection from KeePass using the OpenVPN GUI.

In which a new entry is created in KeePass, we add the target gateway to User name, namely the file name of the .ovpn connection file, which is created in the OpenVPN GUI, for connection to a VPN router or to a firewall.

cmd://"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --config_dir %USERPROFILE%\OpenVPN\config\ --connect {USERNAME}

Insert the line in the URL field, the paths correspond to those provided during the installation of the OpenVPN GUI Setup. If different directory paths are used, they must be adjusted.

Launch VPN connection from KeePass

The VPN connection is now started in the KeePass overview with a double click on the URL line, or with hit the key Ctrl+U.

Conclusion

This tutorial describes how to start a VPN connection from KeePass with the OpenVPN GUI. For system administrators, KeePass also offers useful support for administration and daily tasks wherever VPN access to remote systems is to be established quickly and easily.