forked from extern/shorewall_code
Disallow DEFAULTS in the rules file
This commit is contained in:
parent
d51ca478bd
commit
ece598288f
@ -2373,6 +2373,15 @@ sub process_rule ( ) {
|
||||
#
|
||||
process_section( 'NEW' ) unless $section;
|
||||
|
||||
if ( $target eq 'DEFAULTS' ) {
|
||||
if ( @actionstack ) {
|
||||
default_action_params( split_list $source, 'defaults' );
|
||||
next;
|
||||
}
|
||||
|
||||
fatal_error "DEFAULTS is only allowed in an ACTION file";
|
||||
}
|
||||
|
||||
if ( $source =~ /^none(:.*)?$/i || $dest =~ /^none(:.*)?$/i ) {
|
||||
progress_message "Rule \"$currentline\" ignored.";
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user