From: Alessandro Ren <alessandro.ren@opservices.com.br>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Problems in Dead Gateway Detection / Failover
Date: Mon, 17 Apr 2006 15:16:50 +0000 [thread overview]
Message-ID: <4443B162.6030303@opservices.com.br> (raw)
In-Reply-To: <43D8CEAE.3010006@tuxspace.com>
[-- Attachment #1.1: Type: text/plain, Size: 5078 bytes --]
I bind to the interface IP and connect to 20 different sites or
more, the sites are listed in a text file, using the TCP connect in perl.
Off course, the ip rule tables the the marks in the firewall must be
set correcly so you know that the connections are going through the
right interface.
I can share de script, it's a litle complex in its structus, as it
depends on some external scripts, but I will try the share and problably
get more and better ideas to do the fail over / multi path routing.
I will prepare and sent a email with it shortly.
[]s.
Shashikant Mundlik wrote:
> Hi Ren,
>
> Thanks for your help. But how do you check that you reach less than 20
> of your sites. (do you mean 20 websites?).
> Will you able to share the script?
> That will be great help.
>
> Thanks and regards,
>
>
> *Shashikant** Mundlik *
>
>
>
> System Administrator
>
> UBICS, Pune
> Phone: 91 20 2729 1004 x 138
> Mobile : 91 9372 044015
>
>
>
> www.ubics.com <blocked::http://www.ubics.com/>
>
> The UB Group
>
> DISCLAIMER AND PRIVILEGE NOTICE:
> This e-mail message contains confidential, copyright, proprietary and
> legally privileged information. It should not be used by anyone who is
> not the original intended recipient. If you have erroneously received
> this message, please delete it immediately and notify the sender. The
> recipient must note and understand that any views expressed in this
> message are those of the individual sender and no binding nature of
> the message shall be implied or assumed unless the sender does so
> expressly with due authority of UBICS, Inc.
>
>
>
>
>
> ------------------------------------------------------------------------
> *From:* Alessandro Ren [mailto:alessandro.ren@opservices.com.br]
> *Sent:* Monday, April 17, 2006 7:31 PM
> *To:* smundlik@ubicsindia.com
> *Cc:* manish@tuxspace.com; lartc@mailman.ds9a.nl
> *Subject:* Re: [LARTC] Problems in Dead Gateway Detection / Failover -
> MultipleISP Links
>
>
> I have a script that connects to 20 diferent sites on the port 80
> coming from each link interface a have on my linux router.
> If I reach less than 20% of my sites, I assume the link is down
> and do all the routing and firewall adjustments to make the traffic
> goes to other routes, removing the problematic link out, setting ip
> rules, routes in tables and the main multipath default route and
> commenting in the firewall the MARKs the would go via the link thats
> down and it also sets QoS and tries to bring the link that is down
> back UP.
> Althought I've tested with only 3 links, it supports any number of
> them.
> It's works very nice so far.
>
> []s.
>
>
> Shashikant Mundlik wrote:
>> Hi There,
>>
>> I am also trying to do the same for my network.
>> I have two links from different ISPs and I want to configure a
>> failover and load balancing Linux router.
>>
>> I am facing same problem here, that how to detect link failure and
>> let Linux box switch the gateway.
>>
>> I know it works when the first gateway is physically down and not
>> reachable. But what to do if my link is up but there is problem at
>> nexthop level and its not routing packets to destination.
>>
>> Please tell me if this can be overcome by setting multipath routing.
>>
>> Another way I can think of doing this is to use a script which will
>> check if the default route is alive every 15 mins and if not it will
>> make changes in routing table and route the packets through different
>> link.
>>
>> I don't know if this is the best way to do this. If any one know how
>> to do this better please share.
>>
>> If you guys thinks this can work, lets help each other to write such
>> scrip.
>>
>> I am new to LARTC and just now started learning it to solve my
>> network problems.
>>
>> Please help me to achieve this.
>>
>> Thanks in advance.
>>
>> Regards,
>>
>>
>> Shashikant Mundlik
>>
>> Pune, India.
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> LARTC mailing list
>> LARTC@mailman.ds9a.nl
>> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>>
>
> --
> __________________________________________________
> *Alessandro Ren*
> /*OpServices*/
> /*Luciana de Abreu, 471 - Sala 403*/
> /*Porto Alegre, RS - CEP 90570-060*/
>
> *(* phone 55(51)3061-3588
> *4* fax 55(51)3061-3588
> *Q* mobile 55(51)8151-8212
> *:* email alessandro.ren@opservices.com.br
> <mailto:%22alessandro.ren@opservices.com.br%22>
>
> __________________________________________________
--
__________________________________________________
*Alessandro Ren*
/*OpServices*/
/*Luciana de Abreu, 471 - Sala 403*/
/*Porto Alegre, RS - CEP 90570-060*/
*(* phone 55(51)3061-3588
*4* fax 55(51)3061-3588
*Q* mobile 55(51)8151-8212
*:* email alessandro.ren@opservices.com.br
<mailto:%22alessandro.ren@opservices.com.br%22>
__________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 19012 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-04-17 15:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-26 13:41 [LARTC] Problems in Dead Gateway Detection / Failover - Multiple Manish Kathuria
2006-01-29 19:50 ` [LARTC] Problems in Dead Gateway Detection / Failover - gypsy
2006-01-30 3:50 ` Manish Kathuria
2006-04-15 13:58 ` [LARTC] Problems in Dead Gateway Detection / Failover - Multiple Eduardo Fernández
2006-04-17 7:14 ` Re:[LARTC] Problems in Dead Gateway Detection / Failover - Shashikant Mundlik
2006-04-17 14:01 ` [LARTC] Problems in Dead Gateway Detection / Failover Alessandro Ren
2006-04-17 15:16 ` Alessandro Ren [this message]
2006-04-17 15:22 ` Shashikant Mundlik
2006-04-17 15:52 ` Shashikant Mundlik
2006-04-17 16:30 ` [LARTC] Problems in Dead Gateway Detection / LinuXKiD
2006-04-17 17:11 ` [LARTC] Problems in Dead Gateway Detection / Failover Alessandro Ren
2006-04-21 1:49 ` [LARTC] Problems in Dead Gateway Detection / Failover - Multiple Manish Kathuria
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4443B162.6030303@opservices.com.br \
--to=alessandro.ren@opservices.com.br \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.