From 2fbdbde3ab31f4a6f89d951542aa6d1d8c2f570a Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Thu, 19 May 2022 23:57:26 -0500 Subject: [PATCH] Add check for nftables --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index c14f7f7..3e7903e 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -85,6 +85,11 @@ This version of CentOS is too old and unsupported." exit fi +if [ "$os" = "centos" ] && grep -qs "hwdsl2 VPN script" /etc/sysconfig/nftables.conf; then + echo "This system has nftables enabled, which is not supported by this installer." + exit +fi + # Detect environments where $PATH does not include the sbin directories if ! grep -q sbin <<< "$PATH"; then echo '$PATH does not include sbin. Try using "su -" instead of "su".'