
#-----------------------------------------------------------------------
# DESCRIPTION
#-----------------------------------------------------------------------
#
# Support the DHIS.ORG dhid software.
#
# To install, copy this file to /etc/firewall/modules/public/services/
# 360-dhis-servers and execute rc.firewall with the --update-config
# parameter. The proper options will be added to the configuration file.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-10-30  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.0.1.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#A# accept
#N# dhis
#T# servers
#
#   |--------------------------------------------------------------------|
#D# Allow outgoing dhid packets to DHIS.ORG servers.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT dhis servers`
do
	echo "Accept $INTOPT $IPADDR Port# 58000:58001/udp -> $host Port# $UNPRIVPORTS $LOG_MSG"
	ipchains -A $OUTCHAIN -j ACCEPT -p udp -s $IPADDR 58000:58001 -d $host $UNPRIVPORTS $LOG
done
unset host

