How do I create an OpenVPN profile for Android?
Posted: Fri Dec 27, 2013 3:29 am
I have my own OpenVPN server running on a Red Hat Fedora system. It works and I can connect a Windows PC to it. Great stuff!
The OpenVPN Windows installation includes some sample .ovpn files with config parameters. I can customize one of them with the config parameters I want, then use various scripts on the server to generate key files for my client. I copy all those files to the correct directory on my Windows client and everything works.
Now I want to connect an Android tablet and an Android cell phone to my OpenVPN server. I installed OpenVPN Connect and everything I can find says I need to go through a process called "importing the profile". Launching OpenVPN Connect on my tablet, I see I can tap on various options to import a profile - that's great - but how do I build that profile in the first place? I am guessing this profile is really a .ovpn config file and set of key files.
Ideally, I would like to connect my tablet to a USB port on a PC and copy the .ovpn file and keys to a correct directory on the tablet. But I don't want to root the tablet - so what probably needs to happen is, copy the .ovpn config file and keys to an intermediate directory and use the GUI on the tablet to import them.
Am I on the right track? And are there sample .ovpn config files for Android clients? Or can I take my .ovpn client file from my PC and modify the key file names and use that as a starting point? Once imported, how do I edit the existing profile? Or do I edit the files in the intermediate directory and import again?
thanks
- Greg Scott
The OpenVPN Windows installation includes some sample .ovpn files with config parameters. I can customize one of them with the config parameters I want, then use various scripts on the server to generate key files for my client. I copy all those files to the correct directory on my Windows client and everything works.
Now I want to connect an Android tablet and an Android cell phone to my OpenVPN server. I installed OpenVPN Connect and everything I can find says I need to go through a process called "importing the profile". Launching OpenVPN Connect on my tablet, I see I can tap on various options to import a profile - that's great - but how do I build that profile in the first place? I am guessing this profile is really a .ovpn config file and set of key files.
Ideally, I would like to connect my tablet to a USB port on a PC and copy the .ovpn file and keys to a correct directory on the tablet. But I don't want to root the tablet - so what probably needs to happen is, copy the .ovpn config file and keys to an intermediate directory and use the GUI on the tablet to import them.
Am I on the right track? And are there sample .ovpn config files for Android clients? Or can I take my .ovpn client file from my PC and modify the key file names and use that as a starting point? Once imported, how do I edit the existing profile? Or do I edit the files in the intermediate directory and import again?
thanks
- Greg Scott