mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-16 10:38:26 +01:00
Final cut + 1 at bridge/detectnets
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6726 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
bebaec1edc
commit
972561eb71
@ -1655,11 +1655,14 @@ sub generate_matrix() {
|
||||
#
|
||||
no warnings;
|
||||
next ZONE1 if ( $num_ifaces = %{$zoneref->{interfaces}} ) < 2 && ! ( $zoneref->{options}{in_out}{routeback} || @$exclusions );
|
||||
while ( my ($interface, $sourceref) = ( each %needbroadcast ) ) {
|
||||
use warnings;
|
||||
|
||||
if ( get_interface_option( $interface, 'bridge' ) ) {
|
||||
for my $source ( keys %$sourceref ) {
|
||||
add_rule $filter_table->{forward_chain $interface} , "-o $interface ${source}-m addrtype --dst-type BROADCAST -j $chain3" if $chain3;
|
||||
if ( $chain3 ) {
|
||||
while ( my ($interface, $sourceref) = ( each %needbroadcast ) ) {
|
||||
if ( get_interface_option( $interface, 'bridge' ) ) {
|
||||
for my $source ( keys %$sourceref ) {
|
||||
add_rule $filter_table->{forward_chain $interface} , "-o $interface ${source}-m addrtype --dst-type BROADCAST -j $chain3";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user