mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
Create nat chain during pre-processing of nat action
This commit is contained in:
parent
79cbfd0126
commit
311797e0bf
@ -836,8 +836,10 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
|
|||||||
|
|
||||||
unless ( $inaction3 ) {
|
unless ( $inaction3 ) {
|
||||||
fatal_error "An action may not invoke itself" if $basictarget eq $inaction1;
|
fatal_error "An action may not invoke itself" if $basictarget eq $inaction1;
|
||||||
process_action2( $normalized_target ) if use_action( $normalized_target ) && ! ( $actiontype & BUILTIN );
|
if ( my $ref = use_action( $normalized_target ) ) {
|
||||||
$actiontype = $targets{$basictarget};
|
process_action2( $normalized_target ) unless $actiontype & BUILTIN;
|
||||||
|
ensure_chain( 'nat', $ref->{name} ) if ( $actiontype = $targets{$basictarget} ) & NATRULE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$action = $basictarget; # Remove params, if any, from $action.
|
$action = $basictarget; # Remove params, if any, from $action.
|
||||||
|
Loading…
Reference in New Issue
Block a user