#!/bin/sh
#	firewall-stop-iptables 0.03
#
#	Copyright (C) 2000:	Manel Marin <manel3@wanadoo.es>
#	Licence:		GNU GPL version >= 2
#
#
PATH=/usr/lib/firewall-easy:/sbin:/usr/sbin:/bin:/usr/bin


echo "-> Stopping firewall (firewall-stop-iptables)"

# ESTABLECER POLITICA DEL CORTAFUEGOS / FW POLICY ACCEPT
echorun iptables -P INPUT ACCEPT
echorun iptables -P FORWARD ACCEPT
echorun iptables -P OUTPUT ACCEPT

# BORRAR REGLAS ANTERIORES / DELETE PREVIOUS RULES
echorun iptables -F			# flush everything
echorun iptables -t nat -F
echorun iptables -t mangle -F
echorun iptables -X			# delete all chains
echorun iptables -t nat -X
echorun iptables -t mangle -X
