
#-----------------------------------------------------------------------
# README
#-----------------------------------------------------------------------
#
# These rules were based on <http://www.tsmservices.com/masq/
# detailform.php3?217>.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-10-16  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.0.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#N# directx
#A# forward
#T# host
#   |--------------------------------------------------------------------|
#D# DirectX
#D#
#D# You can only enter a single LAN hostname/IP per option.
#D#
#D# Example:
#D#   forward-eth1-directx-host = zaphod.localdomain
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

tcp_ports="2300:2400 47624"
udp_ports="2300:2400 47624 28800:28900"

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

unset tcp_ports udp_ports host

