#!/bin/sh
#	firewall-stop-ipchains 0.04
#
#	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-ipchains)"

# FW POLICY ACCEPT			# ESTABLECER POLITICA DEL CORTAFUEGOS
echorun ipchains -P input ACCEPT
echorun ipchains -P forward ACCEPT
echorun ipchains -P output ACCEPT

# DELETE PREVIOUS RULES			# BORRAR REGLAS ANTERIORES
echorun ipchains -F input
echorun ipchains -F forward
echorun ipchains -F output

# DELETE PORT FORWARDING RULES		# BORRAR REGLAS DE REENVIO DE PUERTOS
ipmasqadm portfw -f > /dev/null 2>&1
