
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept
#n# earthandbeyond
#t# servers
#
# |--------------------------------------------------------------------|
#d# Earth and Beyond (Ports 3000-4000 UDP, 3801 TCP)
#d#
#d# Example: (IP shown is EA's, and should work)
#d# accept-eth0-earthandbeyond-servers = 159.143.232.0/24
#d#
# |--------------------------------------------------------------------|
#
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------
module_name="earthandbeyond"	# module name used in options
module_type="servers"		# module type (clients, servers, etc.)
tcp_ports="3801"			# TCP ports used for login
udp_ports="3000:4000"		# UDP ports used for gaming

action_log="$LOG"
action_log_msg="$LOG_MSG"

for host in `Option_Value accept $INTOPT $module_name $module_type`
do
	Hostports accept remote tcp "Earth and Beyond Login" $host $tcp_ports
	Hostports accept remote udp "Earth and Beyond game server" $host $udp_ports
done

unset module_name module_type tcp_ports udp_ports
unset action_log_msg action_log host
