From 8cc1362d1702a2c0756a47581adb696cbd4b980e Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Fri, 23 Dec 2016 16:17:36 -0600 Subject: [PATCH] Workaround for xl2tpd bug - Temporary workaround for an xl2tpd bug which affects CentOS 7 - Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1406360 --- vpnsetup_centos.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index ee0c745..80ea1e2 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -144,7 +144,15 @@ yum -y install nss-devel nspr-devel pkgconfig pam-devel \ libcap-ng-devel libselinux-devel \ curl-devel flex bison gcc make \ fipscheck-devel unbound-devel xmlto || exiterr2 -yum -y install ppp xl2tpd || exiterr2 +yum -y install ppp || exiterr2 + +# Temporary workaround for xl2tpd bug +# Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1406360 +if grep -qs "release 6" /etc/redhat-release; then + yum -y install xl2tpd || exiterr2 +else + yum -y --enablerepo=epel-testing install xl2tpd || exiterr2 +fi # Install Fail2Ban to protect SSH server yum -y install fail2ban || exiterr2