#!/bin/bash
#
# iptables firewall script
# Filename: /usr/local/sbin/fw-off.sh
#
# Reset all iptables rules and permit all traffic

IPTABLES=/usr/sbin/iptables

set -x

####################
## Reset iptables ##
####################
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -t nat -F
$IPTABLES -t mangle -F
$IPTABLES -F
$IPTABLES -X
