How can I check if firewalld supports a specific configuration option?

0
19
Asked By TechWizard42 On

I'm looking for a dependable method to verify if the installed version of firewalld on RHEL 9 systems supports a certain configuration file option called "NftablesTableOwner." I need this for an RPM package installation on two systems: one running RHEL 9.4 and the other RHEL 9.6, both updated recently. It seems that between these two versions, the new option was introduced in firewalld, and I want to ensure I can appropriately set it in /etc/firewalld/firewalld.conf. I've considered using "firewall-cmd --version," but it returns the same output for both versions even though their RPMs differ. Also tried checking the firewalld Python script with "grep," but came up empty. The best idea I've had so far is to use "man firewalld.conf | grep -qi 'NftablesTableOwner'" to test if the option is supported, but I worry about whether there's a more efficient way to do this. My end goal is to be able to set 'NftablesTableOwner=No' to override the default value of 'yes.'

2 Answers

Answered By NetworkNerd88 On

Great point about checking the changelog! You can run `rpm -q --changelog firewalld` to see any documented changes. That should ideally include info about new options like 'NftablesTableOwner.' However, keep in mind that not all maintainers document every addition extensively, so your results may vary.

Answered By SysAdminGuru On

Using `firewall-cmd --version` only gives you the client version, not the firewalld service version, so that's not useful. What you might want to try instead is running `dnf list installed firewalld` or `rpm -qi firewalld` to get more detailed package info. From there, you can determine which version of firewalld added the 'NftablesTableOwner' option! It's definitely a bit of legwork, but it's a more reliable method to narrow it down.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.