firewall
firewall copied to clipboard
fix port sorting in generated firewall rules file
Description
given ports argument als array of strings like:
firewall_rule 'allow some ports' do
port %w(80 88 389 443 464 636)
source '10.10.10.10'
end
generates in /etc/default/ufw-chef.rules file:
ufw allow in proto tcp to any port 389,443,464,636,80,88 from 10.10.10.10 comment "allow some ports"
after this fix:
ufw allow in proto tcp to any port 80,88,389,443,464,636 from 10.10.10.10 comment "allow some ports"
Issues Resolved
Correct generation of firewall rules.
Check List
- [x] A summary of changes made is included in the CHANGELOG under
## Unreleased - [x] New functionality includes testing.
- [x] New functionality has been documented in the README if applicable.
Can you update the changelog as per the PR comments please 👍🏼
Can you update the changelog as per the PR comments please 👍🏼
Done.
Please look into failing tests