All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Routing for Squid
@ 2003-12-24  8:13 Abd. Samad Awang
  2003-12-24 21:24 ` andybr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Abd. Samad Awang @ 2003-12-24  8:13 UTC (permalink / raw)
  To: lartc

hi all,

i'm using squid as a proxy server, and have 2 gateway for internet access,
currently i'm using 1 gateway for the internet access, if that gateway is
down then i have to change it manually the the 2nd gateway.
can anyone help me with the configuration that will automatically switch to
2nd gateway if the 1st gateway is down.

Thanks in advance

/asa


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:[LARTC] Routing for Squid
  2003-12-24  8:13 [LARTC] Routing for Squid Abd. Samad Awang
@ 2003-12-24 21:24 ` andybr
  2003-12-26 21:36 ` Santiago J. Ruano Rincón
  2003-12-27 12:09 ` Alexander Grinevich
  2 siblings, 0 replies; 4+ messages in thread
From: andybr @ 2003-12-24 21:24 UTC (permalink / raw)
  To: lartc

Hi asa,

You can make a script to ping your internet gateway 
every 5 minutes and if it´s down it automatically switch 
the default route do gateway 2. You set a script to run 
x time with cron job. 

[]´s
Anderson


> hi all,
> 
> i'm using squid as a proxy server, and have 2 gateway f
or internet access,
> currently i'm using 1 gateway for the internet access, 
if that gateway is
> down then i have to change it manually the the 2nd gate
way.
> can anyone help me with the configuration that will aut
omatically switch to
> 2nd gateway if the 1st gateway is down.
> 
> Thanks in advance
> 
> /asa
> 
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: ht
tp://lartc.org/
> 

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:[LARTC] Routing for Squid
  2003-12-24  8:13 [LARTC] Routing for Squid Abd. Samad Awang
  2003-12-24 21:24 ` andybr
@ 2003-12-26 21:36 ` Santiago J. Ruano Rincón
  2003-12-27 12:09 ` Alexander Grinevich
  2 siblings, 0 replies; 4+ messages in thread
From: Santiago J. Ruano Rincón @ 2003-12-26 21:36 UTC (permalink / raw)
  To: lartc


Hi

try monit (http://www.tildeslash.com/monit/) or mon
(http://www.kernel.org/software/mon/) to test the connectivity with an external
element like google, and control the default gateway of your proxy.

pinging the internal gateway is not so effective.



Mensaje citado por andybr <andybr@bol.com.br>:

> Hi asa,
> 
> You can make a script to ping your internet gateway
> every 5 minutes and if it´s down it automatically switch
> the default route do gateway 2. You set a script to run
> x time with cron job.
> 
> []´s
> Anderson
> 
> 
> > hi all,
> >
> > i'm using squid as a proxy server, and have 2 gateway f
> or internet access,
> > currently i'm using 1 gateway for the internet access,
> if that gateway is
> > down then i have to change it manually the the 2nd gate
> way.
> > can anyone help me with the configuration that will aut
> omatically switch to
> > 2nd gateway if the 1st gateway is down.
> >
> > Thanks in advance
> >
> > /asa
> >
> >

> 


Santiago J. Ruano Rincón

Soluciones Avatar Ltda.
ParqueSoft Popayán
+57-2 8221214

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:[LARTC] Routing for Squid
  2003-12-24  8:13 [LARTC] Routing for Squid Abd. Samad Awang
  2003-12-24 21:24 ` andybr
  2003-12-26 21:36 ` Santiago J. Ruano Rincón
@ 2003-12-27 12:09 ` Alexander Grinevich
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander Grinevich @ 2003-12-27 12:09 UTC (permalink / raw)
  To: lartc

Hi.

I use squid (2.5.STABLE4) with probing to parent squid's on ISP-side (2
ISP in my case). And also use "weight" parameter for parents.
For first ISP I'v use weight 1, for second 10.
Like this

cache_peer 1.1.1.1 parent 3128 3130 no-delay weight\x10
cache_peer 2.2.2.2 parent 3128 3130 no-delay weight=1

So most requests go via 10-weghted ISP untill it not marked "dead" (see
/var/log/squid/cache.log) or "tcp connection failed". In that case
request will go via second ISP (weight=1).
when 1.1.1.1 "wake ip" :) requests again return in "right way".


> 
> To: Lartc List <lartc@mailman.ds9a.nl>
> Subject: Re:[LARTC] Routing for Squid
> > 
> > > hi all,
> > >
> > > i'm using squid as a proxy server, and have 2 gateway f
> > or internet access,
> > > currently i'm using 1 gateway for the internet access,
> > if that gateway is
> > > down then i have to change it manually the the 2nd gate
> > way.
> > > can anyone help me with the configuration that will aut
> > omatically switch to
> > > 2nd gateway if the 1st gateway is down.
> > >
> > > Thanks in advance
> > 
> 
> 
> Santiago J. Ruano Rincn
> 
> Soluciones Avatar Ltda.
> ParqueSoft Popayn
> +57-2 8221214
> 

-- 
Alexander Grinevich <grin@spez.com.ua>
JSV SPEZ


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-27 12:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-24  8:13 [LARTC] Routing for Squid Abd. Samad Awang
2003-12-24 21:24 ` andybr
2003-12-26 21:36 ` Santiago J. Ruano Rincón
2003-12-27 12:09 ` Alexander Grinevich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.