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

Update CIS controls related to nftables table and chains #10629

Merged

Conversation

marcusburghardt
Copy link
Member

Description:

Update CIS requirements about nftables table and base chains in RHEL8 and RHEL9.
RHEL systems use firewalld for firewall management. Although nftables is the default back-end for firewalld, it is not recommended to use nftables directly when firewalld is in use.

  • Ensure nftables base chains exist (Automated)
    • When using firewalld the base chains are installed by default.
  • Ensure an nftables table exists (Automated)
    • firewalld uses the inet firewalld that is created when firewalld is installed. The OVAL check cannot be automated but an SCE is availble.

Rationale:

RHEL systems use firewalld for firewall management. Although nftables
is the default back-end for firewalld, it is not recommended to use
nftables directly when firewalld is in use. When using firewalld the
base chains are installed by default. The respective requirements for
RHEL8 and RHEL9 were updated to supported.
RHEL systems use firewalld for firewall management. Although nftables
is the default back-end for firewalld, it is not recommended to use
nftables directly when firewalld is in use. firewalld uses the inet
firewalld that is created when firewalld is installed. The OVAL check
cannot be automated but an SCE is availble.
@marcusburghardt marcusburghardt added RHEL9 Red Hat Enterprise Linux 9 product related. RHEL8 Red Hat Enterprise Linux 8 product related. CIS CIS Benchmark related. labels May 24, 2023
@marcusburghardt marcusburghardt added this to the 0.1.68 milestone May 24, 2023
@marcusburghardt marcusburghardt requested a review from a team as a code owner May 24, 2023 19:56
@Mab879 Mab879 self-assigned this May 24, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

RHEL systems use firewalld for firewall management. In case the nftables
is the firewall backend used by firewalld, an inet firewalld table
should be present.
@codeclimate
Copy link

codeclimate bot commented May 24, 2023

Code Climate has analyzed commit 8452db6 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 52.5% (0.0% change).

View more on Code Climate.

@Mab879 Mab879 merged commit ccf34d5 into ComplianceAsCode:master May 24, 2023
32 checks passed
@marcusburghardt marcusburghardt deleted the cis_nftables_supported branch May 25, 2023 06:07
@jan-cerny jan-cerny added the Update Profile Issues or pull requests related to Profiles updates. label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CIS CIS Benchmark related. RHEL8 Red Hat Enterprise Linux 8 product related. RHEL9 Red Hat Enterprise Linux 9 product related. Update Profile Issues or pull requests related to Profiles updates.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CIS 3.4.3.3 Ensure base chains exist (Scored)
3 participants