Kevin Abbey
2008-Jun-14 15:39 UTC
[CentOS] assigning "best" gateway and routing ---- Re: CentOS Digest, Vol 41, Issue 14
Hi, Regarding the discussion of gateways, Can the Vyatta routing software and/or hardware appliance solution help? (The software is open source and available.) http://www.vyatta.com/documentation/datasheet.php http://www.vyatta.com/documentation/general/Vyatta_FAQ.pdf http://www.vyatta.com/products/vyatta_software_datasheet.pdf http://www.vyatta.com/documentation/index.php Download http://www.vyatta.com/download/ 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 at activenetwerx.com> Subject: RE: [CentOS] assigning "best" gateway via DHCP To: 'CentOS mailing list' <centos at centos.org> Message-ID: <49627735003F5C479100225C339F9FE06FDCEE90BD at 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 at gmail.com> Subject: Re: [CentOS] assigning "best" gateway via DHCP To: CentOS mailing list <centos at centos.org> Message-ID: <4852A5B3.3000603 at 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 at activenetwerx.com> Subject: RE: [CentOS] assigning "best" gateway via DHCP To: CentOS mailing list <centos at centos.org> Message-ID: <49627735003F5C479100225C339F9FE06FDCEE6C1A at 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 ------------------------------