Install nftables Package
An XCCDF Rule
Description
nftables provides a new in-kernel packet classification framework that is based on a network-specific Virtual Machine (VM) and a new nft userspace command line tool. nftables reuses the existing Netfilter subsystems such as the existing hook infrastructure, the connection tracking system, NAT, userspace queuing and logging subsystem. Thenftables
package can be installed with the following command:
$ sudo yum install nftables
Rationale
nftables
is a subsystem of the Linux kernel that can protect against threats
originating from within a corporate network to include malicious mobile code and poorly
configured software on a host.
- ID
- xccdf_org.ssgproject.content_rule_package_nftables_installed
- Severity
- Medium
- Updated
Remediation Templates
A Puppet Snippet
include install_nftables
class install_nftables {
package { 'nftables':
ensure => 'installed',
}
}
An Ansible Snippet
- name: Gather the package facts
package_facts:
manager: auto
tags:
- PCI-DSSv4-1.2
- PCI-DSSv4-1.2.1
script:kickstart
package install nftables
OS Build Blueprint
[[packages]]
name = "nftables"
version = "*"
script:bootc
dnf install nftables
Anaconda Pre-Install Instructions
package --add=nftables
A Shell Script
# Remediation is applicable only in certain platforms
if ( rpm --quiet -q kernel ); then
if ! rpm -q --quiet "nftables" ; then
yum install -y "nftables"
fi