3 years agoAdded tests for 'length' match, added print_parse_capabilities(). master
Michael Rash [Fri, 9 Mar 2012 01:38:32 +0000]
Added tests for 'length' match, added print_parse_capabilities().

Added tests for iptables 'length' match.
Added print_parse_capabilities() so that IPTables::Parse keys/regex's can
easily be seen.

3 years agoconsolidated find_ip_rule() tests into rule addition functions
Michael Rash [Thu, 8 Mar 2012 04:23:04 +0000]
consolidated find_ip_rule() tests into rule addition functions

3 years agoDerive iptables rule 'match' keys from IPTables::Parse
Michael Rash [Tue, 6 Mar 2012 03:05:54 +0000]
Derive iptables rule 'match' keys from IPTables::Parse

For IPTables::Parse versions > 1.1, updated IPTables::ChainMgr to derive
iptables 'match' keys to build iptables rules from IPTables::Parse.

3 years agoUpdate to use parse_keys from IPTables::Parse
Michael Rash [Mon, 5 Mar 2012 01:47:06 +0000]
Update to use parse_keys from IPTables::Parse

For IPTables::Parse versions > 1.1, updated IPTables::ChainMgr to derive
extended hash search keys for find_ip_rule() from IPTables::Parse.

3 years agominor variable naming update: href -> hr, and aref -> ar
Michael Rash [Sun, 4 Mar 2012 01:48:16 +0000]
minor variable naming update: href -> hr, and aref -> ar

3 years agoMade append_ip_rule() into a wrapper for add_ip_rule(), state tracking bug fixes
Michael Rash [Sun, 4 Mar 2012 01:45:57 +0000]
Made append_ip_rule() into a wrapper for add_ip_rule(), state tracking bug fixes

- Simplified append_ip_rule() to just be a wrapper around add_ip_rule(),
  which was updated to allow the value "-1" to be passed in as the rule
  insertion number in order to denote "append" (-A <chain>) mode.
- Added "mac_source" tests to t/basic_tests.pl.
- Bug fix to ensure that state tracking arguments are properly processed
  by add_ip_rule().

3 years agobumped version to 1.2 IPTables-ChainMgr-1.2
Michael Rash [Sat, 3 Mar 2012 03:29:10 +0000]
bumped version to 1.2

3 years agoAdded set_chain_policy() function, minor iptables binary name fix
Michael Rash [Sat, 3 Mar 2012 03:26:02 +0000]
Added set_chain_policy() function, minor iptables binary name fix

- Added set_chain_policy() function to allow built-in chain policies to be
  set to the specified target.  iptables/ip6tables does not allow the
  target to be set for non built-in chains.  Behind the scenes this
  function runs the command "iptables -t <table> -P <chain> <target>".
- Minor update to print the iptables binary name in 'croak' error
  conditions.  The binary name is either 'iptables' or 'ip6tables'.
- Minor perldoc updates to render links better (two spaces at the beginning
  of lines).

3 years ago1.1 release IPTables-ChainMgr-1.1
Michael Rash [Wed, 29 Feb 2012 02:32:34 +0000]
1.1 release

3 years ago- Minor bug fix to ensure not to look for 'extended' hash keys in returned
Michael Rash [Wed, 29 Feb 2012 02:18:38 +0000]
- Minor bug fix to ensure not to look for 'extended' hash keys in returned
  IPTables::Parse data without an existence check first.
- Added the ability to specify 'ip6tables' when instantiating an
  IPTables::ChainMgr object via 'new'.
- Updated license to the Artistic license.

3 years agoadded t/basic_tests.pl file to MANIFEST
Michael Rash [Wed, 29 Feb 2012 02:06:30 +0000]
added t/basic_tests.pl file to MANIFEST

3 years agoAdded META.{yml,json} files
Michael Rash [Wed, 29 Feb 2012 02:03:07 +0000]
Added META.{yml,json} files

Added META.{yml,json} files similarly to fixing this bug filed against


3 years agobumped version to 1.0 IPTables-ChainMgr-1.0
Michael Rash [Tue, 28 Feb 2012 02:59:16 +0000]
bumped version to 1.0

3 years agoChanges update for 1.0, minor addition of git links for perldoc material
Michael Rash [Tue, 28 Feb 2012 02:58:24 +0000]
Changes update for 1.0, minor addition of git links for perldoc material

3 years agoAdded 'ctstate' and 'state' keys to extended hashes for find_ip_rule() and add_ip_rule()
Michael Rash [Tue, 28 Feb 2012 02:49:09 +0000]
Added 'ctstate' and 'state' keys to extended hashes for find_ip_rule() and add_ip_rule()

This commit fixes: https://rt.cpan.org/Ticket/Display.html?id=67614

3 years agoBug fix for missing IPTables::Parse dependency
Michael Rash [Mon, 27 Feb 2012 03:21:48 +0000]
Bug fix for missing IPTables::Parse dependency

Applied patch to fix missing IPTables::Parse dependency from the CPAN bug
tracking system here:

3 years agominor addition to include the test suite IPTables-ChainMgr-0.9.9
Michael Rash [Sun, 26 Feb 2012 19:12:00 +0000]
minor addition to include the test suite

3 years agobumped version to 0.9.9
Michael Rash [Sun, 26 Feb 2012 19:11:13 +0000]
bumped version to 0.9.9

3 years agoadded 0.9.9 changes
Michael Rash [Sun, 26 Feb 2012 19:11:06 +0000]
added 0.9.9 changes

3 years agoadded 'extended' tests with tcp/80 and udp/53 rules
Michael Rash [Sun, 26 Feb 2012 19:00:32 +0000]
added 'extended' tests with tcp/80 and udp/53 rules

3 years agoadded material to cover ip6tables perldoc examples
Michael Rash [Sun, 26 Feb 2012 18:59:49 +0000]
added material to cover ip6tables perldoc examples

3 years agoadded rule verification tests, update to catch 'lib' path errors w.r.t. IPTables...
Michael Rash [Sun, 26 Feb 2012 02:28:53 +0000]
added rule verification tests, update to catch 'lib' path errors w.r.t. IPTables::Parse

3 years agobugfix for defined hash test with 'keys', added 'normalize' hash key to find_ip_rule...
Michael Rash [Sun, 26 Feb 2012 02:28:14 +0000]
bugfix for defined hash test with 'keys', added 'normalize' hash key to find_ip_rule() input

3 years agoupdated to handle ip6tables
Michael Rash [Sat, 25 Feb 2012 02:30:04 +0000]
updated to handle ip6tables

3 years agoupdated Makefile.PL to look for NetAddr::IP instead of the old Net::IPv4Addr module
Michael Rash [Sat, 25 Feb 2012 02:28:46 +0000]
updated Makefile.PL to look for NetAddr::IP instead of the old Net::IPv4Addr module

3 years agoadded basic_tests.pl file to cycle through main IPTables::ChainMgr functionality
Michael Rash [Sat, 25 Feb 2012 02:27:40 +0000]
added basic_tests.pl file to cycle through main IPTables::ChainMgr functionality

3 years agoBug fix from Miloslav Trmac for "Use of qw(...) as parentheses is deprecated" warnings
Michael Rash [Sat, 14 Jan 2012 18:27:00 +0000]
Bug fix from Miloslav Trmac for "Use of qw(...) as parentheses is deprecated" warnings

Recent versions of perl - anything after 5.14 - issue warnings for usage of
qw() within specific contexts.  This commit (from Miloslav Trmac) fixes these
warnings as described at the following link:


3 years agominor copyright date update and typo fixes
Michael Rash [Sat, 14 Jan 2012 02:18:51 +0000]
minor copyright date update and typo fixes

3 years agoinitial import
Michael Rash [Sat, 14 Jan 2012 01:54:08 +0000]
initial import