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

Re: routing by service



On 8/11/2007 5:18 PM, Leonardo Boselli wrote:
> Currently i have two small groups of computers, one formed by three
> computer plus guests (portables), connected to an ADSL router 

[snip]

> I decided to get a second ADSL link, with the same speed of the first one,
> but with a dynamic address, from a different ISP (to reduce possible
> problems), with a similar setup giving .33 to it) 
> Now i wish the following:
> The first group continue to use the present ISP;
> the second one should use the second ISP except in the following cases:
>   1. is connecting to certain hosts [list A] using certain ports on the
> remote host
> (typycally 25 80 443 631 that have applications that depend on the address
> on the other side)
>   2. is connecting to certain hosts [list B] whitout respect of the port
> used

[snip]

> how to set routing (if possible by dhcp) to use a route for certain >
> remote
> ports and another for the others ?

I tried to trim this as best i could. :)

First, using dhcp to assign gateways based on service isn't going to
work. I think the cheap, fairly reliable solution is to set a single
router with 2 (or more) interfaces. One for each DSL connection. Let
iptables on the router handle the routing issues.

Here's a good howto that may be what you're looking for.

http://linux-ip.net/html/adv-multi-internet.html

For what it's worth, i do this on a net that I admin. simple poor man's
load balancing. I have a T1 and an ADSL connection. In a nutshell, I
push web/ftp/streaming traffic over the dsl line and everything else
over the T1. I don't have a lot of fine grained control, but it does a
good job.

phil



Reply to: