Iptables config location?

I was wondering if someone could tell me, when you install CentOS and you set the firewall in the installation what directory does it store the rules in?

What happened was that I was trying to open a port in webmin and something happened and it cleared my firewall rules and now I can't add them back. So I was hoping I could install CentOS on another computer and just copy the firewall rule file to the server from the spare box. This should work shouldn't it? I don't want to have to remake the rules from scratch...

 

 

 

 

Top