All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: netfilter@lists.netfilter.org
Subject: SNAT multiple address allocation, connection tracking
Date: Mon, 14 Jun 2004 17:57:22 -0400	[thread overview]
Message-ID: <40CE1F42.4030705@dunslane.net> (raw)


Hi,

I have this problem.

eth0 is internal network, eth1 is external network
eth1 has a large set of additional virtual addresses

all connections go from internal to external

Third party app does this in fairly quick succession: telnet session, 
close, ftp (non-passive), close, pop3 session, close.

The app needs each of these to get the same SNAT address (from the pool 
of virtual addresses) on the external interface, because at the other 
end some state is kept based on the IP address (crazy, I know, but true).

However, if another host uses the same address it in effect clobbers the 
previous state, so each host (within some shortish period) needs to get 
a different address from any other host.

My reading suggests that SNAT with a range does some sort of round robin 
or LRU on a per connection basis, rather than reusing an address that 
the same host recently used. Is this correct?

I can't nail the addresses up, because some will be DHCPd hosts from a 
larger pool than I have available.

Can someone please suggest a combination of modules and rules that will 
do what I need?

TIA

andrew




             reply	other threads:[~2004-06-14 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-14 21:57 Andrew Dunstan [this message]
2004-06-15  0:13 ` SNAT multiple address allocation, connection tracking John A. Sullivan III

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=40CE1F42.4030705@dunslane.net \
    --to=andrew@dunslane.net \
    --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 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.