Update tests_firewalls

This commit is contained in:
nser77 2024-10-11 15:24:20 +02:00 committed by GitHub
parent 0891d2693e
commit f3ffbb0b48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,17 +165,19 @@
if [ ! "${SORTBINARY}" = "" ]; then eq="$( echo "${errqueue}" | ${SORTBINARY} -u )"; else eq="${errqueue}"; fi if [ ! "${SORTBINARY}" = "" ]; then eq="$( echo "${errqueue}" | ${SORTBINARY} -u )"; else eq="${errqueue}"; fi
echo "${eq}" | while IFS="\n" read -r eql echo "${eq}" | while IFS="\n" read -r eql
do do
set -- ${eql} if [ ! "$eql" = "" ]
while [ $# -gt 0 ] then
do set -- ${eql}
LogText "Result: Found ${3} for ${2} (table: ${1})" while [ $# -gt 0 ]
Display --indent 6 --text "- Checking chain ${2} (table: ${1}, target: ${3})" --result "${3}" --color "${4}" do
if [ "${3}" = "NFQUEUE" ] Display --indent 6 --text "- Checking chain ${2} (table: ${1}, target: ${3})" --result "${3}" --color "${4}"
then if [ "${3}" = "NFQUEUE" ]
ReportSuggestion "${TEST_NO}" "Consider avoid ${3} target if possible (iptables chain ${2}, table: ${1})" then
fi ReportSuggestion "${TEST_NO}" "Consider avoid ${3} target if possible (iptables chain ${2}, table: ${1})"
shift 4 fi
done shift 4
done
fi
done done
} }
done done