From 8c0c1bd1e0a43c704f3bb90c1fa41ee883e9b645 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 2 Nov 2014 08:16:47 -0800 Subject: [PATCH] Omit the 'shorewall' chain from .ip[6]tables-restore-input Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index f0822045f..c3cc5040a 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7914,7 +7914,7 @@ sub save_dynamic_chains() { push_indent; emit( 'if [ -n "$g_counters" ]; then' , - " ${tool}-save --counters > \${VARDIR}/.${utility}-input", + " ${tool}-save --counters | grep -vE '[ :]shorewall ' > \${VARDIR}/.${utility}-input", "fi\n" );