mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Merge branch '4.5.9'
This commit is contained in:
commit
57e913d86e
14
Shorewall/Macros/macro.NFLOG
Normal file
14
Shorewall/Macros/macro.NFLOG
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Shorewall version 4 - NFLOG Macro
|
||||
#
|
||||
# /usr/share/shorewall/macro.NFLOG
|
||||
#
|
||||
# This macro handles the NFLOG Target.
|
||||
#
|
||||
###############################################################################
|
||||
#ACTION SOURCE DEST PROTO DEST SOURCE RATE USER/
|
||||
# PORT(S) PORT(S) LIMIT GROUP
|
||||
|
||||
FORMAT 2
|
||||
DEFAULT 0
|
||||
LOG&
|
@ -1588,6 +1588,11 @@ sub process_macro ( $$$$$$$$$$$$$$$$$$$) {
|
||||
$mtarget = substitute_param $param, $mtarget;
|
||||
}
|
||||
|
||||
if ( $mtarget =~ s/&$// ) {
|
||||
fatal_error "$mtarget& requires a parameter to be supplied in macro invocation" unless $param ne '';
|
||||
$mtarget = "$mtarget:$macro($param)";
|
||||
}
|
||||
|
||||
my $action = isolate_basic_target $mtarget;
|
||||
|
||||
fatal_error "Invalid or missing ACTION ($mtarget)" unless defined $action;
|
||||
|
Loading…
Reference in New Issue
Block a user