Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created April 26, 2015 20:29
Show Gist options
  • Select an option

  • Save makevoid/e23cb266745ece0b1b2c to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/e23cb266745ece0b1b2c to your computer and use it in GitHub Desktop.
script_openvpn_darioinstall.sh
apt-get update && apt-get upgrade -y && apt-get install -y openvpn easy-rsa && mkdir /etc/openvpn/easy-rsa/ && cp /usr/share/easy-rsa/* /etc/openvpn/easy-rsa/ && cd /etc/openvpn/easy-rsa/ && source vars && ./clean-all && ./build-dh && ./pkitool --initca && ./pkitool --server server && cd keys && openvpn --genkey --secret ta.key && sudo cp server.crt server.key ca.crt dh2048.pem ta.key /etc/openvpn/
@makevoid

Copy link
Copy Markdown
Author

@dario_andrei your openvpn oneliner

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