PIX::Object::network - Class for "network" object-groups found in a PIX config.


PIX-Walker documentation  | view source Contained in the PIX-Walker distribution.

Index


NAME

Top

PIX::Object::network - Class for "network" object-groups found in a PIX config.

SYNOPSIS

Top

This is a subclass of PIX::Object that maintains a single object-group as read from a firewall config. You can list and search for elements in the list.

SEE ALSO

Top

PIX::Object

METHODS

Top

add($ip_or_grp, [$mask])

Add a network or nested group to the object-group. If $mask is undef then $ip_or_grp is assumed to be a nested hostgroup name.

list([$raw])

Returns a list of networks from the object group. Normally a plain list of CIDR blocks are returned, however, if $raw is true then a list of array references are returned instead. Each arrayref has: [ first_ip, last_ip, bits ]. The IP's are 32bit integers.

matchip( )

Searches the networks within our group for the IP given. Deligates out to nested groups and maintains the state of the trace.

Returns the name of the of the object-group that matches the IP (which evaluates to true). This is usually called from the PIX::Accesslist::Line object instead of directly.

AUTHOR

Top

Jason Morriss <lifo 101 at - gmail dot com>

BUGS

Top

Please report any bugs or feature requests to bug-pix-walker at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PIX-Walker. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

    perldoc PIX::Walker

    perldoc PIX::Accesslist
    perldoc PIX::Accesslist::Line

    perldoc PIX::Object
    perldoc PIX::Object::network
    perldoc PIX::Object::service
    perldoc PIX::Object::protocol
    perldoc PIX::Object::icmp_type

COPYRIGHT & LICENSE

Top


PIX-Walker documentation  | view source Contained in the PIX-Walker distribution.