
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 23
#a# accept
#i# cluster novirtual
#n# syslog
#t# servers
#
#   |--------------------------------------------------------------------|
#d# In strict mode, messages sent to remote syslog servers are denied.
#d# You can enter the host names of specific servers where you send 
#d# syslog messages. All other destinations will be blocked in strict 
#d# mode.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT syslog servers`
do
	echo "Accept $INTOPT $IPADDR -> $host SYSLOG $LOG_MSG"
	if [ "$CLUSTER_NAME" ]
	then
		ipchains -A $INCHAIN  -j ACCEPT -p udp -s $IPADDR $UNPRIVPORTS -d $host syslog $LOG
		ipchains -A $INCHAIN  -j ACCEPT -p udp -s $IPADDR syslog       -d $host syslog $LOG
	else
		ipchains -A $OUTCHAIN -j ACCEPT -p udp -s $IPADDR $UNPRIVPORTS -d $host syslog $LOG
		ipchains -A $OUTCHAIN -j ACCEPT -p udp -s $IPADDR syslog       -d $host syslog $LOG
	fi
done
unset host

