diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-09-05 14:29:21 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-09-05 14:29:21 +0300 |
commit | 77400d3952539ab3b1b5923ff942837b78812735 (patch) | |
tree | edbd0f2d9befc2b0b1b3fd301b36fbb595adae4e | |
parent | 30c58dd1ed7ee7fc3fc348cb78b93ace792c016c (diff) |
Improve logging
-rw-r--r-- | include/tests_firewalls | 6 |
1 files 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" ;; |