All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Никита Винокуров" <vinokurov@mail.>
To: lartc@vger.kernel.org
Subject: Re[2]: [LARTC] further than dead gateway detection
Date: Mon, 03 Mar 2003 16:22:04 +0000	[thread overview]
Message-ID: <marc-lartc-104670901205262@msgid-missing> (raw)


-----Original Message-----
From: Esteban Ribicic <eribicic@UolSinectis.com>
To: vinokurov@mail.ru
Date: 03 Mar 2003 12:55:18 -0300
Subject: Re: [LARTC] further than dead gateway detection

> when interface goes down you must flush the cache to generate a new
> routing table.
> this perl script cheks and fix this.
> 
ip route flush cache does not help even it I do it manually

The problem is that the route _never_ marked as down because the correspondent gateway successfully reached. The break of the line occures _after_ gateway:

                               
internal              /eth1----modem1 (gateway1) --X-- Provider1
-------- eth0 |router|
                      \eth2----modem2 (gateway2) --X-- Provider2
                           ^^^^                  ^^^^^
                       here is no breaks     here is possible breaks

> have you done masquerading from an internal network? 
> cause that does not work for mi..you may help me :)
> 
> 

Yes, I've done it by the means of iptables (I have a 2.4.20 kernel).

masquarade does not interacts with routing, just put it in the two routes:

iptables -t nat -A POSTROUTING -o $IFACE1 -j SNAT --to-source $IP1
ipdables -t nat -A POSTROUTING -o $IFACE2 -j SNAT --to-source $IP2


where $IP1 and $IP2 -- the external addresses of the certain interfaces ($IFACE1 and $IFACE2)

may be you need more specific configuration.


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

             reply	other threads:[~2003-03-03 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-03 16:22 Никита Винокуров [this message]
2003-03-03 17:38 ` Re[2]: [LARTC] further than dead gateway detection Paul Evans

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=marc-lartc-104670901205262@msgid-missing \
    --to=vinokurov@mail. \
    --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.