--- /etc/init.d/iptables +++ /etc/init.d/iptables @@ -179,6 +179,17 @@ return $RETVAL } +unload_modules() +{ + local t + + for t in $tables; do + local m="${IPV}table_${t}" + action "Unloading module $m:" modprobe -r "$m" + done + return 0 +} + fwstatus() { local i @@ -233,7 +244,8 @@ { if read_tables; then set_policy ACCEPT && - flush_delete + flush_delete && + unload_modules RETVAL=$? else printf %s $"$IPTABLES firewall is not started"