mirror of https://github.com/CISOfy/lynis.git
Update tests_firewalls
This commit is contained in:
parent
13ced756cd
commit
d90413e243
|
@ -138,18 +138,18 @@
|
|||
|
||||
# logics
|
||||
if ( [ "${table}" = "filter" ] || [ "${table}" = "security" ] ) && [ "${chain}" = "INPUT" ] && [ "${target}" = "ACCEPT" ] ; then
|
||||
LogText "Result: Found ACCEPT for ${chain} (table: ${table})"
|
||||
LogText "Result: Found ${target} for ${chain} (table: ${table})"
|
||||
Display --indent 6 --text "- Checking chain ${chain} (table: ${table}, chain ${chain})" --result "${target}" --color YELLOW
|
||||
AddHP 1 3
|
||||
fi
|
||||
if ( [ "${table}" = "filter" ] || [ "${table}" = "security" ] ) && [ "${chain}" = "INPUT" ] && [ "${target}" = "DROP" ] ; then
|
||||
LogText "Result: Found DROP for ${chain} (table: ${table})"
|
||||
LogText "Result: Found ${target} for ${chain} (table: ${table})"
|
||||
Display --indent 6 --text "- Checking chain ${chain} (table: ${table}, chain ${chain})" --result "${target}" --color GREEN
|
||||
AddHP 3 3
|
||||
fi
|
||||
if ( [ "${table}" = "filter" ] || [ "${table}" = "security" ] ) && ( [ "${chain}" = "INPUT" ] || [ "${chain}" = "FORWARD" ] || [ "${chain}" = "OUTPUT" ] ) && [ "${target}" = "NFQUEUE" ] ; then
|
||||
LogText "Result: Found DROP for ${chain} (table: ${table})"
|
||||
Display --indent 6 --text "- Checking chain ${chain} (table: ${table}, chain ${chain})" --result "NFQUEUE" --color RED
|
||||
LogText "Result: Found ${target} for ${chain} (table: ${table})"
|
||||
Display --indent 6 --text "- Checking chain ${chain} (table: ${table}, chain ${chain})" --result "${target}" --color RED
|
||||
ReportSuggestion "${TEST_NO}" "Consider avoid ${target} target if possible (iptables chain ${chain}, table: ${table})"
|
||||
AddHP 0 3
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue