All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: "Usuário do Sistema" <maiconlp@ig.com.br>
Cc: Lloyd Standish <lloyd@crnatural.net>,
	Andrew Beverley <andy@andybev.com>,
	Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: redundancy with Adsl modem
Date: Fri, 06 Jan 2012 18:12:03 +0100	[thread overview]
Message-ID: <4F072B63.7060609@freemail.hu> (raw)
In-Reply-To: <CAMTjHrw4Rrb7c4h5Sv2jRctiUcqWD8O-xZx54M9Dp5jc8qZYdQ@mail.gmail.com>

Hi,

>   yes, I need redundancy. when an line adsl come down all traffic go to
> other line adsl. I couldn't have done this on linux machine. if you
> has any how to about please post here.

How do you want to do that???

If you have two connections then you have two external IP-s...
If one goes down then you can not simply use the other one...

Just think about these steps:

In normal connection:

1. a local host (A - 192.168.1.1) sends a packet from LAN to an external 
host (C - 8.8.8.8)
2. the firewall applies source NAT to the packet and sends it out as if 
it were coming from the firewall's first external IP (B1 - 1.1.1.1)
3. C sends back a reply to B1
4. B1 forwards it with destination NAT to A.
5. go to step 1. or close the connection

If the line goes down between step 2 and step 3 then the reply packet 
will never get back to B1 and A (because the line is down) !!!
If the line goes down after step 4 then you can send it out on the 
second extrenal IP (B2 - 2.2.2.2) but C will see it as a NEW connection !!!

So I think that your request is impossible on IP level.
However you can use a proxy or a mail server, etc. etc. etc.

Swifty

  parent reply	other threads:[~2012-01-06 17:12 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03  1:54 redundancy with Adsl modem Usuário do Sistema
2012-01-03  7:14 ` Andrew Beverley
2012-01-03 15:18   ` Usuário do Sistema
2012-01-03 23:58     ` Andrew Beverley
2012-01-04  0:17       ` Usuário do Sistema
2012-01-04  1:58     ` Lloyd Standish
2012-01-04  9:09       ` Gáspár Lajos
2012-01-04 11:16         ` Usuário do Sistema
2012-01-04 14:08         ` Lloyd Standish
2012-01-04 18:00           ` Gáspár Lajos
2012-01-04 20:15             ` Usuário do Sistema
2012-01-04 20:55               ` Lloyd Standish
2012-01-06 17:12               ` Gáspár Lajos [this message]
2012-01-06 18:16                 ` Lloyd Standish
2012-01-10  0:20                 ` Usuário do Sistema
2012-01-17 16:09                   ` Gáspár Lajos
2012-01-17 17:08                     ` Usuário do Sistema
2012-01-04 20:55             ` Lloyd Standish
2012-01-04 21:01             ` Lloyd Standish

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=4F072B63.7060609@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=andy@andybev.com \
    --cc=lloyd@crnatural.net \
    --cc=maiconlp@ig.com.br \
    --cc=netfilter@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.