问题原文
原帖链接 · Larsen · CC BY-SA 3.0
I want to copy the firewall configuration for iptables from one server to the other. Both servers run Debian Squeeze and have Webmin 1.660 installed, so I want to copy the configuration that Webmin uses.
I couldn´t find it in "/var/webmin", in "/etc/iptable*", "/etc/sysconfig/iptables", or in "iptables.up.rules".
"/var/lib/iptables/active" is the current configuration and when I edit it, those changes won´t show up in Webmin. Though, when I click on "Revert Configuration" my changes are lost in that file and replaced.
Which file do I have to copy?
已采纳解答
原帖链接 · Larsen · CC BY-SA 3.0
Hmm, seems I must have done something wrong before, because you can simply replace "/var/lib/iptables/active" with the content or file you need and in Webmin click on the "Showing IPtable" button to have Webmin reload and display the new rules.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
