]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
puppet-modules/puppetlabs-firewall.git
11 years agoRevert "Merge pull request #342 from mcanevet/feature/autorequire"
Hunter Haugen [Thu, 15 May 2014 19:22:48 +0000 (15:22 -0400)]
Revert "Merge pull request #342 from mcanevet/feature/autorequire"

This reverts commit e5cbfbed5b411484ad04a5413090ad1d475be9fb, reversing
changes made to eb2e51f338516f3b47087543bb7a1ae1394ac4fb.

Conflicts:
README.markdown

11 years agoMerge pull request #343 from skurylo/update_docs
Ashley Penney [Thu, 15 May 2014 17:56:20 +0000 (13:56 -0400)]
Merge pull request #343 from skurylo/update_docs

Update CONTRIBUTING and README

11 years agoMerge pull request #358 from sylvainkalache/master
Ashley Penney [Thu, 15 May 2014 17:48:54 +0000 (13:48 -0400)]
Merge pull request #358 from sylvainkalache/master

Update README.markdown

11 years agoUpdate README.markdown
Sylvain Kalache [Tue, 13 May 2014 23:16:47 +0000 (16:16 -0700)]
Update README.markdown

11 years agoMerge pull request #357 from apenney/110-release 1.1.0
Ashley Penney [Tue, 13 May 2014 17:00:43 +0000 (13:00 -0400)]
Merge pull request #357 from apenney/110-release

Prepare 1.1.0 release.

11 years agoPrepare 1.1.0 release.
Ashley Penney [Tue, 13 May 2014 16:27:15 +0000 (12:27 -0400)]
Prepare 1.1.0 release.

11 years agoMerge pull request #342 from mcanevet/feature/autorequire
Hunter Haugen [Wed, 7 May 2014 16:24:05 +0000 (09:24 -0700)]
Merge pull request #342 from mcanevet/feature/autorequire

Apply firewall resources alphabetically

11 years agoMerge pull request #354 from hunner/fix_helper
Hunter Haugen [Tue, 6 May 2014 22:55:03 +0000 (15:55 -0700)]
Merge pull request #354 from hunner/fix_helper

Fix access to distmoduledir

11 years agoFix access to distmoduledir
Hunter Haugen [Tue, 6 May 2014 22:54:29 +0000 (15:54 -0700)]
Fix access to distmoduledir

11 years agoMerge pull request #353 from apenney/fix-14.04-tests
Hunter Haugen [Tue, 6 May 2014 18:22:24 +0000 (11:22 -0700)]
Merge pull request #353 from apenney/fix-14.04-tests

Fix 14.04 tests

11 years agoFix the tests to account for the changes in Ubuntu 14.04.
Ashley Penney [Mon, 5 May 2014 19:31:46 +0000 (21:31 +0200)]
Fix the tests to account for the changes in Ubuntu 14.04.

11 years agoAdd `mask` as a parameter.
Ashley Penney [Mon, 5 May 2014 19:31:15 +0000 (21:31 +0200)]
Add `mask` as a parameter.

This is only used for the recent module and seems to be relatively
new as it doesn't seem to exist prior to 14.04.

11 years agoMerge pull request #350 from xbezdick/master
Hunter Haugen [Tue, 29 Apr 2014 17:01:33 +0000 (10:01 -0700)]
Merge pull request #350 from xbezdick/master

Fix support for Fedora Rawhide

11 years agoFix support for Fedora Rawhide
Lukas Bezdicka [Mon, 28 Apr 2014 10:31:56 +0000 (12:31 +0200)]
Fix support for Fedora Rawhide

On Fedora facter $::operatingsystemrelease can be integer version of Fedora or string Rawhide.

11 years agoUpdate README
Mickaël Canévet [Thu, 24 Apr 2014 08:13:25 +0000 (10:13 +0200)]
Update README

11 years agoMerge pull request #344 from csschwe/add_connection_limit
Ashley Penney [Tue, 22 Apr 2014 21:50:09 +0000 (17:50 -0400)]
Merge pull request #344 from csschwe/add_connection_limit

(MODULES-689) Add support for connlimit and connmark

11 years ago(MODULES-689) connlimit and connmark acceptance tests
Chuck Schweizer [Thu, 17 Apr 2014 03:49:47 +0000 (22:49 -0500)]
(MODULES-689) connlimit and connmark acceptance tests

11 years ago(MODULES-689) Add support for connlimit and connmark
Chuck Schweizer [Thu, 17 Apr 2014 00:33:30 +0000 (19:33 -0500)]
(MODULES-689) Add support for connlimit and connmark

11 years ago(doc) Update link to JIRA
Steven Kurylo [Wed, 16 Apr 2014 18:23:10 +0000 (11:23 -0700)]
(doc) Update link to JIRA

Issue tracking has been moved from github to JIRA.

11 years ago(doc) Update links for modules
Steven Kurylo [Wed, 16 Apr 2014 18:11:58 +0000 (11:11 -0700)]
(doc) Update links for modules

For modules, the JIRA project is MODULES not PUP.
Link to the module contributing guide, instead of core puppet

11 years ago(doc) Sync latest CONTRIBUTING.md
Steven Kurylo [Wed, 16 Apr 2014 18:06:36 +0000 (11:06 -0700)]
(doc) Sync latest CONTRIBUTING.md

This is the latest CONTRIBUTING.md from
https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md

The old version has out of date links.

11 years agoApply firewall resources alphabetically
Mickaël Canévet [Mon, 14 Apr 2014 13:58:31 +0000 (15:58 +0200)]
Apply firewall resources alphabetically

11 years agoMerge pull request #341 from jeckersb/rhel7-spec-fix
Ashley Penney [Tue, 15 Apr 2014 13:52:07 +0000 (09:52 -0400)]
Merge pull request #341 from jeckersb/rhel7-spec-fix

Fix failing persist_iptables test on RHEL7 and Fedora

11 years agospec: Use appropriate operatingsystemrelease for RedHat/CentOS/Fedora
John Eckersberg [Fri, 4 Apr 2014 15:58:50 +0000 (11:58 -0400)]
spec: Use appropriate operatingsystemrelease for RedHat/CentOS/Fedora

11 years agoFix failing persist_iptables test on RHEL7 and Fedora
John Eckersberg [Fri, 4 Apr 2014 15:14:27 +0000 (11:14 -0400)]
Fix failing persist_iptables test on RHEL7 and Fedora

11 years agoMerge pull request #338 from larsks/master
Ashley Penney [Thu, 3 Apr 2014 17:29:17 +0000 (13:29 -0400)]
Merge pull request #338 from larsks/master

Treat RHEL 7 and later like Fedora w/r/t iptables

11 years agoMerge pull request #339 from cure/master
Ashley Penney [Thu, 3 Apr 2014 17:27:08 +0000 (13:27 -0400)]
Merge pull request #339 from cure/master

Fix typo in SNAT error message

11 years agoMerge pull request #340 from simon-martin/master
Ashley Penney [Thu, 3 Apr 2014 17:26:48 +0000 (13:26 -0400)]
Merge pull request #340 from simon-martin/master

--reap flag is not added to iptables command

11 years agoIn lib/puppet/provider/firewall/iptables.rb we test on boolean flags when building...
Simon Martin [Thu, 3 Apr 2014 09:33:09 +0000 (10:33 +0100)]
In lib/puppet/provider/firewall/iptables.rb we test on boolean flags when building iptables args:

        # If socket is true then do not add the value as -m socket is standalone
        if known_booleans.include?(res) then
          if resource[res] == :true then
            resource_value = nil
          else
            # If the property is not :true then we don't want to add the value
            # to the args list
            next
          end
        end

This evaluates to false on the reap flag in a definition like this:
    firewall { '001 rate limit ssh attempts':
        port   => [22],
        proto  => tcp,
        tcp_flags => "FIN,SYN,RST,ACK SYN",
        recent => 'rcheck',
        rsource => true,
        rname => 'ssh-syn4',
        rseconds => 30,
        rhitcount => 3,
        reap => true,
        jump => drop,
    }

This is because the value is not defined as a string, so the reap flag is not added to the args. This patch defines reap as a string true or false to match others like rsource.

11 years agoUpdate firewall.rb
Ward Vandewege [Mon, 31 Mar 2014 02:17:11 +0000 (22:17 -0400)]
Update firewall.rb

SNAT: typo in error message when tosource parameter is missing.

11 years agofix errors noted by travis-ci
Lars Kellogg-Stedman [Wed, 26 Mar 2014 13:15:11 +0000 (09:15 -0400)]
fix errors noted by travis-ci

I like explicitly quoted strings, but apparently Travis doesn't.

11 years agocorrect spelling of "&&" to "and"
Lars Kellogg-Stedman [Tue, 25 Mar 2014 21:58:16 +0000 (17:58 -0400)]
correct spelling of "&&" to "and"

11 years agoTreat RHEL 7 and later like Fedora w/r/t iptables
Lars Kellogg-Stedman [Tue, 25 Mar 2014 19:50:10 +0000 (15:50 -0400)]
Treat RHEL 7 and later like Fedora w/r/t iptables

RHEL 7 replaces legacy init with systemd, and must be treated like
Fedora w/r/t iptables persistence.  This patches checks
operatingsystemrelease in addition to operatingsystem in order
to differentiate between RHEL 7 and earlier releases.

Both RHEL 7 and recent Fedora releases require the iptables-services
package to support the commands in lib/puppet/util/firewall.rb.

This also corrects the path to /usr/libexec/iptables/iptables.init.

11 years agoMerge branch '1.0.x'
Hunter Haugen [Tue, 4 Mar 2014 21:57:39 +0000 (13:57 -0800)]
Merge branch '1.0.x'

11 years agoMerge remote-tracking branch 'apenney/102-release' into 1.0.x 1.0.x 1.0.2
Hunter Haugen [Tue, 4 Mar 2014 16:38:35 +0000 (08:38 -0800)]
Merge remote-tracking branch 'apenney/102-release' into 1.0.x

11 years agoInclude a metadata bump to 1.0.2 here.
Ashley Penney [Tue, 4 Mar 2014 16:36:25 +0000 (16:36 +0000)]
Include a metadata bump to 1.0.2 here.

11 years agoMerge pull request #332 from apenney/102-release
Hunter Haugen [Tue, 4 Mar 2014 16:35:01 +0000 (08:35 -0800)]
Merge pull request #332 from apenney/102-release

Prepare a 1.0.2 supported release.

11 years agoPrepare a 1.0.2 supported release.
Ashley Penney [Tue, 4 Mar 2014 16:32:12 +0000 (16:32 +0000)]
Prepare a 1.0.2 supported release.

11 years agoMerge pull request #331 from apenney/symlink-fix
Hunter Haugen [Tue, 4 Mar 2014 16:27:40 +0000 (08:27 -0800)]
Merge pull request #331 from apenney/symlink-fix

Replace the symlink with the actual file to resolve a PMT issue.

11 years agoReplace the symlink with the actual file to resolve a PMT issue.
Ashley Penney [Tue, 4 Mar 2014 16:23:25 +0000 (16:23 +0000)]
Replace the symlink with the actual file to resolve a PMT issue.

11 years agoMerge pull request #330 from apenney/last-minute-metadata-fix 1.0.1
Hunter Haugen [Mon, 3 Mar 2014 21:59:30 +0000 (13:59 -0800)]
Merge pull request #330 from apenney/last-minute-metadata-fix

Add missing files back to work around a Puppet bug.

11 years agoAdd missing files back to work around a Puppet bug.
Ashley Penney [Mon, 3 Mar 2014 21:48:54 +0000 (21:48 +0000)]
Add missing files back to work around a Puppet bug.

11 years agoMerge pull request #329 from apenney/supported-101
Hunter Haugen [Mon, 3 Mar 2014 20:02:02 +0000 (12:02 -0800)]
Merge pull request #329 from apenney/supported-101

Prepare supported module 1.0.1 release.

11 years agoPrepare supported module 1.0.1 release.
Ashley Penney [Mon, 3 Mar 2014 19:34:22 +0000 (19:34 +0000)]
Prepare supported module 1.0.1 release.

11 years agoMerge pull request #328 from apenney/supported-metadata
Hunter Haugen [Mon, 3 Mar 2014 18:38:54 +0000 (10:38 -0800)]
Merge pull request #328 from apenney/supported-metadata

Prepare for supported modules.

11 years agoMerge pull request #326 from hunner/oel_limit
Hunter Haugen [Mon, 3 Mar 2014 18:16:33 +0000 (10:16 -0800)]
Merge pull request #326 from hunner/oel_limit

Change OEL limitation description

11 years agoPrepare for supported modules.
Ashley Penney [Mon, 3 Mar 2014 17:03:33 +0000 (12:03 -0500)]
Prepare for supported modules.

11 years agoMerge pull request #327 from laurenrother/1.0.x
Ashley Penney [Mon, 3 Mar 2014 16:58:26 +0000 (11:58 -0500)]
Merge pull request #327 from laurenrother/1.0.x

Add "Release Notes/Known Bugs" to Changelog

11 years agoAdds "Release Notes/Known Bugs" to Changelog, updates file format to markdown, standa...
Lauren Rother [Sat, 1 Mar 2014 01:41:47 +0000 (17:41 -0800)]
Adds "Release Notes/Known Bugs" to Changelog, updates file format to markdown, standardizes the format of previous entries

Per a request to have initial release notes that specifically listed known issues for this PE 3.2 release, and barred by time constraints from automating a pull from open issues in JIRA, this commit adds a Release Note and Known Bug section to the Changelog for the imminent 3.2 release. As it will display on the Forge, updates file type to markdown and standardizes previous entries. Adds template for release notes to be filled in later.

11 years agoChange OEL limitation description
Hunter Haugen [Sat, 1 Mar 2014 01:42:14 +0000 (17:42 -0800)]
Change OEL limitation description

11 years agoMerge pull request #325 from apenney/suse-fix
Ashley Penney [Fri, 28 Feb 2014 20:19:34 +0000 (15:19 -0500)]
Merge pull request #325 from apenney/suse-fix

One lousy letter away from working perfectly on SLES.

11 years agoOne lousy letter away from working perfectly on SLES.
Ashley Penney [Fri, 28 Feb 2014 20:17:52 +0000 (20:17 +0000)]
One lousy letter away from working perfectly on SLES.

11 years agoMerge pull request #324 from apenney/socket-owner-sles-madness
Ashley Penney [Fri, 28 Feb 2014 19:08:38 +0000 (14:08 -0500)]
Merge pull request #324 from apenney/socket-owner-sles-madness

Socket owner sles madness

11 years agoUpdate the tests to not test socket on SLES.
Ashley Penney [Fri, 28 Feb 2014 17:44:20 +0000 (17:44 +0000)]
Update the tests to not test socket on SLES.

11 years agoUpdate the limitations documentation for SLES and Oracle Linux 5.
Ashley Penney [Fri, 28 Feb 2014 17:44:11 +0000 (17:44 +0000)]
Update the limitations documentation for SLES and Oracle Linux 5.

11 years agoMerge pull request #315 from petems/80_character_lint_fix
Hunter Haugen [Tue, 25 Feb 2014 00:35:13 +0000 (16:35 -0800)]
Merge pull request #315 from petems/80_character_lint_fix

Puppet-lint fix for > 80 character line

11 years agoMerge pull request #323 from hunner/fix_path
Hunter Haugen [Fri, 21 Feb 2014 21:07:48 +0000 (13:07 -0800)]
Merge pull request #323 from hunner/fix_path

Remove path from tests

11 years agoRemove path from tests
Hunter Haugen [Fri, 21 Feb 2014 21:06:00 +0000 (13:06 -0800)]
Remove path from tests

On sles and potentially other platforms iptables is not in /sbin

11 years agoMerge pull request #322 from hunner/fix_socket
Hunter Haugen [Fri, 21 Feb 2014 20:56:16 +0000 (12:56 -0800)]
Merge pull request #322 from hunner/fix_socket

Fix logic for supported socket platforms

11 years agoFix logic for supported socket platforms
Hunter Haugen [Fri, 21 Feb 2014 20:55:20 +0000 (12:55 -0800)]
Fix logic for supported socket platforms

11 years agoMerge branch 'master' into 1.0.x
Hunter Haugen [Thu, 20 Feb 2014 20:34:07 +0000 (12:34 -0800)]
Merge branch 'master' into 1.0.x

11 years agoMerge pull request #321 from hunner/fix_over_9000
Ashley Penney [Thu, 20 Feb 2014 19:04:04 +0000 (14:04 -0500)]
Merge pull request #321 from hunner/fix_over_9000

Bugfix: Account for rules sorted after unmanaged rules

11 years agoBugfix: Account for rules sorted after unmanaged rules
Hunter Haugen [Wed, 19 Feb 2014 23:32:24 +0000 (15:32 -0800)]
Bugfix: Account for rules sorted after unmanaged rules

The offset calculation assumed unmanaged rules are numbered 9000+ and
would be sorted to the end and didn't need to be accounted for. This
caused failures when people used9-numbered rules. This should fix that.

Additionally, for rules that are 9-numbered, they should be ordered
*after* unmanaged rules, so this fixes that too.

So when encountering unmanaged rules, the order will be something like
this:

- Managed rules that begin with 0 through 8
- Unmanaged rules (which are assigned 9-numbers)
- Managed rules that begin with 9 (but not numbered lower than the
  unmanaged rules)

Mixing unmanaged rules with managed rules is still not officially
supported, but at least we can try and behave with them.

11 years agoAdd PE support.
Ashley Penney [Wed, 19 Feb 2014 19:54:11 +0000 (19:54 +0000)]
Add PE support.

11 years agoMerge pull request #319 from apenney/add-pe
Ashley Penney [Wed, 19 Feb 2014 19:55:33 +0000 (14:55 -0500)]
Merge pull request #319 from apenney/add-pe

Add PE support.

11 years agoAdd PE support.
Ashley Penney [Wed, 19 Feb 2014 19:54:11 +0000 (19:54 +0000)]
Add PE support.

11 years agoMerge pull request #316 from hunner/release_1.0.1
Ashley Penney [Wed, 19 Feb 2014 16:39:15 +0000 (11:39 -0500)]
Merge pull request #316 from hunner/release_1.0.1

Release 1.0.1

11 years agoRelease 1.0.1
Hunter Haugen [Wed, 19 Feb 2014 04:23:02 +0000 (20:23 -0800)]
Release 1.0.1

Bugfix: gracefully fail to manage ip6tables on iptables 1.3.x

11 years agoMerge pull request #314 from hunner/fix_cent5
Hunter Haugen [Wed, 19 Feb 2014 04:19:26 +0000 (20:19 -0800)]
Merge pull request #314 from hunner/fix_cent5

Fix various differences for rhel5

11 years agoFix various differences for rhel5
Hunter Haugen [Tue, 18 Feb 2014 21:13:22 +0000 (13:13 -0800)]
Fix various differences for rhel5

iptables 1.3.5 ships on rhel 5 and is really old. It doesn't support
`--comment` on ip6tables, doesn't support `-m socket` or `--random`, and
the format of netmasks uses subnet mask format instead of CIDR.

11 years agoPuppet-lint fix for > 80 character line
Peter Souter [Wed, 12 Feb 2014 15:25:38 +0000 (15:25 +0000)]
Puppet-lint fix for > 80 character line

11 years agoMerge pull request #312 from justinstoller/maint/1.0.x/remove_basic_spec
Hunter Haugen [Tue, 18 Feb 2014 18:06:55 +0000 (10:06 -0800)]
Merge pull request #312 from justinstoller/maint/1.0.x/remove_basic_spec

Remove acceptance/basic_spec

11 years agoMerge pull request #309 from petems/ignore_vagrant_folder
Ashley Penney [Tue, 18 Feb 2014 17:10:45 +0000 (12:10 -0500)]
Merge pull request #309 from petems/ignore_vagrant_folder

Ignore .vagrant folder

11 years agoRemove acceptance/basic_spec
Justin Stoller [Sat, 15 Feb 2014 06:20:35 +0000 (22:20 -0800)]
Remove acceptance/basic_spec

This removes the legacy "basic_spec" that was used as an introduction to
module testing.  It assumes the FOSS path for the module dir.  Since the
default module dir changes in PE depending on whether or not the module
is distributed with PE or not, these basic specs have been removed from
other modules.

11 years agoMerge pull request #311 from hunner/fix_nobody
Hunter Haugen [Fri, 14 Feb 2014 23:46:16 +0000 (15:46 -0800)]
Merge pull request #311 from hunner/fix_nobody

Use iptables-save and parse the output

11 years agoUse iptables-save and parse the output
Hunter Haugen [Fri, 14 Feb 2014 21:19:54 +0000 (13:19 -0800)]
Use iptables-save and parse the output

`iptables -S` didn't work on older OSs, so the tests have been adapted
for that.

There was one test for the NAT table that I'm not sure what the purpose
was, since it seemed to be testing munge instead. I edited it to get it
to pass.

11 years agoIgnore .vagrant folder
Peter Souter [Wed, 12 Feb 2014 14:57:42 +0000 (14:57 +0000)]
Ignore .vagrant folder

11 years agoMerge pull request #308 from hunner/dynamic_gemsource
Hunter Haugen [Wed, 12 Feb 2014 00:49:38 +0000 (16:49 -0800)]
Merge pull request #308 from hunner/dynamic_gemsource

Allow custom gemsource

11 years agoAllow custom gemsource
Hunter Haugen [Wed, 12 Feb 2014 00:31:58 +0000 (16:31 -0800)]
Allow custom gemsource

11 years agoMerge pull request #307 from apenney/100-release 1.0.0
Ashley Penney [Tue, 11 Feb 2014 21:53:46 +0000 (16:53 -0500)]
Merge pull request #307 from apenney/100-release

Prepare a 1.0 release.

11 years agoPrepare a 1.0 release.
Ashley Penney [Tue, 11 Feb 2014 21:52:58 +0000 (16:52 -0500)]
Prepare a 1.0 release.

11 years agoMerge pull request #305 from justinstoller/dont_assume_vagrant
Ashley Penney [Tue, 11 Feb 2014 15:44:00 +0000 (10:44 -0500)]
Merge pull request #305 from justinstoller/dont_assume_vagrant

remove vagrant specific test assumption

11 years agoMerge pull request #304 from hunner/release_0.5.0 0.5.0
Hunter Haugen [Tue, 11 Feb 2014 01:23:00 +0000 (17:23 -0800)]
Merge pull request #304 from hunner/release_0.5.0

Release 0.5.0

11 years agoRelease 0.5.0
Hunter Haugen [Mon, 10 Feb 2014 23:53:42 +0000 (15:53 -0800)]
Release 0.5.0

Summary:
This is a bigger release that brings in "recent" connection limiting (think
"port knocking"), firewall chain purging on a per-chain/per-table basis, and
support for a few other use cases. This release also fixes a major bug which
could cause modifications to the wrong rules when unmanaged rules are present.

New Features:
* Add "recent" limiting via parameters `rdest`, `reap`, `recent`, `rhitcount`,
  `rname`, `rseconds`, `rsource`, and `rttl`
* Add negation support for source and destination
* Add per-chain/table purging support to `firewallchain`
* IPv4 specific
  * Add random port forwarding support
  * Add ipsec policy matching via `ipsec_dir` and `ipsec_policy`
* IPv6 specific
  * Add support for hop limiting via `hop_limit` parameter
  * Add fragmentation matchers via `ishasmorefrags`, `islastfrag`, and `isfirstfrag`
  * Add support for conntrack stateful firewall matching via `ctstate`

Bugfixes:
- Boolean fixups allowing false values
- Better detection of unmanaged rules
- Fix multiport rule detection
- Fix sport/dport rule detection
- Make INPUT, OUTPUT, and FORWARD not autorequired for firewall chain filter
- Allow INPUT with the nat table
- Fix `src_range` & `dst_range` order detection
- Documentation clarifications
- Fixes to spec tests

11 years agoremove vagrant specific test assumption
Justin Stoller [Mon, 10 Feb 2014 02:49:31 +0000 (18:49 -0800)]
remove vagrant specific test assumption

11 years agoMerge pull request #303 from hunner/fix_unmanaged
Ashley Penney [Sat, 8 Feb 2014 00:23:23 +0000 (19:23 -0500)]
Merge pull request #303 from hunner/fix_unmanaged

Fix for #286 for pre-existing rules at the start of a chain

11 years agoFix for #286 for pre-existing rules at the start of a chain
Hunter Haugen [Thu, 6 Feb 2014 23:47:27 +0000 (15:47 -0800)]
Fix for #286 for pre-existing rules at the start of a chain

In #286 we fixed rule offset detection for existing managed and
unmanaged rules, but in the case where the first rule in a chain was
unmanaged, managed rules were still being inserted under it.

This patch changes it so that if the first rule detected for offset is
unmanaged, then we should insert before that for more consistent
behavior.

11 years agoMerge pull request #302 from hunner/fix_match_extension
Ashley Penney [Thu, 6 Feb 2014 21:42:00 +0000 (16:42 -0500)]
Merge pull request #302 from hunner/fix_match_extension

Fix #300 for match extension protocol

11 years agoFix #300 for match extension protocol
Hunter Haugen [Thu, 6 Feb 2014 20:42:46 +0000 (12:42 -0800)]
Fix #300 for match extension protocol

So... #300 fixed matching `-m (tcp|udp)` at the beginning of `-m
multiport` or `--dport` or `--sport` rules, but broke actual *creation*
of those rules because `-m (tcp|udp)` was used as an iptables argument,
which it is not.

This change removes the problematic argument from `@resource_map` and
instead just substitutes `-m (tcp|udp)` out of any existing rules before
matching. The `-m tcp` match extension arguments are optional anyway,
and not needed for iptables functionality and don't change the semantics
at all.

11 years agoMerge pull request #300 from hunner/fix_multiport
Ashley Penney [Thu, 6 Feb 2014 00:14:32 +0000 (19:14 -0500)]
Merge pull request #300 from hunner/fix_multiport

(MODULES-451) Match extension protocol for multiport

11 years ago(MODULES-451) Match extension protocol for multiport
Hunter Haugen [Thu, 6 Feb 2014 00:02:56 +0000 (16:02 -0800)]
(MODULES-451) Match extension protocol for multiport

The `-m (tcp|udp)` match extension flag before multiport `--sport` and
`--dport` flags is considered optional, but may be present on some
rules. This patches the provides recognition of those rules.

11 years agoMerge pull request #299 from hunner/negation_support
Ashley Penney [Wed, 5 Feb 2014 23:19:07 +0000 (18:19 -0500)]
Merge pull request #299 from hunner/negation_support

(MODULES-48) Parse negated rules

11 years ago(MODULES-48) Parse negated rules
Hunter Haugen [Wed, 5 Feb 2014 22:38:16 +0000 (14:38 -0800)]
(MODULES-48) Parse negated rules

This adds tests mentioned in #141 and MODULES-48 to make sure that they
are covered by #267

Closes #141

11 years agoMerge pull request #298 from hunner/add_random
Ashley Penney [Wed, 5 Feb 2014 22:41:48 +0000 (17:41 -0500)]
Merge pull request #298 from hunner/add_random

Add --random support as per #141 comment

11 years agoAdd --random support as per #141 comment
Hunter Haugen [Wed, 5 Feb 2014 21:59:08 +0000 (13:59 -0800)]
Add --random support as per #141 comment

11 years agoMerge pull request #297 from hunner/recent_docs
Ashley Penney [Wed, 5 Feb 2014 21:29:15 +0000 (16:29 -0500)]
Merge pull request #297 from hunner/recent_docs

Update the 'recent' module example with a more complete one linked to from the iptables man page

11 years agoMerge pull request #293 from hunner/range_fix
Ashley Penney [Wed, 5 Feb 2014 18:54:58 +0000 (13:54 -0500)]
Merge pull request #293 from hunner/range_fix

(MODULES-16) Correct src_range dst_range ordering

11 years agoUpdate the 'recent' module example with a more complete one linked to from the iptabl...
Mike Bryant [Tue, 4 Feb 2014 23:38:05 +0000 (23:38 +0000)]
Update the 'recent' module example with a more complete one linked to from the iptables man page.

11 years ago(MODULES-16) Correct src_range dst_range ordering
Hunter Haugen [Mon, 3 Feb 2014 23:19:16 +0000 (15:19 -0800)]
(MODULES-16) Correct src_range dst_range ordering

I wasn't able to reproduce the bug in testing, but several people were
able to and the proposed fix is a correct assumption.

11 years agoMerge pull request #296 from hunner/ticket/21166-add_support_for_iptables-recent
Hunter Haugen [Wed, 5 Feb 2014 01:09:30 +0000 (17:09 -0800)]
Merge pull request #296 from hunner/ticket/21166-add_support_for_iptables-recent

(MODULES-31) add support for iptables recent