Correct state actions.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-03 17:21:51 -08:00
parent 30d96afb69
commit c5dc69b750
4 changed files with 6 additions and 3 deletions

View File

@ -36,10 +36,11 @@ DEFAULTS ACCEPT
use Shorewall::IPAddrs;
use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules;
my ( $action ) = get_action_params( 1 );
if ( my $state = check_state( 'ESTABLISHED' ) ) {
if ( my $check = check_state( 'ESTABLISHED' ) ) {
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} ESTABLISHED" : '' );
}

View File

@ -36,6 +36,7 @@ DEFAULTS ACCEPT
use Shorewall::IPAddrs;
use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules;
my ( $action ) = get_action_params( 1 );

View File

@ -37,10 +37,11 @@ use strict;
use Shorewall::IPAddrs;
use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules;
my ( $action ) = get_action_params( 1 );
if ( my $state = check_state( 'RELATED' ) ) {
if ( my $check = check_state( 'RELATED' ) ) {
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} RELATED" : '' );
}

View File

@ -36,7 +36,7 @@ DEFAULTS DROP,-
use Shorewall::IPAddrs;
use Shorewall::Config;
use Shorewall::Chains;
use Shorewall::Rules qw( process_rule1 );
use Shorewall::Rules;
my ( $action ) = get_action_params( 1 );