Accept NFLOG as a logging target for iptables.

This commit is contained in:
Andrew Ruthven 2025-10-19 16:16:04 +13:00 committed by Andrew Ruthven
parent fb45fddfa9
commit abc37f16d7

View file

@ -557,7 +557,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
if [ ${IPTABLES_ACTIVE} -eq 1 ]; then
if [ -n "${IPTABLESSAVEBINARY}" ]; then
HAS_LOGGING=$(${IPTABLESSAVEBINARY} | ${GREPBINARY} "\-j LOG")
HAS_LOGGING=$(${IPTABLESSAVEBINARY} | ${EGREPBINARY} "\-j (NF)?LOG")
if [ -z "${HAS_LOGGING}" ]; then
Report "firewall_no_logging[]=iptables"
fi