Re: Routing based on tcp/ip session limit
I thing the better way is your load-balancing using iproute2 (like your exemple),
but you will need make nat using SNAT, not MASQUERADE in your iptables.
Abraços
Gilberto
On Tue, 16 May 2006 16:59:48 -0300
"Tom Lobato" <tomlobato@gmail.com> wrote:
> Hi,
>
>
> My ADSL provider in Brazil give us a link with a limit of 30 tcp/ip
> sessions. So, for a especific use, I will buy another link with the 30
> limit but lesser bandwidth. But how to tell linux to only use second
> link when first is full (30 limit reached)?
>
> Or, how to use the two links in a better way than the below command?
>
> ip route add default scope global \
> nexthop via $gw1 dev $dev1 weight 3 \
> nexthop via $gw2 dev $dev2 weight 1
>
>
> Thank you
> Tom
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: