Iptables rules - easy export feature?

FEATURE REQUEST:
Would that be nice to see feature to easily export/import all IPTABLES rules in to a file.
From personal experience it takes hours to put them in if you have huge list of ips for DDOSers, Spammers, unnecessary site crawlers and grabbers.
Thanks

Status: 
Active

Comments

The simplest way to do this would be to copy the file containing firewall rules from one system to another, and then apply the configuration on the new system. The file on CentOS / redhat is /etc/sysconfig/iptables

VM also has the defaul virtual host setup which is good too.

You could also try the "Backup Configuration Files" module of Webmin. I've never tested that with the iptables rules, but if it does what I'd expect it to do, it should be usable to migrate the rules in a Webmin-compatible format from one server to another.