Want to understand how firewalld works

If you are starting better switch to nft.

See: