mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: linux-kernel@vger.kernel.org
Subject: FWD: NAT question
Date: Thu, 13 Dec 2001 20:30:39 -0500	[thread overview]
Message-ID: <20011213203038.A24189@animx.eu.org> (raw)

I posted this on the netfilter list with no responces.

I'm currently using ipchains on 2.2.19 to do masquerading.  I have a static
IP on dialup.  I have my ip-up/down scripts to add/remove masq entries when
I drop/establish the ppp link.  All connections that I have going do continue
to work when the ppp link is dropped and reconnected.  I'm assuming this
works because the default timeout (15 minutes) on the masq'd connection is
still there.

I've been looking at both SNAT and MASQUERADE targets for ipfilter (2.4.x
obviously)

SNAT is fine provided I don't need to dialup to another ISP (for instance
when my current isp is having temporary problems).  If I remove the SNAT
entry, all connections that has hit the SNAT table were remembered.  when I
remove the entry, those connections still work and new connections (same
source/dest host/port) also work.  If I were to remove the current SNAT entry
(ppp drops) and add another SNAT entry (ppp comes back up) but I used a
different ISP this time.  Will those connections still attempt to use the old
entry or will it realize a new entry has been added and work the way as I had
intended?  I haven't tried, but is it possible that if the rule (say
changing the SNAT source address) is changed for it to drop currently SNAT'd
connections?

I thought about using MASQUERADE but if the interface goes down, all
connections that were already established are dropped so that when the link
comes back up, it won't continue, but if I dialup another ISP, then
everything is ok.

I would prefer to use SNAT.  Other than removing the iptable_nat module, is
there anyway to make netfilter forget at connections that have already been
seen?  

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

                 reply	other threads:[~2001-12-14  1:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20011213203038.A24189@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome