On Sun, Sep 01, 2019 at 09:01:39PM +0200, Nicolas Boullis wrote:
>
> The corresponding (fairly trivial) patch is attached.
Here it is.
Cheers,
--
Nicolas
--- /usr/share/shorewall/Shorewall/Raw.pm.distrib 2015-02-28 23:12:55.000000000 +0100
+++ /usr/share/shorewall/Shorewall/Raw.pm 2019-09-01 20:09:32.000000000 +0200
@@ -113,7 +113,7 @@
$action = $1;
$disposition = $1;
}
- } elsif ( $action =~ /^IP(6)?TABLES\((.+)\)(:(.*))$/ ) {
+ } elsif ( $action =~ /^IP(6)?TABLES\((.+)\)(:(.*))?$/ ) {
if ( $family == F_IPV4 ) {
fatal_error 'Invalid conntrack ACTION (IP6TABLES)' if $1;
} else {
@@ -125,7 +125,7 @@
fatal_error "Unknown target ($tgt)" unless $target_type;
fatal_error "The $tgt TARGET is not allowed in the raw table" unless $target_type & RAW_TABLE;
$disposition = $tgt;
- $action = 2;
+ $action = $2;
validate_level( $level = $3 ) if supplied $3;
} else {
( $disposition, my ( $option, $args ), $level ) = split ':', $action, 4;
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users