From 77400d3952539ab3b1b5923ff942837b78812735 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 5 Sep 2017 13:29:21 +0200 Subject: Improve logging --- include/tests_firewalls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tests_firewalls b/include/tests_firewalls index b4ea4f05..c097e7bc 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -130,17 +130,17 @@ case ${policy} in "ACCEPT") LogText "Result: Found ACCEPT for ${chainname} (table: ${table})" - Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}) policy" --result ${policy} --color YELLOW + Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}, policy ${policy})" --result "ACCEPT" --color YELLOW #ReportSuggestion ${TEST_NO} "Consider settings default chain policy to DROP (iptables chain ${chainname}, table: ${table})" AddHP 1 3 ;; "DROP") LogText "Result: Found DROP for ${chainname} (table: ${table})" - Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}) policy" --result ${policy} --color GREEN + Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}, policy ${policy})" --result "DROP" --color GREEN AddHP 3 3 ;; *) - Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}) policy" --result ${policy} --color YELLOW + Display --indent 6 --text "- Checking chain ${chainname} (table: ${table}, policy ${policy})" --result "other" --color YELLOW LogText "Result: Unknown policy: ${policy}" #ReportSuggestion ${TEST_NO} "Check iptables ${chainname} (table: ${table}) chain policy" ;; -- cgit v1.2.3