This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
-\[MODULES-10907\] Do not remove spaces from hex string with ! [\#967](https://github.com/puppetlabs/puppetlabs-firewall/pull/967) ([adrianiurca](https://github.com/adrianiurca))
@@ -74,7 +82,6 @@ All notable changes to this project will be documented in this file. The format
### Fixed
-\(maint\) Use fact.flush only when available [\#906](https://github.com/puppetlabs/puppetlabs-firewall/pull/906) ([Filipovici-Andrei](https://github.com/Filipovici-Andrei))
-\(MODULES-10358\) - Clarification added to Boolean validation checks [\#886](https://github.com/puppetlabs/puppetlabs-firewall/pull/886) ([david22swan](https://github.com/david22swan))
@@ -90,6 +97,7 @@ All notable changes to this project will be documented in this file. The format
### Fixed
-\(MODULES-10358\) - Clarification added to Boolean validation checks [\#886](https://github.com/puppetlabs/puppetlabs-firewall/pull/886) ([david22swan](https://github.com/david22swan))
- Change - Avoid puppet failures on windows nodes [\#874](https://github.com/puppetlabs/puppetlabs-firewall/pull/874) ([blackknight36](https://github.com/blackknight36))
- Fix parsing iptables rules with hyphen in comments [\#861](https://github.com/puppetlabs/puppetlabs-firewall/pull/861) ([Hexta](https://github.com/Hexta))
Expand DownExpand Up
@@ -165,6 +173,7 @@ All notable changes to this project will be documented in this file. The format
- Changed regex for iniface and outiface to allow '@' in interface names [\#791](https://github.com/puppetlabs/puppetlabs-firewall/pull/791) ([GeorgeCox](https://github.com/GeorgeCox))
-\(MODULES-8214\) Handle src\_type and dst\_type as array [\#790](https://github.com/puppetlabs/puppetlabs-firewall/pull/790) ([mateusz-gozdek-sociomantic](https://github.com/mateusz-gozdek-sociomantic))
-\(MODULES-7990\) Merge multiple comments into one while parsing rules [\#789](https://github.com/puppetlabs/puppetlabs-firewall/pull/789) ([mateusz-gozdek-sociomantic](https://github.com/mateusz-gozdek-sociomantic))
- add -g flag handling in ip6tables.rb provider [\#788](https://github.com/puppetlabs/puppetlabs-firewall/pull/788) ([cestith](https://github.com/cestith))
-\(MODULES-7681\) Add support for bytecode property [\#771](https://github.com/puppetlabs/puppetlabs-firewall/pull/771) ([baurmatt](https://github.com/baurmatt))
### Fixed
Expand DownExpand Up
@@ -890,4 +899,4 @@ Initial release.
\**This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\**This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\**This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# we do this after adding the 'dash' argument because of ones like "-m multiport --dports", where we want it before the "--dports" but after "-m multiport".
# so we insert before whatever the last argument is
raise"All values of the '#{res}' property must be prefixed with a '!' when inverting, but '#{wrong_values.join("', '")}' #{(wrong_values.length > 1) ? 'are' : 'is'} not prefixed; aborting"# rubocop:disable Metrics/LineLength : Line length cannot be reduced
raise"All values of the '#{res}' property must be prefixed with a '!' when inverting, but " \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
line: '-t filter ! -s 10.0.0.0/8 ! -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP -m comment --comment "064 drop NEW non-tcp external packets with FIN/RST/ACK set and SYN unset"',# rubocop:disable Metrics/LineLength
line: '-t filter ! -s 10.0.0.0/8 ! -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP -m comment --comment "064 drop NEW non-tcp external packets with FIN/RST/ACK set and SYN unset"',# rubocop:disable Layout/LineLength
table: 'filter',
params: {
name: '064 drop NEW non-tcp external packets with FIN/RST/ACK set and SYN unset',
Expand All
@@ -659,7 +659,7 @@
},
},
'match_mark'=>{
line: '-A INPUT -p tcp -m mark --mark 0x1 -m connlimit --connlimit-above 10 --connlimit-mask 32 -j REJECT --reject-with icmp-port-unreachable -m comment --comment "066 REJECT connlimit_above 10 with mask 32 and mark matches"',# rubocop:disable Metrics/LineLength
line: '-A INPUT -p tcp -m mark --mark 0x1 -m connlimit --connlimit-above 10 --connlimit-mask 32 -j REJECT --reject-with icmp-port-unreachable -m comment --comment "066 REJECT connlimit_above 10 with mask 32 and mark matches"',# rubocop:disable Layout/LineLength
args: ['-t',:filter,'-p',:tcp,'-m','multiport','--dports','22','-j','REJECT','-m','connlimit','--connlimit-above','10','--connlimit-mask','24','-m','comment','--comment','061 REJECT connlimit_above 10 with mask 24'],# rubocop:disable Metrics/LineLength
args: ['-t',:filter,'-p',:tcp,'-m','multiport','--dports','22','-j','REJECT','-m','connlimit','--connlimit-above','10','--connlimit-mask','24','-m','comment','--comment','061 REJECT connlimit_above 10 with mask 24'],# rubocop:disable Layout/LineLength
},
'connmark'=>{
params: {
Expand DownExpand Up
@@ -1318,7 +1318,7 @@
source: '! 10.0.0.0/8',
tcp_flags: '! FIN,SYN,RST,ACK SYN',
},
args: ['-t',:filter,'!','-s','10.0.0.0/8','!','-p',:tcp,'-m','tcp','!','--tcp-flags','FIN,SYN,RST,ACK','SYN','-m','state','--state','NEW','-j','DROP','-m','comment','--comment','064 drop NEW non-tcp external packets with FIN/RST/ACK set and SYN unset'],# rubocop:disable Metrics/LineLength
args: ['-t',:filter,'!','-s','10.0.0.0/8','!','-p',:tcp,'-m','tcp','!','--tcp-flags','FIN,SYN,RST,ACK','SYN','-m','state','--state','NEW','-j','DROP','-m','comment','--comment','064 drop NEW non-tcp external packets with FIN/RST/ACK set and SYN unset'],# rubocop:disable Layout/LineLength
},
'negate_dport_and_sport'=>{
params: {
Expand All
@@ -1332,7 +1332,7 @@
dport: ['! 67','! 66'],
proto: 'udp',
},
args: ['-t',:filter,'-s','0.0.0.0/32','-d','255.255.255.255/32','-p',:udp,'-m','multiport','!','--sports','68,69','-m','multiport','!','--dports','67,66','-j','ACCEPT','-m','comment','--comment','065 negate dport and sport'],# rubocop:disable Metrics/LineLength
args: ['-t',:filter,'-s','0.0.0.0/32','-d','255.255.255.255/32','-p',:udp,'-m','multiport','!','--sports','68,69','-m','multiport','!','--dports','67,66','-j','ACCEPT','-m','comment','--comment','065 negate dport and sport'],# rubocop:disable Layout/LineLength
},
'match_mark'=>{
params: {
Expand All
@@ -1344,7 +1344,7 @@
match_mark: '0x1',
action: 'reject',
},
args: ['-t',:filter,'-p',:tcp,'-j','REJECT','-m','mark','--mark','0x1','-m','connlimit','--connlimit-above','10','--connlimit-mask','32','-m','comment','--comment','066 REJECT connlimit_above 10 with mask 32 and mark matches'],# rubocop:disable Metrics/LineLength
args: ['-t',:filter,'-p',:tcp,'-j','REJECT','-m','mark','--mark','0x1','-m','connlimit','--connlimit-above','10','--connlimit-mask','32','-m','comment','--comment','066 REJECT connlimit_above 10 with mask 32 and mark matches'],# rubocop:disable Layout/LineLength
},
'clamp_mss_to_pmtu'=>{
params: {
Expand DownExpand Up
@@ -1432,7 +1432,7 @@
queue_num: '50',
queue_bypass: true,
},
args: ['-t',:filter,'-s','1.2.3.4/32','-d','4.3.2.1/32','-p',:tcp,'-j','NFQUEUE','--queue-num','50','--queue-bypass','-m','comment','--comment','002 nfqueue specify queue_num and queue_bypass'],# rubocop:disable Metrics/LineLength
args: ['-t',:filter,'-s','1.2.3.4/32','-d','4.3.2.1/32','-p',:tcp,'-j','NFQUEUE','--queue-num','50','--queue-bypass','-m','comment','--comment','002 nfqueue specify queue_num and queue_bypass'],# rubocop:disable Layout/LineLength
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it"should convert a port name for #{port} to its number"do
it"converts a port name for #{port} to its number"do
resource[port]='ssh'
expect(resource[port]).toeql['22']
end
it"should not accept something invalid for #{port}"do
it"does not accept something invalid for #{port}"do
expect{resource[port]='something odd'}.toraise_error(Puppet::Error,%r{^Parameter .+ failed.+Munging failed for value ".+" in class .+: no such service})
end
it"should not accept something invalid in an array for #{port}"do
it"does not accept something invalid in an array for #{port}"do
expect{resource[port]=['something odd','something even odder']}.toraise_error(Puppet::Error,%r{^Parameter .+ failed.+Munging failed for value ".+" in class .+: no such service})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters