
#-----------------------------------------------------------------------
# README
#-----------------------------------------------------------------------
#
# To install, copy this file to /etc/firewall/modules/public/services/
# 008-pptp-servers. Execute rc.firewall with the --update-config 
# parameter. This will add the new options to the configuration file.
#
#-----------------------------------------------------------------------
# CHANGES
#-----------------------------------------------------------------------
#
# 2000-11-20  Jean-Sebastien Morisset <jsmoriss@jsm-mv.dyndns.org>
#             Initial module written for v5.1.
#
#-----------------------------------------------------------------------
# MODULE CONFIGURATION
#-----------------------------------------------------------------------
#
#m# 123
#a# accept
#i# cluster
#n# pptp
#t# servers
#
#   |--------------------------------------------------------------------|
#d# Servers you'll be communicating with via a PPTP tunnel.
#   |--------------------------------------------------------------------|
#
#-----------------------------------------------------------------------
# START OF MODULE CODE
#-----------------------------------------------------------------------

for host in `Option_Value accept $INTOPT pptp servers`
do
	echo "Accept $INTOPT $IPADDR PPTP <-> $host PPTP $LOG_MSG"
	ipchains -A $INCHAIN  -j ACCEPT -p 47 -s $host -d $IPADDR $LOG
	ipchains -A $OUTCHAIN -j ACCEPT -p 47 -s $IPADDR -d $host $LOG
done
unset host

