summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/network/drakfirewall.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 91dcf97..2b89313 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
(might help #1015 & the like)
- drakfirewall:
o fix listing NFS ports
+ o fix cleaning old rules
1.4:
- adapt to drakxtools-13.92+ API change
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index 6ce6b13..4a18a04 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -291,7 +291,7 @@ sub set_ifw {
}
substInFile {
- undef $_ if $_ eq "INCLUDE /etc/ifw/rules", "iptables -I INPUT 2 -j Ifw";
+ undef $_ if member($_, "INCLUDE /etc/ifw/rules", "iptables -I INPUT 2 -j Ifw");
} "$::prefix/etc/shorewall/start";
network::shorewall::set_in_file('start', $enabled, "INCLUDE /etc/ifw/start", "INCLUDE /etc/ifw/rules", "iptables -I INPUT 1 -j Ifw");
network::shorewall::set_in_file('stop', $enabled, "iptables -D INPUT -j Ifw", "INCLUDE /etc/ifw/stop");