Ensure nftables Rules are Permanent
An XCCDF Rule
Description
nftables is a subsystem of the Linux kernel providing filtering and classification of
network packets/datagrams/frames. The nftables service reads the
Rationale
Changes made to nftables ruleset only affect the live system, you will also need to configure the nftables ruleset to apply on boot
- ID
- xccdf_org.ssgproject.content_rule_nftables_rules_permanent
- Severity
- Medium
- References
- Updated
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if ( rpm --quiet -q nftables ); then
var_nftables_master_config_file='<xccdf-1.2:sub xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" idref="xccdf_org.ssgproject.content_value_var_nftables_master_config_file" use="legacy"/>'
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-92485-2
- low_complexity