mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-14 16:59:29 +01:00
Fix invalid policy match with vserver zone.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
364cddf99b
commit
261af19b4e
@ -2558,6 +2558,10 @@ sub match_ipsec_in( $$ ) {
|
||||
|
||||
unless ( $optionsref->{super} ) {
|
||||
$match = '-m policy --dir in --pol ';
|
||||
|
||||
if ( $zoneref->{type} eq 'vserver' ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( $zoneref->{type} eq 'ipsec' ) {
|
||||
$match .= "ipsec $optionsref->{in_out}{ipsec}$optionsref->{in}{ipsec}";
|
||||
@ -2583,6 +2587,10 @@ sub match_ipsec_out( $$ ) {
|
||||
unless ( $optionsref->{super} ) {
|
||||
$match = '-m policy --dir out --pol ';
|
||||
|
||||
if ( $zoneref->{type} eq 'vserver' ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( $zoneref->{type} eq 'ipsec' ) {
|
||||
$match .= "ipsec $optionsref->{in_out}{ipsec}$optionsref->{out}{ipsec}";
|
||||
} elsif ( have_ipsec ) {
|
||||
|
Loading…
Reference in New Issue
Block a user