Firewall Backend
In Rocky Linux 9, nftables is the default firewall backend for firewalld.
Zone Assignment
It is possible to assign zones to connections (e.g. NetworkManager), interfaces and source addresses.
To add source addresses to a zone. See Firewalld Specify Zone by IP Address.
Features
List Zones
Port Redirection (IPv4)
Intra-Zone Forwarding
forward: yes
only works intra-zone. It does not cross zone barriers.
When enabled in the default zone, intra zone forwarding can only be applied to the interfaces and sources that have been explicitly added to the current default zone. It can not use a catch-all for all outgoing interfaces as this would allow packets to forward to an interface or source assigned to a different zone.
Inter-Zone Forwarding with Policy Objects
Inter-zone forwarding is rejected by default.
chain filter_FWD_public {
jump filter_FWD_public_allow
[..snip..]
reject with icmpx admin-prohibited
}
chain filter_FWD_public_allow {
oifname "enp0s3" accept
}
With negative priorities, policies apply before rules in zones and can be used to override default behavior.