Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 8.5 Cannot be configured with firewalld #243

Open
nhillsdonuk opened this issue Dec 22, 2021 · 1 comment
Open

RHEL 8.5 Cannot be configured with firewalld #243

nhillsdonuk opened this issue Dec 22, 2021 · 1 comment

Comments

@nhillsdonuk
Copy link

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

Standard Minimal Server ISO install of RHEL8.5 uses firewalld, enabled and running with zone public. By declaring this firewall cookbook to takeover, it always drops firewalld and installs a full set of IPTables, regardless of attributes given.

🥞 Cookbook version

Depends currently set to 4.0.0

👩‍🍳 Chef-Infra Version

17.8.25

🎩 Platform details

Self hosted RHEL8.5 from default ISO with minimal server

Steps To Reproduce

Steps to reproduce the behavior:

Depend this cookbook.
Declare:
firewall 'any' do
anything
end

Will disable firewalld and install IPTables.

🚓 Expected behavior

Firewalld to be installed/enabled (which it is by default in the OS) and then zones/rules set.

➕ Additional context

I think this code is related, lines 22..24 in libraries/provider_firewall_firewalld.rb:

provides :firewall, os: 'linux', platform_family: %w(rhel fedora amazon) do |node| (node['platform_version'].to_i == 7 && !node['firewall']['redhat7_iptables']) || (amazon_linux? && !node['firewall']['redhat7_iptables']) end

@jblaine
Copy link

jblaine commented Jul 26, 2023

This is very likely fixed in #247 but was never merged 14 months ago :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants