Lines 35-41
Link Here
|
35 |
esac |
35 |
esac |
36 |
local chain |
36 |
local chain |
37 |
for chain in ${chains} ; do |
37 |
for chain in ${chains} ; do |
38 |
${iptables_bin} -t ${table} -P ${chain} ${policy} |
38 |
${iptables_bin} -w -t ${table} -P ${chain} ${policy} |
39 |
done |
39 |
done |
40 |
} |
40 |
} |
41 |
|
41 |
|
Lines 73-80
Link Here
|
73 |
for a in $(cat ${iptables_proc}) ; do |
73 |
for a in $(cat ${iptables_proc}) ; do |
74 |
set_table_policy $a ACCEPT |
74 |
set_table_policy $a ACCEPT |
75 |
|
75 |
|
76 |
${iptables_bin} -F -t $a |
76 |
${iptables_bin} -w -F -t $a |
77 |
${iptables_bin} -X -t $a |
77 |
${iptables_bin} -w -X -t $a |
78 |
done |
78 |
done |
79 |
eend $? |
79 |
eend $? |
80 |
} |
80 |
} |
Lines 85-92
Link Here
|
85 |
ebegin "Flushing firewall" |
85 |
ebegin "Flushing firewall" |
86 |
local a |
86 |
local a |
87 |
for a in $(cat ${iptables_proc}) ; do |
87 |
for a in $(cat ${iptables_proc}) ; do |
88 |
${iptables_bin} -F -t $a |
88 |
${iptables_bin} -w -F -t $a |
89 |
${iptables_bin} -X -t $a |
89 |
${iptables_bin} -w -X -t $a |
90 |
done |
90 |
done |
91 |
eend $? |
91 |
eend $? |
92 |
|
92 |
|
Lines 121-128
Link Here
|
121 |
local a |
121 |
local a |
122 |
ebegin "Dropping all packets" |
122 |
ebegin "Dropping all packets" |
123 |
for a in $(cat ${iptables_proc}) ; do |
123 |
for a in $(cat ${iptables_proc}) ; do |
124 |
${iptables_bin} -F -t $a |
124 |
${iptables_bin} -w -F -t $a |
125 |
${iptables_bin} -X -t $a |
125 |
${iptables_bin} -w -X -t $a |
126 |
|
126 |
|
127 |
set_table_policy $a DROP |
127 |
set_table_policy $a DROP |
128 |
done |
128 |
done |