Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "lu" <j.lu@tiesse.com>
To: netfilter@lists.netfilter.org
Subject: iptables masquerade cache  problems
Date: Mon, 29 Sep 2003 10:23:21 +0200	[thread overview]
Message-ID: <001e01c38662$f2a93bc0$01070a0a@858sxt07> (raw)

Hi,
I have two lines that were masqueraded, one ADSL and another is ISDN for
backup. When the line ADSL is broken  I switch the line to ISDN. The problem
is: when I use ping to test (ping -t from windows client), after the line
was switched to ISDN, the source address was still that of ADSL  instead of
ISDN. But, when I stopped the ping from client for a while, all things went
well. It seems a problem of cache. What is the work-around for it? At a
moment I just down the ADSL interface.  You can do this test with two lan
interfaces.
The Configuration is:
	iptables -t nat -A POSTROUTING -o hsb0 -j MASQUERADE    # for ADSL
	iptables -t nat -A POSTROUTING -o ippp0 -j MASQUERADE    # for ISDN

	default gw dev was hsb0  (ADSL)
	when ADSL was down then :
	route del default dev hsb0
	route add default dev ippp0


Best regards,
Jianliang Lu

TieSse s.p.a      Ivrea (to) Italy
j.lu@tiesse.com
luj@libero.it
http://www.tiesse.com



             reply	other threads:[~2003-09-29  8:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29  8:23 lu [this message]
2003-09-29 11:04 ` iptables masquerade cache problems Mickael DILY
2003-09-29 11:19   ` Ray Leach
2003-09-29 13:17     ` Mickael DILY
2003-09-29 13:55       ` Ray Leach

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='001e01c38662$f2a93bc0$01070a0a@858sxt07' \
    --to=j.lu@tiesse.com \
    --cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox