Not sure what you’re trying to achieve here, but you should know that the iptables command is just for inspecting and making changes on the fly. They are not persistent. The underlying firewalld framework is used to manage the kernel firewall dynamically. This is where you need to make an required changes. If you want to add custom firewall rules, consider using firewalld direct rules…