A couple of corrections to the IP[6]TABLE transparency change

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-01-04 14:13:58 -08:00
parent c91b78a875
commit e695e08009
2 changed files with 5 additions and 2 deletions

View File

@ -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";
}
#

View File

@ -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 );