forked from extern/shorewall_code
Correct generation of '! --syn'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4c72b3ee58
commit
76aef6cb04
@ -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 '');
|
||||
|
Loading…
Reference in New Issue
Block a user