
#-----------------------------------------------------------------------
# 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# forward
#T# host
#   |--------------------------------------------------------------------|
#D# BattleNet (Diablo2)
#D#
#D# You can only enter a single LAN hostname/IP per option.
#D#
#D# Example:
#D#     forward-eth1-battlenet-host = trillian.localdomain
#D#   forward-eth1:1-battlenet-host = babblefish.localdomain
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

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

for host in `Option_Value forward $INTOPT battlenet host`
do
	Forward_Hostports tcp "BattleNet" $host $tcp_ports
	Forward_Hostports udp "BattleNet" $host $udp_ports
done

unset tcp_ports udp_ports host

