How to install and setup OpenVPN

From HyperSecurity Wiki
Jump to: navigation, search

** Make sure that TUN/TAP are enabled first if using VPS **

Server

Download OpenVPN:

https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html

Install OpenVPN (using Debian):

dpkg -i openvpn-as-2.0.21-Debian7.amd_64.deb

Setup OpenVPN User:

passwd openvpn

Login to VPN server to finish the configuration using openvpn user account:

Admin  UI: https://hostname:943/admin
Client UI: https://hostname:943/

Client

If client is going to be scripted, it will need to be compiled by source.

apt-get install libssl-dev libpam0g-dev 
./configure --enable-password-save

Login to VPN server (must use local system account):

https://hostname:943/
Download client.ovpn from link

Run the following from commandline with sudo or root:

openvpn --config client.ovpn