{"description": "nftables is a subsystem of the Linux kernel providing filtering and classification of network\npackets/datagrams/frames and is the successor to iptables.\nThe <code>nftables</code> service can be disabled with the following command:\n<pre>systemctl disable nftables</pre>", "rationale": "nftables should be disabled if another firewall service is used as it may lead to conflict.", "severity": "medium", "references": {"cis": ["4.3.1.2"], "pcidss4": ["1.2.1", "1.2"]}, "control_references": {"cis": ["4.3.1.2"], "pcidss4": ["1.2.1", "1.2"]}, "components": [], "identifiers": {}, "ocil_clause": "the \"nftables\" is loaded and not masked", "ocil": "To check that the <code>nftables</code> service is disabled in system boot configuration,\nrun the following command:\n<pre>$ sudo systemctl is-enabled <code>nftables</code></pre>\nOutput should indicate the <code>nftables</code> service has either not been installed,\nor has been disabled at all runlevels, as shown in the example below:\n<pre>$ sudo systemctl is-enabled <code>nftables</code><br/> disabled</pre>\n\nRun the following command to verify <code>nftables</code> is not active (i.e. not running) through current runtime configuration:\n<pre>$ sudo systemctl is-active nftables</pre>\n\nIf the service is not running the command will return the following output:\n<pre>inactive</pre>\n\nThe service will also be masked, to check that the <code>nftables</code> is masked, run the following command:\n<pre>$ sudo systemctl show <code>nftables</code> | grep \"LoadState\\|UnitFileState\"</pre>\n\nIf the service is masked the command will return the following outputs:\n\n<pre>LoadState=masked</pre>\n\n<pre>UnitFileState=masked</pre>", "oval_external_content": null, "fixtext": "To disable the nftables service run the following command:\n$ sudo systemctl disable --now nftables\n$ sudo systemctl mask --now nftables", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel and package[nftables]", "platforms": ["system_with_kernel and package[nftables]"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_nftables_disabled.sh", "relative_path": "ubuntu2204/checks/sce/service_nftables_disabled.sh"}, "inherited_platforms": [], "cpe_platform_names": ["package_nftables_and_system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify nftables Service is Disabled", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-nftables/service_nftables_disabled/rule.yml", "template": {"name": "service_disabled", "vars": {"servicename": "nftables", "packagename": "nftables"}, "backends": {}}}