#!/bin/sh
#----------------------------------------------------------------------------
# /etc/ppp/ip-up400.portfw - setup portfw
#
# Creation:     23.07.2001  tg
# Last Update:  $Id: ip-up400.portfw 5836 2004-06-23 14:27:08Z lanspezi $
#----------------------------------------------------------------------------

if [ -f /etc/portfw.conf ]  # is portfw configured?
then
    echo "initializing port forwarding..."
    
    if [ "$is_default_route" = "yes" ]  # is a default-route-interface going up
    then
        /usr/local/bin/setup-portfw.sh doit "default" "$local"
    fi

    /usr/local/bin/setup-portfw.sh doit "$interface" "$local"
    
    echo 'port forwarding: done'
fi
