NAME
Parser::IPTables::Save - The great new Parser::IPTables::Save!
VERSION
Version 0.01
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
use Parser::IPTables::Save;
my $iptables_save = Parser::IPTables::Save->new('/tmp/iptables.out');
$iptables_save->table('filter');
$iptables_save->create({ chain => 'POSTROUTING', source => '192.168.1.0/24', target => 'MASQUERADE', comment => 'Rule to masquerade' });
$iptables_save->move(3, -1);
$iptables_save->delete(8);
$iptables_save->delete(9);
my @rules = $iptables_save->fetch_rules();
$iptables_save->disable(10);
$iptables_save->enable(10);
$teste->save();
METHODS
create
create a rule
delete
delete a rule
disable
disable a rule
enable
enable a rule
new
table
fetch_rules
DESTROY
move
Move rules
save
AUTHOR
Geovanny Junio, <geovannyjs at gmail.com>
BUGS
Please report any bugs or feature requests to bug-parser-iptables-save at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parser-IPTables-Save. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Parser::IPTables::Save
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Parser-IPTables-Save
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2010 Geovanny Junio.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.