RE: Multi-ISP with one Dynamic IP

Manuel Goepfert
2006-03-24T14:45:54Z

-----Message d''origine-----
De : shorewall-users-admin@lists.sourceforge.net
[mailto:shorewall-users-admin@lists.sourceforge.net] De la part de Chris
Mason (Lists)
Envoyé : vendredi 24 mars 2006 14:55
À : shorewall-users@lists.sourceforge.net
Objet : Re: [Shorewall-users] Multi-ISP with one Dynamic IP

Wonderful, thanks. What I was not sure was whether you could use the
params variables in the masq parameters, obviously you can. Now,
presumably the variables are set on startup, how can we make shorewall
restart on change of ip?

====================================================
Hello,

On my gateway running on Debian I''ve added the following scripts in
/etc/ppp/ip-up.d/

==================== script =================#!/bin/sh
#
# ip-up script for ddclient

# # These variables are for the use of the scripts run by run-parts
# PPP_IFACE="$1"
# PPP_TTY="$2"
# PPP_SPEED="$3"
# PPP_LOCAL="$4"
# PPP_REMOTE="$5"
# PPP_IPPARAM="$6"

if=ppp0

# Check, if this is the interface ppp0
if [ ! $if = $PPP_IFACE ]; then
  exit 0
fi

/sbin/shorewall restart

==================== script =================
Manuel