diff --git a/tools/install_openvpn.sh b/tools/install_openvpn.sh new file mode 100644 index 0000000000..3b52cf11b8 --- /dev/null +++ b/tools/install_openvpn.sh @@ -0,0 +1,60 @@ +# rough history from wilk - need to cleanup +apt-get install -y openvpn bridge-utils +cp -R /usr/share/doc/openvpn/examples/easy-rsa/2.0/ /etc/openvpn/easy-rsa/ +cd /etc/openvpn/easy-rsa +source vars +./clean-all +./build-dh +./pkitool --initca +./pkitool --server server +./pkitool client1 +cd keys +openvpn --genkey --secret ta.key ## Build a TLS key +cp server.crt server.key ca.crt dh1024.pem ta.key ../../ +cd ../../ + +cat >/etc/openvpn/server.conf <