mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1555 from teoberi/teoberi-FIRE-4508
Update tests_firewalls -> FIRE-4508
This commit is contained in:
commit
4b83c85a29
|
@ -112,10 +112,10 @@
|
||||||
TABLES="filter nat mangle raw security"
|
TABLES="filter nat mangle raw security"
|
||||||
for TABLE in ${TABLES}; do
|
for TABLE in ${TABLES}; do
|
||||||
LogText "Test: gathering information from table ${TABLE}"
|
LogText "Test: gathering information from table ${TABLE}"
|
||||||
FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${GREPBINARY} -E -z -o -w '[A-Z]+' | tr -d '\0' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1')
|
FIND="$FIND"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${GREPBINARY} -E -o -w '[A-Z]+' | tr -d '\0' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1')
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "${FIND}" | while read -r line; do
|
echo "${FIND}" | sort | uniq | while read -r line; do
|
||||||
table=$(echo ${line} | ${AWKBINARY} '{ print $1 }')
|
table=$(echo ${line} | ${AWKBINARY} '{ print $1 }')
|
||||||
chainname=$(echo ${line} | ${AWKBINARY} '{ print $2 }')
|
chainname=$(echo ${line} | ${AWKBINARY} '{ print $2 }')
|
||||||
policy=$(echo ${line} | ${AWKBINARY} '{ print $3 }')
|
policy=$(echo ${line} | ${AWKBINARY} '{ print $3 }')
|
||||||
|
|
Loading…
Reference in New Issue