OpenVPN-AS Installation

francis

Administrator
Staff member
Installation

yum -y install https://as-repository.openvpn.net/as-repo-centos7.rpm
yum -y install openvpn-as

useradd -d /home/francis francis
useradd -d /home/openvpn openvpn
passwd francis
passwd openvpn

Change the Admin and Client Ports
Install Fail2ban

Update OpenVPN-as:
yum update

Allow the choice between several profiles

Open cmd.exe with administrative privileges.
Run the following 2 commands: (if you have 32 bits Windows, leave out the " (x86)" part):
cd "C:\Program Files (x86)\OpenVPN Technologies\OpenVPN Client\core"
capicli -k basic_client -v false SetPreference

Optional: Forwarding ports to a local VM running OpenVPN-AS

Bash:
firewall-cmd --permanent --zone=public --add-forward-port=port=4400:proto=tcp:toport=4400:toaddr=10.0.2.2
firewall-cmd --permanent --zone=public --add-forward-port=port=4401:proto=tcp:toport=4401:toaddr=10.0.2.2
firewall-cmd --permanent --zone=public --add-forward-port=port=1194:proto=udp:toport=1194:toaddr=10.0.2.2
firewall-cmd --reload

firewall-cmd --list-all-zones
Google Authenticator

# cd /usr/local/openvpn_as/scripts
# ./confdba -us -p <username> # Retrive current user properties
# ./confdba -u -m -k pvt_google_auth_secret_locked -v false -p <username> # Disable Google Auth for User
 
Top