Submitted by rulez22 on Sun, 02/05/2012 - 18:01
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
Submitted by JamieCameron on Sun, 02/05/2012 - 18:58 Comment #1
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
Submitted by Sesso on Mon, 04/23/2012 - 00:03 Comment #2
VM also has the defaul virtual host setup which is good too.
Submitted by Locutus on Mon, 04/23/2012 - 12:33 Comment #3
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.