How can I make iptables rules persistent?

It’s best avoid using raw iptables/nftables rules, specifically for newbies.
Otherwise subsystems like virtualization may not work properly.
The recommended firewall solution is firewalld:
Using firewalld :: Fedora Docs

1 Like