
#-----------------------------------------------------------------------
# DESCRIPTION
#-----------------------------------------------------------------------
#
# To install, copy this file to /etc/firewall/modules/public/services/
# 220-winvnc-clients and execute rc.firewall with the --update-config
# parameter. The proper options will be added to the configuration file.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2001-04-21  Jean-Sebastien Morisset <jsmoriss@mvlan.net>
#             Changed Accept_Hostports function call to Hostports.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept ignore deny
#i# cluster
#n# winvnc
#t# clients
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

module_name="winvnc"        # module name used in options
module_type="clients"       # the module type (clients, servers, etc.)
service_name="WinVNC"       # displayed on-screen
service_port="5900"         # port number for this service

for action in ignore deny accept
do
	for host in `Option_Value $action $INTOPT $module_name $module_type`
	do
		Hostports $action local tcp "$service_name" $host $service_port
	done
done

unset module_name service_name service_port
unset action action_log_msg action_log host

