
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept ports
#i# cluster
#n# proxy
#t# clients
#v# ports 8000
#
#   |--------------------------------------------------------------------|
#d# Accept connections on your public proxy server (squid, junkbuster, 
#d# etc.) from these clients. You must also specify the port numbers in
#d# 'port' option.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT proxy clients`
do
	for port in `Option_Value ports $INTOPT proxy clients`
	do
		echo "Accept $INTOPT $IPADDR Proxy Port# $port <- $host $log_msg"
		ipchains -A $INCHAIN  -j ACCEPT -p tcp -s $host $UNPRIVPORTS -d $IPADDR $port $LOG
		ipchains -A $OUTCHAIN -j ACCEPT -p tcp ! -y -s $IPADDR $port -d $host $UNPRIVPORTS $LOG
	done
done
unset host port

