View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Trystan Johnson > Farly-0.12 > Farly::Rules

Download:
Farly-0.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.12   Source  

NAME ^

Farly::Rules - - Deprecated - is now Farly::Rule::Expander

DESCRIPTION ^

Farly::Rules converts a firewall rule configuration into a raw rule set. The raw ruleset is an Object::KVC::List<Object::KVC::Hash> containing all firewall rules.

A raw rule set has no references to other firewall objects. The expanded firewall rule is for specific packet to firewall rule matching.

METHODS ^

new( $list )

The constructor. The firewall configuration is provided.

  $rule_expander = Farly::Rules->new( <Object::KVC::List> );

expand_all()

Returns an Object::KVC::List<Object::KVC::Hash> container of all raw expanded firewall rules in the current Farly firewall model.

  $expanded_ruleset = $rule_expander->expand_all();

expand( $rule<Object::KVC::Hash>, $result<Object::KVC::List|Object::KVC::Set>)

Returns the expanded version of the given firewall rule in the provided result container.

  $expanded_rule = $rule_expander->expand( $rule );

COPYRIGHT AND LICENCE ^

Farly::Rules Copyright (C) 2012 Trystan Johnson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

syntax highlighting: