Re: Starting from scratch w/ multiple uplinks

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Lun 9 mai 2005 17:14, Rafael A Barrero a écrit :
> Hey;
>
> I guess I should have included that aspect : what I want to achieve.
>
> I'd ideally like to use the new (faster line) as the default line for
> traffic, but be able to use the old line just as often depending on
> usage of the new line. However, it wouldn't matter if traffic routed
> randomly either. If one of the two lines is down, obviously use the
> one that is up.

Iproute allows you to route packets according to their iptable's MARK
field... you can randomly mark packets from new connections (with the
appropriate ratio for each link), and route on this criterion.

You should have a script in /etc/ppp/if{up,down}.d/ that changes the
routes if one link goes {up,down}.

>
> I just want to get the most out of both lines at the same time. My
> internal network has two services (http, imap) that need require port-
> forwarding from the router. Other than that the internal network is
> used for surfing the web, ssh, ftp, irc, p2p cients.
>

Your services can listen on both interfaces, no problem with that... you
can have load balancing on those links with multiple DNS records (though
that's not a "good thing" (tm).

Use the iptables MARK to use both at the same time, and the appropriate
iproute setup.

> What about my questions regarding updated documentation for iproute2
> (setting this all up)?

I think the contents of LARTC are enough material for you (and of course,
man iproute, man iptables).



For the record, I've never actually done this kind of setup, I'm just
thinking of what should be done to achieve those things. Somebody correct
me if this is just nonsense.

Regards,

Sylvain

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux