#!/bin/sh
#
# isabsinit		This script sets ISABS packet filtering up.
#
# chkconfig: 2345 09 91
# description: 	This script sets ISABS packet filtering up.
#
# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/i18n
export LANG

RETVAL=$?

#
# this is required to avoid system logging intercepting input/output
# action on
#

case "$1" in
 start)
	iptables -N ISABS
	iptables -I INPUT -j ISABS
	iptables -A ISABS -m state ! --state ESTABLISHED,RELATED -j REJECT
	;;
 stop)
	iptables -D INPUT -j ISABS
	iptables -F ISABS
	iptables -X ISABS
	;;
 *)
 	echo "Usage: $0 {start|stop}"
	exit 1
	;;
esac

exit $RETVAL
