Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ben Russo <ben@umialumni.com>
To: Andrew Magnus <xanadian9@hotmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Link redundance question
Date: 10 Nov 2002 20:40:16 -0500	[thread overview]
Message-ID: <1036978816.1246.6.camel@athlon.home.foo> (raw)
In-Reply-To: <F91A4h4dMDbl71Ri4wX0000614a@hotmail.com>

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]


> What I'm trying to do is this:  if the high speed connection goes down
(which it seems to do 
> frequently :-P ) I want iptables to default to the dialup connection. 
And vice versa (I have 
> iptables set up to use a particular link for a particular service). 
Is this possible?  And if it is 
> possible, how do I do it/where do I look to learn/etc.  Thanks.

Let's say that your internal interface is eth0, your WAN is eth1, and
your modem is ppp0
You can set up your iptables rules so that instead of referring to "-i
eth1" or "-i ppp0"
they refer to "-i ! eth0"

As far as changing your routes, that is not up to iptables, that is up
to the way that you 
programatically determine if the WAN interface is up.

-Ben.

[-- Attachment #2: Type: text/html, Size: 1084 bytes --]

      reply	other threads:[~2002-11-11  1:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11  1:18 Link redundance question Andrew Magnus
2002-11-11  1:40 ` Ben Russo [this message]

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=1036978816.1246.6.camel@athlon.home.foo \
    --to=ben@umialumni.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=xanadian9@hotmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox