#!/usr/bin/sh #---------------------------------------------------------------------------- # /etc/ppp/ip-up.portfw - setup portfw # # Creation: 2002-11-24 fm # Last Update: $Id$ # # Copyright (c) 2002-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- ip=${local} . /etc/config.d/routing is_default_route=yes 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/bin/setup-portfw.sh doit "default" "${local}" fi /usr/bin/setup-portfw.sh doit "${interface}" "${local}" echo 'port forwarding: done' fi