
#-----------------------------------------------------------------------
# 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-02-15  Edwin ten Brink <edwin@privateer,student.utwente.nl>
#              Changed mode to comply with v5.1
#  2001-02-15  Edwin ten Brink <edwin@privateer,student.utwente.nl>
#              Initial creation for v5.0.1
#              Mode needs to be changed to "23" for higher versions
#              since 5.0.1 denies outgoing UDP in relaxed mode
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 23
#a# accept
#i#
#n# snmp
#t# servers
#
#   |--------------------------------------------------------------------|
#d# snmp (Port 161 UDP)
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------
#
#-----------------------------------------------------------------------

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

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

unset module_name module_type service_name service_port
unset action action_log_msg action_log host

