mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-29 00:49:34 +01:00
Catch invalid policies
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6477 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b591068603
commit
5b11cc9e6e
@ -185,6 +185,13 @@ sub validate_policy()
|
|||||||
if ( $zones{$client}{type} eq 'firewall' ) || ( $zones{$server}{type} eq 'firewall' );
|
if ( $zones{$client}{type} eq 'firewall' ) || ( $zones{$server}{type} eq 'firewall' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless ( $clientwild || $serverwild ) {
|
||||||
|
if ( $zones{$server}{type} eq 'bport4' ) {
|
||||||
|
fatal_error "Invalid policy - DEST zone is a Bridge Port zone but the SOURCE zone is not associated with the same bridge"
|
||||||
|
unless $zones{$client}{bridge} eq $zones{$server}{bridge};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my $chain = "${client}2${server}";
|
my $chain = "${client}2${server}";
|
||||||
my $chainref;
|
my $chainref;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user