From 2d1530068a1f2c7f97c43e3baff9fba0643f28ee Mon Sep 17 00:00:00 2001 From: Mikko Caldara Date: Fri, 14 Jun 2019 17:44:14 +0100 Subject: [PATCH] Upgrade OpenVPN to 2.4 on Ubuntu --- step.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/step.sh b/step.sh index ffb18d1..0a4800c 100644 --- a/step.sh +++ b/step.sh @@ -19,19 +19,26 @@ verb 3 ca ca.crt auth-user-pass login.conf reneg-sec 0 +status /var/log/openvpn-status.log +log /var/log/openvpn.log EOF case "$OSTYPE" in linux*) echo "Configuring for Ubuntu" + curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add + echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list + apt update -y > /dev/null 2>&1 + apt install -y openvpn > /dev/null 2>&1 + echo ${ca_crt} | base64 -d > /etc/openvpn/ca.crt echo ${user_pass} | base64 -d > /etc/openvpn/login.conf - sudo cp client.ovpn /etc/openvpn/client.conf + cp client.ovpn /etc/openvpn/client.conf service openvpn start client > /dev/null 2>&1 - sleep 5 + sleep 10 if ifconfig | grep tun0 > /dev/null then