#! /bin/bash -x


BLACKLIST_IPS=""
test -f  /etc/brickwall/blacklist.cfg && BLACKLIST_IPS=$(cat /etc/brickwall/blacklist.cfg)
#BLACKLIST_IPS=$(cat blacklist.cfg)

cd $(dirname $0);
source core-firewall.sh

for ip in ${BLACKLIST_IPS}; do 
	${IPTCMD} -A INPUT -s ${ip} -j DROP
done
