Re: source ip based outbound routing & multiple internet links

From: Zhang Huanjie <>
Date: Wed, 31 May 2000 18:40:44 +0800 (CST)

On Wed, 31 May 2000, colm ennis wrote:
> > two internet links via different isps. inbound routing is to the different ip subnets
> > provided by the isps. outbound routing is done by inspecting the source ip.
> >
> > i want to setup squid in such a way that if one of the internet links goes down the
> > other will be used.
> > to do this obviously the source ip address will have to change.
> > i thought that perhaps one squid proc talking to two parents with source ips destined
> > for either internet link might work. but how will squid know an internet link is down?

Our methed is:

Setup a squid box, which has two NICs.

One NIC has the ip of ISP 1, and the other has the ip of ISP 2.

When ISP 1 is OK, set squid box's default gateway to ISP1. Otherwise
set default gateway to ISP2. This can be done easily via cron job using
traceroute or ping.

73 DE BG6CQ                       URL:
Zhang Huanjie                  E-mail:
Network Center, University of Science and Technology of China 
No. 96, JinZhai Road, Hefei, Anhui 230026, P.R.China
Received on Wed May 31 2000 - 04:42:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:38 MST