Install OpenVPN Access Server in Ubuntu

  • by
  • 3 Years ago
  • 2

OpenVPN Access Server as described on Official website – is a full featured SSL VPN software solution that integrates OpenVPN server capabilities, enterprise management capabilities, simplified OpenVPN Connect UI, and OpenVPN Client software packages that accommodate Windows, MAC, and Linux OS environments.  OpenVPN Access Server supports  a wide range of configurations, including secure and granular remote access to internal network and/ or private cloud network resources and applications with fine-grained access control.

Note: This installation was carried out on Ubuntu 14.04 Trusty Tahr using Ubuntu 13.10 Saucy Salamander install package and it worked

Step 1: Download and Install Latest Version

32bit OS

$ wget http://swupdate.openvpn.org/as/openvpn-as-2.0.7-Ubuntu13.i386.deb
$ sudo dpkg -i openvpn-as-2.0.7-Ubuntu13.i386.deb

64bit OS

$ wget http://swupdate.openvpn.org/as/openvpn-as-2.0.7-Ubuntu13.amd_64.deb
$ sudo dpkg -i openvpn-as-2.0.7-Ubuntu13.amd_64.deb

Step 2: Set OpenVPN AS Admin Password

$ sudo passwd openvpn

Step 3: Log into OpenVPN Access Server Admin Page

https://"server ip":943/admin

– Enter username and password

openvpn-as-01

– Accept Agreement

openvpn-as-02

OpenVPN Admin Console

openvpn-as-03a

Step 4: Create new User Account

– First add new user locally on the VPN server

$ sudo useradd sysuser
$ sudo passwd sysuser

– Click on ‘User Permissions‘ under User management, enter new user account. If user is also an Admin, then check the Admin box and ‘Allow Auto-login‘ if you do not want user to enter password every time

openvpn-as-04

– Save your settings and click ‘Update Running Server

openvpn-as-05

Step 5: Connect Client to OpenVPN

From a Linux (Ubuntu) Machine

– Access the URL

https://"server ip":943/

– Download the autologin profile. This would be saved in your Downloads directory “/home/<username>/Downloads/

openvpn-as-12

– Install OpenVPN on client machine

sudo apt-get install openvpn

– Connect to OpenVPN from client machine

openvpn --config /home/'your username here'/Downloads/client.ovpn

From a Windows Machine

– Access the URL

https://"server ip":943/

– Enter client username and password. Select ‘Login’ and click Go

openvpn-as-06

– First download OpenVPN Connect for Windows and then install it. After installation is completed, you would have the OpenVPN icon on your desktop

openvpn-as-07

openvpn-as-08

– Launch the OpenVPN client, click Yes if you get a warning for UNVERIFIED profile (I believe this is due to the certificate)

openvpn-as-09

– After few seconds, you will get a notification saying the VPN connection had been established

openvpn-as-10

– You can also confirm the connection by clicking on Current Users in admin page

openvpn-as-11

And that’s it.

  • facebook
  • googleplus
  • twitter
  • linkedin
  • linkedin
  • Thanks for this great post!
    Happy new style! 🙂

    • You are welcome :). Looking to make this blog more better and make my readers feel more at home. Further minor changes will take place during the week