{"description": "Firewalld (Dynamic Firewall Manager) provides a dynamically managed firewall with\nsupport for network/firewall \u201czones\u201d to assign a level of trust to a network and its\nassociated connections, interfaces or sources. It has support for IPv4, IPv6, Ethernet\nbridges and also for IPSet firewall settings. There is a separation of the runtime and\npermanent configuration options.\n\nThe <code>firewalld</code> service can be disabled with the following command:\n<pre>$ sudo systemctl mask --now firewalld.service</pre>", "rationale": "Running Firewalld along other service with the same functionality may lead to conflict\nand unexpected results.", "severity": "medium", "references": {}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "the \"firewalld\" is loaded and not masked", "ocil": "To check that the <code>firewalld</code> service is disabled in system boot configuration,\nrun the following command:\n<pre>$ sudo systemctl is-enabled <code>firewalld</code></pre>\nOutput should indicate the <code>firewalld</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>firewalld</code><br/> disabled</pre>\n\nRun the following command to verify <code>firewalld</code> is not active (i.e. not running) through current runtime configuration:\n<pre>$ sudo systemctl is-active firewalld</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>firewalld</code> is masked, run the following command:\n<pre>$ sudo systemctl show <code>firewalld</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 firewalld service run the following command:\n$ sudo systemctl disable --now firewalld\n$ sudo systemctl mask --now firewalld", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 service firewalld must be disabled.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[firewalld]", "platforms": ["package[firewalld]"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_firewalld_disabled.sh", "relative_path": "ubuntu2204/checks/sce/service_firewalld_disabled.sh"}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_firewalld"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Verify firewalld service disabled", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-firewalld/firewalld_deactivation/service_firewalld_disabled/rule.yml", "template": {"name": "service_disabled", "vars": {"servicename": "firewalld", "packagename": "firewalld"}, "backends": {}}}