diff --git a/build_num b/build_num index e71839929..950a56e38 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 2780 +#define BUILD_NUM 2781 diff --git a/src/iptlib/PolicyCompiler_ipt.cpp b/src/iptlib/PolicyCompiler_ipt.cpp index e25d8fc51..6647e0570 100644 --- a/src/iptlib/PolicyCompiler_ipt.cpp +++ b/src/iptlib/PolicyCompiler_ipt.cpp @@ -3570,19 +3570,6 @@ bool PolicyCompiler_ipt::fillActionOnReject::processNext() return true; } -bool PolicyCompiler_ipt::expandGroupsInSrv::processNext() -{ - PolicyRule *rule=getNext(); if (rule==NULL) return false; - - RuleElementSrv *srv= rule->getSrv(); - - compiler->expandGroupsInRuleElement(srv); - - tmp_queue.push_back(rule); - return true; -} - - bool PolicyCompiler_ipt::splitRuleIfSrvAnyActionReject::processNext() { PolicyCompiler_ipt *ipt_comp=dynamic_cast(compiler); @@ -4259,6 +4246,7 @@ void PolicyCompiler_ipt::compile() add( new Logging1("check global logging override option")); + add( new expandGroupsInItf("expand groups in Interface" )); add( new replaceClusterInterfaceInItf( "replace cluster interfaces with member interfaces in the Interface rule element")); add( new singleItfNegation("negation in Itf if it holds single object")); diff --git a/src/iptlib/PolicyCompiler_ipt.h b/src/iptlib/PolicyCompiler_ipt.h index efe1f67d3..7faedfc47 100644 --- a/src/iptlib/PolicyCompiler_ipt.h +++ b/src/iptlib/PolicyCompiler_ipt.h @@ -699,12 +699,6 @@ protected: */ DECLARE_POLICY_RULE_PROCESSOR(checkUserServiceInWrongChains); - - /** - * expand groups in Srv - */ - DECLARE_POLICY_RULE_PROCESSOR(expandGroupsInSrv); - /** * split a rule if action Reject is used in a rule with * Service 'any' and rule options do not specify what should diff --git a/test/ipt/cluster-tests.fwb b/test/ipt/cluster-tests.fwb index 590025461..f6884c6b9 100644 --- a/test/ipt/cluster-tests.fwb +++ b/test/ipt/cluster-tests.fwb @@ -1,6 +1,6 @@ - + @@ -1234,7 +1234,7 @@ - + @@ -1405,7 +1405,165 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1423,7 +1581,7 @@ - + @@ -1441,7 +1599,7 @@ - + @@ -1459,7 +1617,7 @@ - + @@ -1477,7 +1635,7 @@ - + @@ -1515,7 +1673,7 @@ - + @@ -5010,7 +5168,12 @@ - + + + + + +