]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
Paula McMaw [Fri, 17 Nov 2017 12:16:30 +0000 (12:16 +0000)]
TP Honey [Tue, 14 Nov 2017 10:29:20 +0000 (10:29 +0000)]
Merge pull request #734 from puppetlabs/release
1.10.0 Mergeback
Paula McMaw [Fri, 10 Nov 2017 12:16:33 +0000 (12:16 +0000)]
Merge pull request #733 from jbondpdx/release
clean up firewall_multi section, minor fixes
jbondpdx [Thu, 9 Nov 2017 22:37:03 +0000 (14:37 -0800)]
clean up firewall_multi section, minor fixes
Paula McMaw [Wed, 8 Nov 2017 09:42:13 +0000 (09:42 +0000)]
Merge pull request #732 from david22swan/PreRelease
(FM-6577) PreRelease
David Swan [Tue, 7 Nov 2017 16:31:55 +0000 (16:31 +0000)]
PreReleaseFM-6577
Paula McMaw [Tue, 7 Nov 2017 14:15:06 +0000 (14:15 +0000)]
Merge pull request #731 from puppetlabs/release
1.9.0 Mergeback
david22swan [Tue, 7 Nov 2017 13:50:34 +0000 (13:50 +0000)]
Merge branch 'master' into release
david22swan [Tue, 7 Nov 2017 09:12:59 +0000 (09:12 +0000)]
Merge pull request #729 from sathlan/master
[MODULES-5924] Fix unmanaged rule regex when updating a iptable.
TP Honey [Mon, 6 Nov 2017 15:52:18 +0000 (15:52 +0000)]
Merge pull request #730 from david22swan/2017.3Fix
(QA)Fix to 2017.3 tests
David Swan [Mon, 6 Nov 2017 15:20:06 +0000 (15:20 +0000)]
(QA)Fix to 2017.3 tests
Sofer Athlan-Guyot [Fri, 3 Nov 2017 12:42:31 +0000 (13:42 +0100)]
[MODULES-5924] Fix unmanaged rule regex when updating a iptable.
We have two kind of unmanaged rules:
- empty comment: those get an md5 hash as a name prefixed with 90XX
- comment not matching “\d[graph,space]+$”
This is defined there[1]
But when we calculate the updated line we take into account only the
first kind of unmanaged rule in the offset[2] which leads to error.
Relaxing the regex solves this.
[1] https://github.com/puppetlabs/puppetlabs-firewall/blob/master/lib/puppet/provider/firewall/iptables.rb#L610..L617
[2] https://github.com/puppetlabs/puppetlabs-firewall/blob/master/lib/puppet/provider/firewall/iptables.rb#L802..L803
david22swan [Fri, 3 Nov 2017 09:27:54 +0000 (09:27 +0000)]
Merge pull request #666 from comel/parser-sanity-check-1
(MODULES-4200) Add simple sanity check for the rule to hash parser
david22swan [Thu, 2 Nov 2017 14:10:32 +0000 (14:10 +0000)]
Merge pull request #682 from crispygoth/add_gid_lookup
Add gid lookup
david22swan [Wed, 1 Nov 2017 12:23:31 +0000 (12:23 +0000)]
Merge pull request #728 from alexharv074/document_firewall_multi
(docs) Add missing hyperlink
Alex Harvey [Wed, 1 Nov 2017 07:37:24 +0000 (18:37 +1100)]
(docs) Add missing hyperlink
Left out in previous commit.
Eric Putnam [Tue, 31 Oct 2017 22:04:28 +0000 (15:04 -0700)]
Merge pull request #723 from alexharv074/document_firewall_multi
(docs) Add some notes about firewall_multi
Eric Putnam [Tue, 31 Oct 2017 20:37:37 +0000 (13:37 -0700)]
Merge pull request #727 from hunner/deb_9
(MODULES-5692) Match more than a single space
Hunter Haugen [Wed, 11 Oct 2017 20:30:18 +0000 (13:30 -0700)]
(MODULES-5692) Match more than a single space
Debian 9 outputs multiple spaces.
TP Honey [Tue, 3 Oct 2017 15:29:19 +0000 (16:29 +0100)]
Merge pull request #724 from HelenCampbell/revert722
Revert of PR 722 to undo the breaking changes introduced
Helen Campbell [Tue, 3 Oct 2017 14:11:17 +0000 (15:11 +0100)]
Revert of PR 722 to undo the breaking changes introduced
Alex Harvey [Fri, 29 Sep 2017 16:45:03 +0000 (02:45 +1000)]
(docs) Add some notes about firewall_multi
Clean up scattered references to this project so that docs make more
sense.
Eric Putnam [Wed, 27 Sep 2017 20:10:05 +0000 (13:10 -0700)]
Merge pull request #721 from kpengboy/resolve-ipv6
(MODULES-5645) Choose correct IP version for hostname resolution
Paula McMaw [Tue, 26 Sep 2017 12:54:58 +0000 (13:54 +0100)]
Merge pull request #722 from tphoney/stefanopini-patch-1
Correction of ICMPv6 protocol name
tphoney [Tue, 26 Sep 2017 11:38:42 +0000 (12:38 +0100)]
readme update
Stefano [Tue, 28 Feb 2017 09:36:56 +0000 (10:36 +0100)]
Correction of ICMPv6 protocol name
Correction of ICMPv6 protocol name from ipv6-icmp to icmpv6
TP Honey [Tue, 26 Sep 2017 11:21:06 +0000 (12:21 +0100)]
Merge pull request #694 from knackaron/ip6tables-disable
allow ip6tables to be disabled
Kevin Peng [Sun, 24 Sep 2017 07:43:42 +0000 (00:43 -0700)]
(MODULES-5645) Choose correct IP version for hostname resolution
Currently hostnames specified in a `source` or `destination` field
in a firewall rule are always resolved as IPv4, even when the
provider is `ip6tables`. Instead, intelligently determine whether
the hostname should be resolved as an IPv4 address or IPv6 address
based on the provider.
TP Honey [Fri, 22 Sep 2017 10:51:36 +0000 (11:51 +0100)]
Merge pull request #720 from puppetlabs/msync_18sep17_892c4cf
(maint) modulesync
892c4cf
Hailee Kenney [Mon, 18 Sep 2017 21:55:42 +0000 (14:55 -0700)]
(maint) modulesync
892c4cf
Paula McMaw [Fri, 8 Sep 2017 11:33:35 +0000 (12:33 +0100)]
Merge pull request #717 from tphoney/dummy_pr
remove whitespace at the EOL
Paula McMaw [Wed, 6 Sep 2017 13:25:06 +0000 (14:25 +0100)]
Merge pull request #719 from HelenCampbell/hashlimitfix
Update for hashlimit tests to not run on RedHat5 or Scientific 5
Helen Campbell [Wed, 6 Sep 2017 12:37:42 +0000 (13:37 +0100)]
Update for hashlimit tests to not run on RedHat5 or Scientific 5
Hashlimit doesn't seem to be fully supported on these OS'es so I've put a check to skip the tests.
TP Honey [Tue, 5 Sep 2017 14:13:30 +0000 (15:13 +0100)]
Merge pull request #718 from HelenCampbell/hashlimitfix
Yet another fix to hashlimit tests, smaller tests replace one large r…
Helen Campbell [Tue, 5 Sep 2017 13:27:34 +0000 (14:27 +0100)]
Yet another fix to hashlimit tests, smaller tests replace one large regex for match improvements.
TP Honey [Tue, 5 Sep 2017 09:58:26 +0000 (10:58 +0100)]
Merge pull request #716 from HelenCampbell/hashlimitfix
Fix to update hashlimit above test
Helen Campbell [Tue, 5 Sep 2017 08:50:28 +0000 (09:50 +0100)]
Unit test fix for travis
tphoney [Mon, 4 Sep 2017 14:48:05 +0000 (15:48 +0100)]
remove whitespace at the EOL
Helen Campbell [Mon, 4 Sep 2017 14:15:01 +0000 (15:15 +0100)]
Fix to update hashlimit above test
Helen [Tue, 29 Aug 2017 13:25:49 +0000 (14:25 +0100)]
Merge pull request #708 from ATIX-AG/master
MODULE-1805 Add hashlimit-module
TP Honey [Thu, 17 Aug 2017 14:34:00 +0000 (15:34 +0100)]
Merge pull request #715 from pmcmaw/rm_ubuntu
(MODULES-5501) - Remove unsupported Ubuntu
Paula McMaw [Thu, 17 Aug 2017 12:59:57 +0000 (13:59 +0100)]
(MODULES-5501) - Remove unsupported Ubuntu
Removing older version of Ubuntu that are not supported by the module.
Eric Putnam [Wed, 16 Aug 2017 21:54:15 +0000 (14:54 -0700)]
Merge pull request #713 from nbarrientos/sets
(MODULES-5340) Understand negated match sets
Nacho Barrientos [Thu, 27 Jul 2017 08:55:33 +0000 (10:55 +0200)]
(MODULES-5340) Understand negated match sets
This patch allows the provider to understand rules that contain negated
match sets when parsing the ruleset.
Paula McMaw [Fri, 28 Jul 2017 10:00:40 +0000 (11:00 +0100)]
Merge pull request #714 from puppetlabs/maint-modsync-
915cde70e20
(maint) modulesync
915cde70e20
Glenn Sarti [Thu, 27 Jul 2017 21:56:16 +0000 (14:56 -0700)]
(maint) modulesync
915cde70e20
Hunter Haugen [Mon, 10 Jul 2017 21:46:41 +0000 (14:46 -0700)]
Merge pull request #712 from puppetlabs/msync_modules5187
(MODULES-5187) mysnc puppet 5 and ruby 2.4
Eric Putnam [Thu, 6 Jul 2017 21:41:16 +0000 (14:41 -0700)]
(MODULES-5187) mysnc puppet 5 and ruby 2.4
Paula McMaw [Thu, 6 Jul 2017 08:59:43 +0000 (09:59 +0100)]
Merge pull request #711 from tphoney/MODULES-5177
(MODULES-5177) fixing tests for certain oses
tphoney [Wed, 5 Jul 2017 13:07:22 +0000 (14:07 +0100)]
(MODULES-5177) fixing tests for certain oses
Helen [Tue, 4 Jul 2017 15:43:50 +0000 (16:43 +0100)]
Merge pull request #710 from tphoney/MODULES-5173
(MODULES-5173) fix regex and test on el6
tphoney [Tue, 4 Jul 2017 14:13:06 +0000 (15:13 +0100)]
(MODULES-5173) fix regex and test on el6
TP Honey [Mon, 3 Jul 2017 11:31:53 +0000 (12:31 +0100)]
Merge pull request #709 from hunner/bump_metadata
(MODULES-5144) Prep for puppet 5
TP Honey [Mon, 3 Jul 2017 11:31:18 +0000 (12:31 +0100)]
Merge pull request #696 from traylenator/style
Puppet Lint Fixes
Hunter Haugen [Mon, 26 Jun 2017 21:04:54 +0000 (14:04 -0700)]
(MODULES-5144) Prep for puppet 5
Jonas Truestedt [Thu, 22 Jun 2017 08:27:22 +0000 (10:27 +0200)]
updated README for hashlimit-module
Jonas Truestedt [Thu, 22 Jun 2017 08:00:36 +0000 (10:00 +0200)]
added hashlimit-module for iptables & ip6tables with simple acceptance test
Helen [Wed, 21 Jun 2017 08:57:17 +0000 (09:57 +0100)]
Merge pull request #707 from spynappels/MODULES-5111-support_untracked_state
(MODULES-5111) Support UNTRACKED in state and ctstate rules
Stefan Pijnappels [Wed, 21 Jun 2017 06:16:36 +0000 (07:16 +0100)]
(MODULES-5111) Support UNTRACKED in state and ctstate rules
Type updated to permit UNTRACKED to be passed as a valid state
README updated to document above change
Spec tests updated to verify UNTRACKED is accepted for both state and ctstate, and additionally to verify alphabetic ordering still works as expected.
All tests relating to these changes have passed.
Hunter Haugen [Thu, 15 Jun 2017 17:34:36 +0000 (10:34 -0700)]
Merge pull request #698 from Kotty666/master
Philipp Frik [Wed, 3 May 2017 08:41:59 +0000 (10:41 +0200)]
fix MODULES-1988
Hunter Haugen [Thu, 15 Jun 2017 17:10:43 +0000 (10:10 -0700)]
Merge pull request #706 from alexharv074/fix_readme
commit
95f56586a6506ce4c0460106483a7982fbaf4e05
Author: Alex Harvey <Alex_Harvey@amp.com.au>
Date: Sun Jun 11 22:47:18 2017 +1000
Add test for README
This adds an Rspec test to fail the build if someone adds incorrectly
formatted heading markers again.
commit
b7b62ec28f9999ca499440838d26733aab530eb8
Author: Alex Harvey <Alex_Harvey@amp.com.au>
Date: Sun Jun 11 22:31:33 2017 +1000
(doc) Fix formatting in README.markdown
Without this patch applied, a large chunk of the README is not
displaying properly on Github.
Alex Harvey [Sun, 11 Jun 2017 12:47:18 +0000 (22:47 +1000)]
Add test for README
This adds an Rspec test to fail the build if someone adds incorrectly
formatted heading markers again.
Alex Harvey [Sun, 11 Jun 2017 12:31:33 +0000 (22:31 +1000)]
(doc) Fix formatting in README.markdown
Without this patch applied, a large chunk of the README is not
displaying properly on Github.
Helen [Tue, 23 May 2017 15:08:35 +0000 (16:08 +0100)]
Merge pull request #705 from spynappels/MODULES-1141-Error_on_ICMP_array
(Modules-1141) No longer accepts an array for icmp types #puppethack
Stefan Pijnappels [Tue, 23 May 2017 14:31:34 +0000 (15:31 +0100)]
(MODULES-1141) Update Unit test to fix failing rspec test
Helen [Tue, 23 May 2017 13:41:35 +0000 (14:41 +0100)]
Merge pull request #704 from neilbinney/MODULES-4828
MODULES-4828 version_requirement updated
Neil Binney [Tue, 23 May 2017 13:13:18 +0000 (14:13 +0100)]
MODULES-4828 version_requirement updated
Stefan Pijnappels [Tue, 23 May 2017 12:35:44 +0000 (13:35 +0100)]
(MODULES-1141) Fail on sending array of ICMP types
Jean B [Fri, 19 May 2017 15:51:31 +0000 (08:51 -0700)]
Merge pull request #703 from eputnam/maint/1.9.0additionaldocs
(maint) additional docs fixes for 1.9.0
Eric Putnam [Fri, 19 May 2017 15:38:36 +0000 (08:38 -0700)]
(maint) additional docs fixes for 1.9.0
Hunter Haugen [Wed, 17 May 2017 22:18:05 +0000 (15:18 -0700)]
Merge pull request #702 from eputnam/release
(MODULES-4891) release prep for 1.9.0
Eric Putnam [Tue, 16 May 2017 21:25:32 +0000 (14:25 -0700)]
(maint) README fixes for release
Eric Putnam [Tue, 16 May 2017 21:02:47 +0000 (14:02 -0700)]
(MODULES-4891) release prep for 1.9.0
Glenn Sarti [Tue, 16 May 2017 17:14:15 +0000 (10:14 -0700)]
Merge pull request #701 from eputnam/maint/nflog_osversion
(maint) do not test nflog on older versions of iptables ( < 1.3.7)
Eric Putnam [Thu, 11 May 2017 18:24:36 +0000 (11:24 -0700)]
(maint) update nflog feature and tests
NFLOG is not available as a jump target until iptables version 1.3.7.
This adds an error to the provider when the version is lower than 1.3.7
and the user tries to use NFLOG options. This also updates the tests to
check and make sure the error is thrown on appropriate versions
Hunter Haugen [Wed, 10 May 2017 18:01:15 +0000 (11:01 -0700)]
Merge pull request #700 from eputnam/maint/spec_space
(maint) modify to account for spaces in iptables-save output
Eric Putnam [Wed, 10 May 2017 17:58:41 +0000 (10:58 -0700)]
(maint) modify to account for spaces in iptables-save output
for nflog_spec we check iptables-save output and for --nflog-prefix, there can be varying amounts of space, so this accounts for that
Helen [Wed, 10 May 2017 16:04:45 +0000 (17:04 +0100)]
Merge pull request #697 from eputnam/FM-4896
(FM-4896) add NFLOG support
Eric Putnam [Thu, 4 May 2017 17:39:33 +0000 (10:39 -0700)]
Merge pull request #684 from hunner/check-ebtables
Allow managing ebtables
Eric Putnam [Wed, 3 May 2017 20:17:21 +0000 (13:17 -0700)]
(FM-4896) add NFLOG support
This adds four new features to the firewall type: nflog_groups, _range, _prefix, and _threshold. Unit tests and acceptance tests were also added.
Steve Traylen [Tue, 2 May 2017 13:59:28 +0000 (15:59 +0200)]
Puppet Lint Fixes
Hunter Haugen [Fri, 28 Apr 2017 23:20:48 +0000 (16:20 -0700)]
Merge pull request #695 from blackknight36/firewalld_fix
Change - Ensure that firewalld is stopped before iptables starts
Michael Watters [Fri, 14 Apr 2017 20:41:46 +0000 (16:41 -0400)]
Change - Ensure that firewalld is stopped before iptables starts
firewalld must be stopped and disabled before the iptables service
will start properly.
Aron Parsons [Fri, 21 Apr 2017 01:20:14 +0000 (21:20 -0400)]
only reload systemd on package changes
it has been observed on systems that
the "systemctl is-active" check can
return non-zero status when checking
the status of iptables and ip6tables
at the same time. this causes idempotent
issues when ip6tables is disabled.
systemd should not be blindly reloaded if
there are units not active. it should only
be reloaded if the unit files on disk change.
this only occurs at package installation time,
so the Exec resource should only be refreshed
if the package changes.
there are no other resources in this module
that manipulate the unit files other than the
Package resource.
Aron Parsons [Fri, 7 Apr 2017 01:38:50 +0000 (21:38 -0400)]
allow ip6tables to be disabled
many hardened systems have IPv6 disabled, which
does not allow ip6tables to be running. allow
ip6tables to be selectively disabled in these cases.
errors when IPv6 is disabled:
Error: Could not start Service[ip6tables]: Execution of '/usr/bin/systemctl start ip6tables' returned 1: Job for ip6tables.service failed because the control process exited with error code. See "systemctl status ip6tables.service" and "journalctl -xe" for details.
Error: /Stage[main]/Firewall::Linux::Redhat/Service[ip6tables]/ensure: change from stopped to running failed: Could not start Service[ip6tables]: Execution of '/usr/bin/systemctl start ip6tables' returned 1: Job for ip6tables.service failed because the control process exited with error code. See "systemctl status ip6tables.service" and "journalctl -xe" for details.
● ip6tables.service - IPv6 firewall with ip6tables
Loaded: loaded (/usr/lib/systemd/system/ip6tables.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-04-07 01:36:45 UTC; 25min ago
Process: 10257 ExecStart=/usr/libexec/iptables/ip6tables.init start (code=exited, status=1/FAILURE)
Main PID: 10257 (code=exited, status=1/FAILURE)
Apr 07 01:36:45 el7-1.example.com systemd[1]: Starting IPv6 firewall with ip6tables...
Apr 07 01:36:45 el7-1.example.com ip6tables.init[10257]: ip6tables: Applying firewall rules: ip6tab...r'
Apr 07 01:36:45 el7-1.example.com ip6tables.init[10257]: Error occurred at line: 4
Apr 07 01:36:45 el7-1.example.com ip6tables.init[10257]: Try `ip6tables-restore -h' or 'ip6tables-r...n.
Apr 07 01:36:45 el7-1.example.com ip6tables.init[10257]: [FAILED]
Apr 07 01:36:45 el7-1.example.com systemd[1]: ip6tables.service: main process exited, code=exited,...URE
Apr 07 01:36:45 el7-1.example.com systemd[1]: Failed to start IPv6 firewall with ip6tables.
Apr 07 01:36:45 el7-1.example.com systemd[1]: Unit ip6tables.service entered failed state.
Apr 07 01:36:45 el7-1.example.com systemd[1]: ip6tables.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Hunter Haugen [Tue, 4 Apr 2017 17:17:19 +0000 (10:17 -0700)]
Merge pull request #693 from vshn/mhu/fix_negated_physdev
Properly handle negated `--physdev-is-...` rules
Manuel Hutter [Mon, 3 Apr 2017 13:33:41 +0000 (15:33 +0200)]
Properly handle negated `--physdev-is-...` rules
Paula McMaw [Mon, 27 Mar 2017 12:39:21 +0000 (13:39 +0100)]
Merge pull request #691 from puppetlabs/modules-4528
modulesync e25ca9 - Add locales folder and config.yaml,
f4160bf replace version comparisons unnafected by MODULES-4528 to use versioncmp
Wilson McCoubrey [Thu, 16 Mar 2017 15:50:04 +0000 (15:50 +0000)]
[maint] modulesync e25ca9 - Add locales folder and config.yaml,
f4160bf replace version comparisons unnafected by MODULES-4528 to use versioncmp
Wilson McCoubrey [Tue, 21 Mar 2017 15:21:01 +0000 (15:21 +0000)]
Fix typo in spec tests
Hunter Haugen [Mon, 20 Mar 2017 18:01:52 +0000 (11:01 -0700)]
Merge pull request #690 from jg-development/master
MODULES-4279 use complete option for geoip
Hailee Kenney [Mon, 20 Mar 2017 14:02:51 +0000 (14:02 +0000)]
Merge pull request #689 from puppetlabs/MODULES-4528
[MODULES-4528] Replace Puppet.version.to_f with Puppet::Util::Package.versioncmp
Jan Gantzert [Sat, 18 Mar 2017 10:16:14 +0000 (11:16 +0100)]
MODULES-4279 use complete option for geoip
Wilson McCoubrey [Thu, 16 Mar 2017 15:50:04 +0000 (15:50 +0000)]
(maint) Replace version comparisons unnafected by MODULES-4528 to use versioncmp
For sake of consistency
Wilson McCoubrey [Thu, 16 Mar 2017 11:35:57 +0000 (11:35 +0000)]
[MODULES-4528] Replace Puppet.version.to_f with Puppet::Util::Package.versioncmp
Hunter Haugen [Thu, 9 Feb 2017 17:17:39 +0000 (09:17 -0800)]
Add docs and tests
Hunter Haugen [Mon, 13 Mar 2017 22:21:49 +0000 (15:21 -0700)]
Merge pull request #686 from blackknight36/selinux_fix
Change - Ensure that the iptables configuration file has proper context
Paula McMaw [Mon, 13 Mar 2017 10:18:27 +0000 (10:18 +0000)]
Merge pull request #688 from wilson208/ci_fix
[MODULES-4234] Move physdev_is_in and physdev_is_out tests
Wilson McCoubrey [Mon, 13 Mar 2017 08:41:47 +0000 (08:41 +0000)]
[MODULES-4234] Move physdev_is_in and physdev_is_out tests
To block of 'ip6tables physdev tests' which do not run on EL5 or SLES 10.