
#-----------------------------------------------------------------------
# README
#-----------------------------------------------------------------------
#
# These rules were based on <http://www.blizzard.com/support/diablo2/
# problems/ports.shtml>.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-10-16  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.0.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#n# battlenet
#a# accept
#t# hosts
#
#   |--------------------------------------------------------------------|
#d# BattleNet (Diablo2)
#d#
#d# Example:
#d#   accept-eth1-battlenet-hosts = www.battle.net/24
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------


#--------------------------------------------------------------------
# BattleNet (Ports 4000 6112:6119)
#--------------------------------------------------------------------

tcp_ports="4000 6112:6119"
udp_ports="4000 6112:6119"

for host in `Option_Value accept $INTOPT battlenet hosts`
do
	Accept_Hostports local tcp "BattleNet" $host $tcp_ports
	Accept_Hostports local udp "BattleNet" $host $udp_ports
done

unset tcp_ports udp_ports host

