Re: Multi-ISP in 2.4.0

Jerry Vonau
2005-06-06T12:50:06Z

> >I think that has something to do with using masq instead of snat,
> >having said that,
> >I''d try to use the snat switch in the masq file:
> >ppp0                    eth2            $ipisp1
> >ppp1                    eth2            $ipisp2
> >repeat as required
>
> Ok so the best for now if found out is to do this:
>
> ifconfig ppp1 | grep adr: | awk ''{print $2}''
> adr:84.101.240.204
>
> But as you can see I get also the adr: in my way.
> For the ppp0 I have specified the IP address in the masq file and I
> entered
> also the dynamic ip for ppp1
>
> What do you mean by "using the snat switch in the masq file" ?
>
>
> Manuel
>
>
> Did you restart shorewall?
> Does it work right?
>
> The third column of the masq file,
> if blank=masq
> if populated=snat
> masq= use any ipaddress
> snat= use only this ipaddress
>
> you had masq, so this would be snat:
> $IFISP1                    eth2            $IPISP1
> $IFISP2                    eth2            $IPISP2
>
>
> The params file can look like this
> IFISP1=ppp0
> IFISP2=ppp1
> IPISP1=`find_interface_addresses ppp0 `
> IPISP2=`find_interface_addresses ppp1 `
>
> The params files sets globle variables that you could use anywhere in
> shorewall. I used a variable for the net interface above, just to
> ensure
> that the isp/ip relationship remains constant. You can (should) now
> use
> $IFISP1 wherever you used ppp0 prevously, dido for $IPISP2, just so
> you don''t run into any suprises down the road, cause the
interfaces
> got
> reversed
>
> Jerry
>

Table n9uf:

62.4.16.246 dev ppp0  proto kernel  scope link  src 80.65.224.153
84.101.240.1 dev ppp1  proto kernel  scope link  src 84.101.240.204

Table nerim:

62.4.16.246 dev ppp0  proto kernel  scope link  src 80.65.224.153
84.101.240.1 dev ppp1  proto kernel  scope link  src 84.101.240.204


These can''t be right, you should have only one of the ppp interfaces,
for
that
provider. Can you post your config files please.

Jerry