Firewalls are relevant to the NIS2 law because they are a critical component of the security measures that organizations must implement to protect their network and information systems. Firewalls help ensure the integrity, confidentiality, and availability of the data and services that are essential for complying with NIS2 requirements.