Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active January 1, 2024 23:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/98fea9f5e1ce4843f0a322c4238f5a03 to your computer and use it in GitHub Desktop.
Save dasgoll/98fea9f5e1ce4843f0a322c4238f5a03 to your computer and use it in GitHub Desktop.
Install OpenVPN Access Server (OpenVPN AS)
### Ubuntu Xexial Xerus 16.04
wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Ubuntu16.amd_64.deb
passwd passwd openvpn
Admin UI: https://publicIPaddress:943/admin
Client UI: https://publicIPaddress:943/
go to Server Network Settings -> Hostname or IP Address:
change it from private IP to public IP
go to VPN Settings -> Specify the private subnets to which all clients should be given access (as 'network/netmask_bits', one per line):
add the VPC CIDR
then go to
https://52.52.52.7:943
Connection profiles can be downloaded for: click 'Yourself (user-locked profile)'
## to add another user for fadi
useradd fadi
passwd fadi
==
if you prefer to not use Tunnelblick and commandline (openvpn)
brew install openvpn
sudo /usr/local/Cellar/openvpn/2.4.4/sbin/openvpn Downloads/client.ovpn
===
If you checked “Allow Auto-login”, your vpn client will be automatically connect to vpn without entering any username/password, useful for automation
useradd shadi
passwd shadi
User Permissions -> New Username: shadi , check 'Allow Auto-login'
======
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment