OpenVPN client setup - sovereign/sovereign GitHub Wiki
After you've enabled the vpn role, here is how you use it. The Ansible script has generated three VPN client profiles on the server: phone, laptop and tablet.
OS X
- Download and install Viscosity
- Copy the file
/etc/openvpn/laptop/DOMAIN.ovpnfrom the server. - From the Viscosity menu bar helper, choose Preferences. Click the + sign and import from File. Browse to the .ovpn file you downloaded. The profile should be imported automatically. Then connect to laptop to start the VPN.
Debian and Ubuntu
- Install the
network-manager-openvpnpackage.
- You'll probably also need the
network-manager-openvpn-gnomepackage, or whichever package is appropriate for you desktop environment.
- Copy the directory
/etc/openvpn/laptopfrom the server. - Choose to configure VPN from the network manager and add a new OpenVPN connection.
- Set the following options on the VPN tab:
- Gateway: YOUR DOMAIN
- Set the user certificate, CA certificate, and key to the corresponding files you downloaded
- Press the
Advancedbutton and set the following option on the General tab.- Check
Use LZO data compression
- Check
- Staying in advanced configuration, set the following options on the Security tab.
- Cipher: AES-256-CFB (jessie server: AES-256-CBC)
- HMAC Authentication: SHA-256 (jessie server: SHA-512)
- Staying in the advanced configuration, set the following options on the TLS Authentication tab.
- Check
Use additional TLS authentication - Set the key file to the
ta.keyfile you downloaded from the server - Set key direction to
1
- Check
- Ok the dialogs and verify you can connect.
Once you know it works, I recommend you export your configuration to back it up. You may also want to configure your network connection to automatically connect to your VPN using the profile you just set up. This can be done by editing the network connection, e.g., your wireless connection, and reviewing the General tab.
Android
- Install
OpenVPN Connectfrom the Google Play Store. - Copy
/etc/openvpn/phone/DOMAIN.ovpnfrom the server to your phone. (ownCloud is a nice way to do this.) - Launch
OpenVPN Connectand configure it to useDOMAIN.ovpn.