Difference between revisions of "How to install and setup OpenVPN"

From HyperSecurity Wiki
Jump to: navigation, search
(Client)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''* Make sure that TUN/TAP are enabled if using VPS'''
+
'''** Make sure that TUN/TAP are enabled first if using VPS **'''
  
 
== Server ==
 
== Server ==
  
 
'''Download OpenVPN:'''
 
'''Download OpenVPN:'''
  https://openvpn.net/index.php/download/58-open-source/downloads.html
+
  https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html
  
 
'''Install OpenVPN (using Debian):'''
 
'''Install OpenVPN (using Debian):'''
Line 17: Line 17:
  
 
== Client ==
 
== 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):
 
Login to VPN server (must use local system account):

Latest revision as of 05:21, 23 November 2015

** 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