NAME

IPTables::Log - Parse iptables/netfilter syslog messages.

SYNOPSIS

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);

DEPENDENCIES

  • Carp - for error generation

  • Class::Accessor - for accessor methods

  • Data::GUID - for GUID generation

  • NetAddr::IP - for the src and dst methods

CONSTRUCTORS

Log->new

Creates a new IPTables::Log object.

METHODS

$log->create_set

Creates a new IPTables::Log::Set object.

See IPTables::Log::Set and IPTables::Log::Set::Record for further details.

CAVEATS

It parses log entries. It doesn't do much else, yet.

BUGS

None that I'm aware of ;-)

AUTHOR

This module was written by Andy Smith <andy.smith@netprojects.org.uk>.

COPYRIGHT

$Id: Log.pm 13 2009-10-15 08:52:18Z 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.