forked from extern/shorewall_code
Prevent 'nat' and 'mangle' being specified together
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c92ebc3908
commit
ab496987e0
@ -2258,7 +2258,11 @@ sub process_actions() {
|
||||
fatal_error "The 'raw' table may not be specified for non-builtin actions" if $opts & RAW_OPT;
|
||||
|
||||
$type |= MANGLE_TABLE if $opts & MANGLE_OPT;
|
||||
$type |= NAT_TABLE if $opts & NAT_OPT;
|
||||
|
||||
if ( $opts & NAT_OPT ) {
|
||||
fatal_error q(The 'mangle' and 'nat' options are mutually exclusive) if $opts & MANGLE_OPT;
|
||||
$type |= NAT_TABLE;
|
||||
}
|
||||
|
||||
my $actionfile = find_file( "action.$action" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user