From 45faba0b7ca99a88f620b26a0f99c135903b45e6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 18 Dec 2010 16:29:29 -0800 Subject: [PATCH] Enable parameters for actions --- Shorewall/Perl/Shorewall/Rules.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 46fc2eed8..f9c958ce8 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -820,6 +820,8 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) { } elsif ( $actiontype & SET ) { require_capability( 'IPSET_MATCH', 'SET and UNSET rules', '' ); fatal_error "$action rules require a set name parameter" unless $param; + } elsif ( $actiontype & ACTION ) { + split_list $param, 'Action parameter'; } else { fatal_error "The $basictarget TARGET does not accept a parameter" unless $param eq ''; }