From 76aef6cb04e3ad44487d83606366ee823be49a94 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 11 Mar 2017 08:43:04 -0800 Subject: [PATCH] Correct generation of '! --syn' 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 9de4ed8fd..1fe624168 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -4575,7 +4575,7 @@ sub do_proto( $$$;$ ) $output = "${invert}-p ${proto} "; } else { fatal_error '":syn" is only allowed with tcp' unless $proto == TCP && ! $invert; - $output = $notsyn ? "-p $proto ! --syn" : "-p $proto --syn "; + $output = $notsyn ? "-p $proto ! --syn " : "-p $proto --syn "; } fatal_error "SOURCE/DEST PORT(S) not allowed with PROTO !$pname" if $invert && ($ports ne '' || $sports ne '');