I have not ye used this. I'd be interested to learn of others
experiences with this.
Kevin
--
Kevin C. Abbey
System Administrator
BioMaPS Institute and Chemistry Department
Rutgers University
Piscataway, NJ 08854
CentOS Digest, Vol 41, Issue 14
Relevant emails only here:
------------------------------ Message: 2 Date: Fri, 13 Jun 2008
06:29:58 -0600 From: "Joseph L. Casale"
JCasale@activenetwerx.com
Subject: RE: [CentOS] assigning "best" gateway via DHCP To: 'CentOS
mailing list'
centos@centos.org Message-ID:
49627735003F5C479100225C339F9FE06FDCEE90BD@Mail.activenetwerx.int
Content-Type: text/plain; charset=us-ascii
> >What might I do Linux-wise to create a "system" that looked at multiple
> >gateways and then assigned (via DHCP) the gateway that was the least
> >congested?
> >
> >Anyone have any good suggestions in this department?
>
Your assumption is that the level of congestion would remain unchanged for the
length of the lease? Maybe an alternative is something that hands out one gateway
then decides possibly what ip to masquerade with.
jlc
------------------------------
------------------------------
Message: 7
Date: Fri, 13 Jun 2008 09:52:03 -0700
From: Rogelio
scubacuda@gmail.com
Subject: Re: [CentOS] assigning "best" gateway via DHCP
To: CentOS mailing list
centos@centos.org
Message-ID:
4852A5B3.3000603@gmail.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Joseph L. Casale wrote:
>> >> What might I do Linux-wise to create a "system" that looked at multiple
>> >> gateways and then assigned (via DHCP) the gateway that was the least
>> >> congested?
>> >>
>> >> Anyone have any good suggestions in this department?
>>
> >
> > Your assumption is that the level of congestion would remain unchanged for the
> > length of the lease? Maybe an alternative is something that hands out one gateway
> > then decides possibly what ip to masquerade with.
>
This is a good idea, thanks. So, I'm assuming that you mean something
like this?
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/
------------------------------
Message: 8
Date: Fri, 13 Jun 2008 11:13:16 -0600
From: "Joseph L. Casale"
JCasale@activenetwerx.com
Subject: RE: [CentOS] assigning "best" gateway via DHCP
To: CentOS mailing list
centos@centos.org
Message-ID:
49627735003F5C479100225C339F9FE06FDCEE6C1A@Mail.activenetwerx.int
Content-Type: text/plain; charset=us-ascii
> >This is a good idea, thanks. So, I'm assuming that you mean something
> >like this?
> >
> >
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/
>
Yeah,
I don't know how "sexy" the solution would be, but you could poll for throughput/availability
with a script, then rewrite the iptables rule for example taking the new, preferred outside route as
your new external IP to masq with. It would be functional, and given the external link your moving
away from is likely down you probably don't have to worry about existing connections, or do you? :)
Once you rewrite the rule and refresh it, current connections getting masq'ed will be killed. If your
in the middle of secure connection to something/someone or a download, it will be terminated.
There is *no* way of maintaining any connection between different paths in this situation unless you
specifically have something setup with your provider that is aggregated across {n} connections, but then
we wouldn't be discussing this:)
jlc
------------------------------