How to import/export VPN Profiles in 1 VPN for Android
Apps / OneVpn / how-to / import1 VPN for Android lets you import and export your VPN profiles. This import/export feature makes it easy to create backups and move to a new Android device. It is also ideal for IT departments that are in charge of installing VPN on multiple devices.
Note: This feature is only available in version 1.3 and later.
Exporting Profiles
If you already have added profiles to 1 VPN, you can export these to a file or an email.
Press "menu>Import/Export", this will bring up the Import/Export wizard dialog.
Click Export. Next you can choose to export to file or email.
Choose export to email and you will see an email with the profiles exported as values separeted by semi-colon (;), each profile is on a separate line.
If you instead choose to export to file, you will need to select a file. 1 VPN uses the Open Intent file manager for file selection. If you don't have this app installed, you will be asked to install it. If you don't install it you will only be able to export to email.
Limitations: For security reasons, 1 VPN does not export passwords.
Importing Profiles
If you already have exported profiles, it is then easy to import them again, also on a different device.
Press Add, then select Import Profiles, this will bring up the Import wizard dialog which lets you choose to import from a file or from the clipboard. This means that if you receive an email or similar, with the profile information, you can copy it to the clipboard and then import it.
If you select to import from file, you will be asked to choose a file using the Open Intent file manager. If you don't have this app installed, you will be asked to install it. If you don't install this app you will only be able to import from the clipboard.
The imported data may contain several profiles, and these are checked against the profiles already created in 1 VPN. You can select to overwrite, individually or all, profiles with the imported ones.
You will be asked to confirm, before you commit to use the imported profiles.
Importing will not remove any old profiles, only add new ones and replace ones you choose to overwrite.
The 1 VPN Import/Export Format
The import format is based on ';'-separated text; profiles are separated by newlines. Example:
PPTP; My Vpn; my_username; my_password; vpn.mydomain.com; 2; false; 15; ; true
L2TP; My l2tp; my_username; l2tp.mydomain.com; 0; true; 15;
The above defines one PPTP-type profile named "My Profile", which corresponds to the profile seen in the attached screen shot, the second line defines a L2TP profile. The PPTP profile has both a user name and password specified, the L2TP has a username but no password (empty). Note that 1 VPN does not export passwords, but it does import them. Next is the server name, followed by options for reconnection and keep alive pings (see /Apps/OneVpn/how-to/ for more information). The DNS Search Domains are not set in either profile, so they both have an empty field after the server name. The PPTP profile has encryption enabled, indicated by 'true', L2TP does not have any encryption option.
The general format for a profile is:
TYPE; NAME; USERNAME; PASSWORD; SERVER; RC; KA; KA_INTERVAL; DNS_SEARCH_DOMAIN; extra
Where TYPE is one of the strings:
- PPTP
- L2TP
- L2TP_IPSEC
- OTHER (for non-supported VPN types that only has saved password)
The RC is an integer denoting reconnection attempts, KA is a boolean (true or false) indicating if 'keep alive pings' should be sent, and KA_INTERVAL is an integer indicating the number of minutes between pings.
The 'extra' depends on the type. If type is:
- PPTP, then extra is either 'true' or 'false' to indicate whether or not Encryption is enabled.
- L2TP_IPSEC, then extra should be two elements: CA_CERTIFICATE; USER_CERTIFICATE
- any other type, then extra is empty
The CA_CERTIFICATE and USER_CERTIFICATE should correspond to the names of installed certificates. Click here if you want to learn more about how to install certificates on Android for 1 VPN.
The USERNAME, PASSWORD, and DNS_SEARCH_DOMAINS may be empty, all other fields are required to contain something.