There are instructions ay the link for Rocky 9 and RHEL8.
So those will work on AlmaLinux 8 and 9.
But remember always crate a backup of the confg file, BEFORE making any changes.
Snapshots are even better.
firewall-cmd isn't used on CWP server, in fact it disables it for CSF/LFD.