Last active
September 12, 2019 01:52
-
-
Save 7castle/d7a793725e6a9516d8ad to your computer and use it in GitHub Desktop.
openvpn minimal install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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