mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Don't lookup standard target if target is an action, macro, or chain
This commit is contained in:
parent
97672455b2
commit
14c4bd99aa
@ -44,7 +44,7 @@ our @EXPORT = qw(
|
||||
);
|
||||
|
||||
our @EXPORT_OK = qw( initialize );
|
||||
our $VERSION = '4.4_16';
|
||||
our $VERSION = '4.4_17';
|
||||
|
||||
our %macros;
|
||||
|
||||
@ -1020,6 +1020,7 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$ ) {
|
||||
#
|
||||
my $log_action = $action;
|
||||
|
||||
unless ( $actiontype & ( ACTION | MACRO | NFQ | CHAIN ) ) {
|
||||
if ( my $shorewall_target = lookup_shorewall_action( $basictarget ) ) {
|
||||
if ( $shorewall_target == TGT_REDIRECT ) {
|
||||
my $z = $actiontype & NATONLY ? '' : firewall_zone;
|
||||
@ -1048,6 +1049,7 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$ ) {
|
||||
$action = join( ' ', 'SET --' . $xlate{$basictarget} , $setname , $flags );
|
||||
}
|
||||
}
|
||||
}
|
||||
#
|
||||
# Isolate and validate source and destination zones
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user