forked from extern/shorewall_code
A couple of corrections to the IP[6]TABLE transparency change
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c91b78a875
commit
e695e08009
@ -7491,7 +7491,7 @@ sub expand_rule( $$$$$$$$$$$$;$ )
|
||||
$loglevel = validate_level( $loglevel );
|
||||
$logtag = '' unless defined $logtag;
|
||||
}
|
||||
} elsif ( $disposition eq 'LOG' ) {
|
||||
} elsif ( $disposition eq 'LOG' && ! $usergenerated ) {
|
||||
fatal_error "LOG requires a level";
|
||||
}
|
||||
#
|
||||
|
@ -2212,7 +2212,10 @@ sub split_line2( $$;$$$ ) {
|
||||
$pairs = '';
|
||||
}
|
||||
|
||||
fatal_error "Shorewall Configuration file entries may not contain double quotes, single back quotes or backslashes" if $columns =~ /["`\\]/;
|
||||
unless ( $currline =~ /^\s*IP6?TABLES\(.*\)/ ) {
|
||||
fatal_error "Shorewall Configuration file entries may not contain double quotes, single back quotes or backslashes" if $columns =~ /["`\\]/;
|
||||
}
|
||||
|
||||
fatal_error "Non-ASCII gunk in file" if $columns =~ /[^\s[:print:]]/;
|
||||
|
||||
my @line = split_columns( $columns );
|
||||
|
Loading…
Reference in New Issue
Block a user