iptables_stop.sh

#!/bin/bash


IPT=/usr/sbin/iptables


$IPT -t filter -P INPUT   ACCEPT
$IPT -t filter -P OUTPUT  ACCEPT
$IPT -t filter -P FORWARD ACCEPT


for i in filter nat mangle
do
    $IPT -t $i -F
    $IPT -t $i -X
done