Link redundance question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-d+tiQISlnAV2+Y09XWsw
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


> 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.

--=-d+tiQISlnAV2+Y09XWsw
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY>

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

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

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

<BR>
-Ben.
</BODY>
</HTML>

--=-d+tiQISlnAV2+Y09XWsw--



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux