Skip to content

firewall_manager: Add fallbacks when missing kernel modules#3511

Open
litian1992 wants to merge 1 commit intoAzure:developfrom
litian1992:litian-missing-modules
Open

firewall_manager: Add fallbacks when missing kernel modules#3511
litian1992 wants to merge 1 commit intoAzure:developfrom
litian1992:litian-missing-modules

Conversation

@litian1992
Copy link
Contributor

@litian1992 litian1992 commented Dec 17, 2025

Description

There are firewall rules invoked without checking the existence of the dependent kernel modules, e.g. xt_owner and xt_conntrack. These modules reside in kernel-modules-extra in distros like RHEL. The kernel-modules-extra package is not a dependency of iptables in terms of UKI. Thus the existence deserves checking. In case they are not present, fallback to nftables from iptables; to network-setup service from firewall-cmd respectively.

Issue #3510

PR information

  • Ensure development PR is based on the develop branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines


Distro maintenance information, if applicable

  • This is a contribution from a distro maintainer
  • The changes in this PR have been taken as a downstream patch (Note: it is not recommended to patch the agent without upstream review and approval)

Modules xt_owner and xt_conntrack are located in kernel-modules-extra
package for distros like RHEL. In case they are not present, fallback
to nftables from iptables; to network-setup service from firewall-cmd
respectively.

Signed-off-by: Li Tian <litian@redhat.com>
@litian1992 litian1992 force-pushed the litian-missing-modules branch from 1ddb664 to 2ee7000 Compare January 8, 2026 03:54
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

Successfully merging this pull request may close these issues.

2 participants