
#-----------------------------------------------------------------------
# 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# printer
#t# clients
#
#   |--------------------------------------------------------------------|
#d# Accept UNIX printer (aka lpd) connections from these clients.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT printer clients`
do
	echo "Accept $INTOPT $IPADDR PRINTER <- $host $LOG_MSG"
	ipchains -A $INCHAIN -j ACCEPT -p tcp -s $host $PRIVPORTS -d $IPADDR printer $LOG
	ipchains -A $OUTCHAIN -j ACCEPT -p tcp ! -y -s $IPADDR printer -d $host $PRIVPORTS $LOG
done
unset host

