All of lore.kernel.org
 help / color / mirror / Atom feed
From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] simple routing protocol for VPN redundancy?
Date: Wed, 16 Mar 2005 04:23:54 +0000	[thread overview]
Message-ID: <4237B4DA.6FA6F134@iswest.com> (raw)
In-Reply-To: <BAY24-F1464370D0420EAF6C8726CA570@phx.gbl>

Simon Chang wrote:
> 
> Hello all,
> 
> I need a very simple routing protocol for VPN redundancy.
> 
> We have several sites and each site has a Linux router and two IPCops each
> with an ADSL connection to the internet using different ISP's.
> 
> I have configured VPN's between all of the sites for each IPcop on ispA and
> the same for the IPCops on ispB. This way, if one of the ISP fails, I change
> the route on the router and my VPN's continue to function over the other
> ISP.
> 
> This is a very simple saftey but it works well and its pretty cheep. But I'm
> getting sick of changing the routes by hand and wonder if there is any way
> of automating the failover.
> 
> What I was thinking of is maybe a script/utility  that I could configure to
> ping a host on a remote lan and if I started to loose to many packets or it
> got too slow or failed it would change the route automatically.
> 
> Has any one ever written a script or know of a utility that can do that?
> 
> Cheers Simon.

I know nothing of VPNs, but I can tell you that Julian Anastasov has
written patches for the Linux kernel called Dead Gateway Detection. 
Maybe that will do what you want.
http://www.ssi.bg/~ja/
http://www.ssi.bg/~ja/dgd.txt
http://www.ssi.bg/~ja/dgd-usage.txt
http://www.ssi.bg/~ja/nano.txt

You can have a look at what I'm running at work at:
http://andthatsjazz.org:8/lartc/rc.nano1
and there are examples and links here:
http://andthatsjazz.org:8/lartc/index.html

Although I've only caught it happening once, when the ISP on eth2 went
down that outage was not even noticed by users.

I used to have 3 (very flakey) connections here at home, and I wrote a
script that had a Linux box at work ping each one.  When there were too
many unanswered pings, a message was sent (to a working IP) saying which
one was down.  If the connection was restored, a different flag was
sent.  At home, I monitored a special directory for a flag file and
changed the routing to stop trying the bad connection (or to use a
revived one) depending on what flag file was there.

The scripts were pretty trivial to write, and they worked (often!).
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2005-03-16  4:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-15 15:51 [LARTC] simple routing protocol for VPN redundancy? Simon Chang
2005-03-16  4:23 ` gypsy [this message]
2005-03-16  5:36 ` erwan le doeuff
2005-04-01  8:52 ` alben benavente alteza
2005-04-04 20:37 ` Nguyen Dinh Nam

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=4237B4DA.6FA6F134@iswest.com \
    --to=gypsy@iswest.com \
    --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.