Skip to content

Instantly share code, notes, and snippets.

@7castle
Last active September 12, 2019 01:52
Show Gist options
  • Save 7castle/d7a793725e6a9516d8ad to your computer and use it in GitHub Desktop.
Save 7castle/d7a793725e6a9516d8ad to your computer and use it in GitHub Desktop.
openvpn minimal install
apt-get install openvpn
cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/ /etc/openvpn/ca/
cd /etc/openvpn/ca/
. vars
. clean-all
. build-ca
. build-key-server server
. build-key client
. build-dh
vi /etc/openvpn/server.conf
cd /etc/openvpn/ca/keys/
cp ca.crt ca.key dh1024.pem server.crt server.key /etc/openvpn/
/etc/init.d/openvpn restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment