aboutsummaryrefslogtreecommitdiffstats
path: root/main/iptables/iptables.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/iptables/iptables.initd')
-rw-r--r--main/iptables/iptables.initd14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/iptables/iptables.initd b/main/iptables/iptables.initd
index d158e3d625..0f906eed7e 100644
--- a/main/iptables/iptables.initd
+++ b/main/iptables/iptables.initd
@@ -43,7 +43,7 @@ set_table_policy() {
esac
local chain
for chain in ${chains} ; do
- ${iptables_bin} -t ${table} -P ${chain} ${policy}
+ ${iptables_bin} -w 5 -t ${table} -P ${chain} ${policy}
done
}
@@ -91,8 +91,8 @@ stop() {
for a in $(cat ${iptables_proc}) ; do
set_table_policy $a ACCEPT
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
+ ${iptables_bin} -w 5 -F -t $a
+ ${iptables_bin} -w 5 -X -t $a
done
eend $?
}
@@ -102,8 +102,8 @@ reload() {
ebegin "Flushing firewall"
local a
for a in $(cat ${iptables_proc}) ; do
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
+ ${iptables_bin} -w 5 -F -t $a
+ ${iptables_bin} -w 5 -X -t $a
done
eend $?
@@ -126,8 +126,8 @@ panic() {
local a
ebegin "Dropping all packets"
for a in $(cat ${iptables_proc}) ; do
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
+ ${iptables_bin} -w 5 -F -t $a
+ ${iptables_bin} -w 5 -X -t $a
set_table_policy $a DROP
done