Alright, in this post we are going to prepare an openvpn server.
*Just note that openVPN access server comes with 2 user free license only and if you have more than 2 users at the same time you need to buy license (for 99$ per year per user if I am not wrong).
Download the rpm and install it:
sudo yum install -y http://swupdate.openvpn.org/as/openvpn-as-2.0.12-CentOS6.x86_64.rpm
Once it is installed it might launch auto configuration script, just cancel it cause my experience with installing openVPN default configurations on Amazon EC2 end up with some errors. To avoid that we need to change some configurations in auto-config script:
And change the configurations to following (you need to add –distro redhat in two lines cause this script can not detect destro):
/usr/local/openvpn_as/scripts/openvpnas_gen_init --distro redhat /usr/local/openvpn_as/scripts/openvpnas_gen_init --auto --distro redhat
and finally just run the ovpn initialiser script:
sudo /usr/local/openvpn_as/bin/ovpn-init --ec2 --verbose
and just keep following the wizard like prompts (I know its not windows!!). By default this script will add openvpn user with the password you define in the wizard!
You can later simply login to access server using https://ovpn.yourdomain.com/admin/ for administration.
Once you are in admin panel go to “Server Network Settings” and “User Permissions” to change default configurations or add/edit users.