|
|
|
@ -37,7 +37,7 @@ fw_test() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fw_flush() {
|
|
|
|
|
# raw security
|
|
|
|
|
# We don't use (yet?) these tables: raw, security
|
|
|
|
|
for table in filter nat mangle; do
|
|
|
|
|
iptables --table ${table} --flush
|
|
|
|
|
done
|
|
|
|
@ -52,6 +52,9 @@ case ${1} in
|
|
|
|
|
apply)
|
|
|
|
|
fw_apply
|
|
|
|
|
;;
|
|
|
|
|
flush)
|
|
|
|
|
fw_flush
|
|
|
|
|
;;
|
|
|
|
|
restore)
|
|
|
|
|
fw_restore
|
|
|
|
|
;;
|
|
|
|
|