
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-11-17  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Renamed the accept_hostports function to Accept_Hostports.
# 2000-10-14  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.0.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept
#i# cluster
#n# vtun
#t# hosts
#
#   |--------------------------------------------------------------------|
#d# Virtual Tunnel (VTUN) lets you create Virtual Tunnels over TCP/IP 
#d# networks with traffic shaping, compression and encryption.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT vtun hosts`
do
	Accept_Hostports local tcp "VTUN" $host 5000

	[ "$MODE" -gt "1" ] && Accept_Hostports local udp "VTUN" $host 5000
done
unset host

