We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02f5e6 commit 79edadbCopy full SHA for 79edadb
bin/v-list-sys-services
@@ -284,12 +284,11 @@ fi
284
# Checking FIREWALL system
285
if [ ! -z "$FIREWALL_SYSTEM" ] && [ "$FIREWALL_SYSTEM" != 'remote' ]; then
286
state="stopped"
287
- /sbin/iptables -n -L fail2ban-HESTIA >/dev/null 2>&1
288
- if [ "$?" -eq 0 ]; then
+ if $(iptables -S INPUT | grep -qx '\-P INPUT DROP'); then
289
state="running"
290
fi
291
data="$data\nNAME='$FIREWALL_SYSTEM' SYSTEM='firewall'"
292
- data="$data STATE='$state' CPU='0' MEM='0' RTIME='$rtime'"
+ data="$data STATE='$state' CPU='0' MEM='0' RTIME='0'"
293
294
295
0 commit comments