Added nftables fix
This commit is contained in:
@@ -328,8 +328,15 @@ fi
|
||||
# Checking FIREWALL system
|
||||
if [ -n "$FIREWALL_SYSTEM" ] && [ "$FIREWALL_SYSTEM" != 'remote' ]; then
|
||||
state="stopped"
|
||||
if $(iptables -S INPUT | grep -qx '\-P INPUT DROP'); then
|
||||
state="running"
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
RES=$(systemctl is-active nftables | grep -E "^active")
|
||||
if [ -n "$RES" ]; then
|
||||
state="running"
|
||||
fi
|
||||
else
|
||||
if $(iptables -S INPUT | grep -qx '\-P INPUT DROP'); then
|
||||
state="running"
|
||||
fi
|
||||
fi
|
||||
data="$data\nNAME='$FIREWALL_SYSTEM' SYSTEM='firewall'"
|
||||
data="$data STATE='$state' CPU='0' MEM='0' RTIME='0'"
|
||||
|
||||
Reference in New Issue
Block a user