Linux Netfilter discussions
 help / color / mirror / Atom feed
* SNAT multiple address allocation, connection tracking
@ 2004-06-14 21:57 Andrew Dunstan
  2004-06-15  0:13 ` John A. Sullivan III
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Dunstan @ 2004-06-14 21:57 UTC (permalink / raw)
  To: netfilter


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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-15  0:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 21:57 SNAT multiple address allocation, connection tracking Andrew Dunstan
2004-06-15  0:13 ` John A. Sullivan III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox