#!/bin/sh
#	antispoofppp-down 0.01
#
#	Copyright (C) 2000:	Manel Marin <manel3@apdo.com>
#	Licence:		GNU GPL version >= 2
#
#	Quitar de cortafuegos regla antispoof a la IP dinamica asignada por
#	el ISP a la conexin PPP y registrar en el log la desconexin
#

exec 2>&1	# Enviar errores a stdout ( Gracias a Luis Colorado ;)


IFACE_INET=$PPP_IFACE
IP_DINAMICA=$PPP_LOCAL


echo "`date '+%b %d %H:%M:%S'` antispoofppp-down:\
  Quitando regla antispoof de IP $IP_DINAMICA asignada a $IFACE_INET"


# LANZAR EL SCRIPT ADECUADO AL KERNEL
runfwscript antispoofppp-down	# Esto lanza x-ipchains, etc...


# MENSAJE DE CONEXION
logger -p daemon.warn -t pppd -- "----------Desconectados: $PPP_IFACE"
