
#-----------------------------------------------------------------------
# DESCRIPTION
#-----------------------------------------------------------------------
#
# After installing the module, the user should execute rc.firewall with
# the --update-config parameter. The necessary options will be added to
# the configuration file.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
#  2001-04-19  Dougal Holmes <dholmes@bigpond.net.au>
#              Initial version for 5.1.1
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 3
#a# accept
#i# cluster novirtual
#n# whois
#t# servers
#
#   |--------------------------------------------------------------------|
#d# whois (Port 43 TCP)
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------
#
#-----------------------------------------------------------------------

module_name="whois"         # module name used in options
module_type="servers"       # the module type (clients, servers, etc.)
service_name="WHOIS"        # displayed on-screen
service_port="whois"

for host in `Option_Value accept $INTOPT $module_name $module_type`
do
	Hostports accept remote tcp "$service_name" $host $service_port
done

unset module_name module_type service_name service_port host

