Jason Morriss > PIX-Walker-1.10 > PIX::Accesslist

Download:
PIX-Walker-1.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.10   Source  

NAME ^

PIX::Accesslist - Accesslist object for use with PIX::Walker

SYNOPSIS ^

PIX::Accesslist is used by PIX::Walker to hold an ACL from a PIX firewall. This allows you to programmatically step through an ACL and match lines to certain criteria.

See PIX::Walker for an example.

  $acl = new PIX::Accesslist($name, $acl_conf, $walker);                        

METHODS ^

elements( )

Returns the total elements (ACE) in the access-list. Note: It's not wise to call this over and over again. Store the result in a variable and use that variable if you need to use this result in multiple places.

lines( )

Returns all lines of the ACL. Each line is an PIX::Accesslist::Line object.

name( )

Returns the name of the ACL

print([$any])

Pretty prints the ACL. Tries to make it easy to read. If object-group's are used the names are printed instead of IP's if more than a single IP is present for a line.

$any is an optional string that will be used for any IP that represents 'ANY', defaults to: 0.0.0.0/0. It's useful to change this to 'ANY' to make the output easier to read.

  1)  permit (tcp)   192.168.0.0/24 -> 0.0.0.0/0 [Web_Services_tcp: 80,443]
  10) deny   (ip)    0.0.0.0/0 -> 0.0.0.0/0

AUTHOR ^

Jason Morriss <lifo 101 at - gmail dot com>

BUGS ^

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 ^

    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 ^

Copyright 2006-2008 Jason Morriss, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.