summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 14:46:17 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 14:46:17 +0000
commit92f025d111c325a14ea3a4dd79b7a45a5be2d1d9 (patch)
tree606cc6cb4f4e835f5d51f14b78d7562253cdbc0a /lib
parent1aed0b06c953bc4211b6f18ac9f93d9b2fd67259 (diff)
downloaddrakx-net-92f025d111c325a14ea3a4dd79b7a45a5be2d1d9.tar
drakx-net-92f025d111c325a14ea3a4dd79b7a45a5be2d1d9.tar.gz
drakx-net-92f025d111c325a14ea3a4dd79b7a45a5be2d1d9.tar.bz2
drakx-net-92f025d111c325a14ea3a4dd79b7a45a5be2d1d9.tar.xz
drakx-net-92f025d111c325a14ea3a4dd79b7a45a5be2d1d9.zip
remove old Ifw rule if needed
Diffstat (limited to 'lib')
-rw-r--r--lib/network/drakfirewall.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index 537790c..819b270 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -240,6 +240,9 @@ sub set_ifw {
$_ .= join("\n", @list) . "\n" if eof && $enabled;
} "$::prefix/etc/shorewall/$file";
};
+ substInFile {
+ undef $_ if $_ eq "INCLUDE /etc/ifw/rules", "iptables -I INPUT 2 -j Ifw";
+ } "$::prefix/etc/shorewall/start";
$set_in_file->('start', "INCLUDE /etc/ifw/start", "INCLUDE /etc/ifw/rules", "iptables -I INPUT 1 -j Ifw");
$set_in_file->('stop', "iptables -D INPUT -j Ifw", "INCLUDE /etc/ifw/stop");
}