| PIX-Walker documentation | view source | Contained in the PIX-Walker distribution. |
PIX::Accesslist - Accesslist object for use with PIX::Walker
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);
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.
Returns all lines of the ACL. Each line is an PIX::Accesslist::Line object.
Returns the name of the ACL
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
Jason Morriss <lifo 101 at - gmail dot com>
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.
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 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.
| PIX-Walker documentation | view source | Contained in the PIX-Walker distribution. |