From b04b65cac82c5218af31a0fc3d3781577275eff4 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 30 Nov 2017 14:31:59 -0800 Subject: [PATCH] Clear counters in all tables during 'reset' Signed-off-by: Tom Eastep --- Shorewall/Perl/prog.footer | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index b06263244..eae37aec9 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -268,8 +268,10 @@ case "$COMMAND" in error_message "$g_product is not running" status=2 elif [ $# -eq 1 ]; then - $g_tool -Z - $g_tool -t mangle -Z + for table in raw mangle nat filter; do + qt $g_tool -t $table -Z + done + date > ${VARDIR}/restarted status=0 progress_message3 "$g_product Counters Reset"