mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Allow NFLOG as a target
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9dac330756
commit
a07cfb0885
@ -1714,6 +1714,16 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$$$ ) {
|
||||
( $basictarget, $actiontype , $param ) = map_old_actions( $basictarget ) unless $actiontype || $param;
|
||||
}
|
||||
|
||||
unless ( $actiontype ) {
|
||||
if ( $action =~ /^NFLOG\(?/ ) {
|
||||
$basictarget = 'LOG';
|
||||
$actiontype = $targets{LOG};
|
||||
fatal_error "Invalid NFLOG action($action:$loglevel)" if $loglevel;
|
||||
$loglevel = supplied $param ? "NFLOG($param)" : 'NFLOG';
|
||||
$param = '';
|
||||
}
|
||||
}
|
||||
|
||||
fatal_error "Unknown ACTION ($action)" unless $actiontype;
|
||||
|
||||
if ( $actiontype == MACRO ) {
|
||||
|
Loading…
Reference in New Issue
Block a user