diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 655aa45f4..6bc8d5c81 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -293,8 +293,6 @@ sub process_actions1() { next; } - $targets{$action} = ACTION; - fatal_error "Invalid Action Name ($action)" unless "\L$action" =~ /^[a-z]\w*$/; new_action $action; @@ -335,6 +333,8 @@ sub process_actions1() { } pop_open; + + $targets{$action} = ACTION; } } }