{"description": "Any ports that have been opened on non-loopback addresses\nneed firewall rules to govern traffic.", "rationale": "Without a firewall rule configured for open ports default\nfirewall policy will drop all packets to these ports.", "severity": "medium", "references": {"cis": ["4.1.6"]}, "control_references": {"cis": ["4.1.6"]}, "components": [], "identifiers": {}, "ocil_clause": "open ports are denied connection", "ocil": "Run the following command to determine open ports:\n<pre># ss -tuln</pre>\nRun the following command to determine firewall rules:\n<pre># ufw status verbose</pre>\nFor each port identified in the audit which does not have a firewall\nrule, add rule for accepting or denying inbound connections\n<pre># ufw allow in <port>/<tcp or udp protocol></pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"general": "Changing firewall settings while connected over network can\nresult in being locked out of the system."}], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[ufw]", "platforms": ["package[ufw]"], "sce_metadata": {"platform": ["multi_platform_ubuntu"], "check-import": "stdout", "environment": "any", "filename": "ufw_rules_for_open_ports.sh", "relative_path": "ubuntu2204/checks/sce/ufw_rules_for_open_ports.sh"}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_ufw"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Ensure ufw Firewall Rules Exist for All Open Ports", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-ufw/ufw_rules_for_open_ports/rule.yml", "template": null}