On Sat, 6 Sep 2003 07:36 pm, Emmanuel Lacour wrote: > On Thu, Sep 04, 2003 at 02:24:35PM +0200, Sz?ts R�bert wrote: > > Does anyone know how can I put iptables firewall script onto a firewall > > where is more ppp connectoins? Expl. > > > > There is a firewall with two dsl connection the first is ppp0 the 2nd is > > the ppp1. It's clear. > > > > How can I build firewall If I do not know which dsl connection wil be the > > ppp0 or the ppp1? > > See /etc/ppp/ip-up and /etc/ppp/ip-down they give an $PPP_IFACE to > scripts you will put in ip-up.d and ip-down.d > > To be sure to get the same pppx to each connection see the parameter > "unit" for pppd. (put "unit 0" to /etc/ppp/peers/dsl-provider-0 and > "unit 1" to /etc/ppp/peers/dsl-provider-1).
You can also use the PPP_IPPARAM variable set by the ip-up scripts to differentiate the connections by name, regardless of the ppp+ device it ends up using. t -- GPG : http://n12turbo.com/tarragon/public.key -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

