
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-10-14  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.0.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept
#i# cluster
#n# proxy
#t# clients
#
#   |--------------------------------------------------------------------|
#d# Accept connections on your public proxy server (squid, junkbuster, 
#d# etc.) from these clients. You must also specify the port numbers in
#d# the following option.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT proxy clients`
do
	for port in `Option_Value accept $INTOPT proxy ports`
	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

