#!/bin/sh

rmmod ip_tables
rmmod iptable_filter
rmmod ip_conntrack
rmmod ip_conntrack_ftp
rmmod ipt_state
rmmod iptable_nat
rmmod ip_nat_ftp
rmmod ipt_MASQUERADE
rmmod ipt_LOG
rmmod ipt_REJECT


echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -Z
iptables -F
iptables -t nat         -F PREROUTING
iptables -t nat         -F OUTPUT
iptables -t nat         -F POSTROUTING
iptables -t mangle      -F PREROUTING
iptables -t mangle      -F OUTPUT
iptables -X
iptables -P INPUT       ACCEPT
iptables -P FORWARD     ACCEPT
iptables -P OUTPUT     ACCEPT

