#! /bin/bash 

BUILTIN_CHAINS="INPUT OUTPUT FORWARD"

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

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

OPEN_PORTS=""
test -f  /etc/brickwall/ports.cfg && OPEN_PORTS=$(cat /etc/brickwall/ports.cfg)


echo "--------------[Open Ports]------------------"
for port in ${OPEN_PORTS}; do 
	echo "${port}"
done
echo "============================================="
echo ""


## BLOCK

echo "--------------[Blocking IPs]-----------------"
for ip in ${BLACKLIST_IPS}; do 
	echo "${ip}"
done
echo "============================================="
