forked from extern/shorewall_code
Improve interface BROADCAST handling
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6059 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
abe8ce238d
commit
ea0a8d09d1
@ -208,7 +208,14 @@ sub validate_interfaces_file()
|
|||||||
$interfaces{$interface}{root} = $interface;
|
$interfaces{$interface}{root} = $interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
warning_message 'Shorewall no longer uses broadcast addresses in rule generation:' . $networks if $networks && $networks ne 'detect';
|
unless ( $networks eq '' || $networks eq 'detect' ) {
|
||||||
|
|
||||||
|
for my $address ( split /,/, $networks ) {
|
||||||
|
fatal_error 'Invalid BROADCAST address' unless $address =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/;
|
||||||
|
}
|
||||||
|
|
||||||
|
warning_message 'Shorewall no longer uses broadcast addresses in rule generation';
|
||||||
|
}
|
||||||
|
|
||||||
my $optionsref = {};
|
my $optionsref = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user