mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 14:48:51 +01:00
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} ";
|
$output = "${invert}-p ${proto} ";
|
||||||
} else {
|
} else {
|
||||||
fatal_error '":syn" is only allowed with tcp' unless $proto == TCP && ! $invert;
|
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 '');
|
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