forked from extern/shorewall_code
Don't allow MAC addresses in the accounting file
This commit is contained in:
parent
e397a4dce8
commit
2a0a64710f
@ -149,7 +149,11 @@ sub process_accounting_rule( ) {
|
|||||||
|
|
||||||
my $restriction = NO_RESTRICT;
|
my $restriction = NO_RESTRICT;
|
||||||
|
|
||||||
$source = ALLIP if $source eq 'any' || $source eq 'all';
|
if ( $source eq 'any' || $source eq 'all' ) {
|
||||||
|
$source = ALLIP;
|
||||||
|
} else {
|
||||||
|
fatal_error "MAC addresses are not allowed in the accounting file" if $source =~ /~/;
|
||||||
|
}
|
||||||
|
|
||||||
if ( have_bridges ) {
|
if ( have_bridges ) {
|
||||||
my $fw = firewall_zone;
|
my $fw = firewall_zone;
|
||||||
|
Loading…
Reference in New Issue
Block a user