#!/bin/sh
#----------------------------------------------------------------------------
# /etc/ppp/ip-up400.portfw - setup portfw
#
# Creation:     23.07.2001  tg
# Last Update:  $Id: ip-up400.portfw.new 6220 2004-08-16 09:30:01Z jw5 $
#----------------------------------------------------------------------------

if [ -f /etc/portfw-new.conf ]  # is portfw configured?
then
    if [ "$is_default_route" = "yes" ]  # is a default-route-interface going up
    then
	echo 'initializing port forwarding...'
        /usr/local/bin/setup-portfw-new.sh up dynamic $local
	echo 'port forwarding: done'
    else
	echo 'ignoring portforwardings for non default route interface'
    fi
fi
