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 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/>__________________________________________________________________________ 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/
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/
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=10 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/