IPTables::Log - Parse iptables/netfilter syslog messages.
use IPTables::Log; my $l = IPTables::Log->new; my $s = $l->create_set; my $r = $s->create_record({text => '...IN=eth0 OUT=eth1 MAC=00:...'}); $r->parse; $s->add($r);
Carp - for error generation
Class::Accessor - for accessor methods
Data::GUID - for GUID generation
NetAddr::IP - for the src and dst methods
src
dst
Creates a new IPTables::Log object.
IPTables::Log
Creates a new IPTables::Log::Set object.
IPTables::Log::Set
Setting no_header to 1 makes IPTables::Log::Set::Record assume that the timestamp and hostname at the beginning of the message is missing (for example, if it's already been processed by another utility).
See IPTables::Log::Set and IPTables::Log::Set::Record for further details.
It parses log entries. It doesn't do much else, yet.
None that I'm aware of ;-)
This module was written by Andy Smith <andy.smith@netprojects.org.uk>.
$Id: Log.pm 21 2010-12-17 21:07:37Z andys $
(c)2009 Andy Smith (http://andys.org.uk/)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install IPTables::Log, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPTables::Log
CPAN shell
perl -MCPAN -e shell install IPTables::Log
For more information on module installation, please visit the detailed CPAN module installation guide.