Skip to content

Instantly share code, notes, and snippets.

@quanengineering
Last active August 9, 2018 00:52
Show Gist options
  • Save quanengineering/e0c2ac07488bbf780773e44e8465a62b to your computer and use it in GitHub Desktop.
Save quanengineering/e0c2ac07488bbf780773e44e8465a62b to your computer and use it in GitHub Desktop.
Setup OpenVPN on VPS

Auto:

https://github.com/Nyr/openvpn-install

Manual:

apt-get update wget http://swupdate.openvpn.org/as/openvpn-as-2.0.21-Ubuntu14.amd_64.deb sudo dpkg -i openvpn-as-2.0.21-Ubuntu14.amd_64.deb

Lay password dang nhap: passwd openvpn

After setup, if you can't login Admin Web UI, run:

sudo /usr/local/openvpn_as/bin/ovpn-init

When you get to the section:

Please specify the network interface and IP address to be used by the Admin Web UI: (1) all interfaces: 0.0.0.0 (2) eth0: YOURPUBLICIP (3) eth0: 10.10.0.8

Make sure you select all interfaces, for some reason it defaults to 2, which makes it not public. Works for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment