From: "Paul McDonald" Subject: Highly dynamic NAT source mapping Date: Fri, 31 Jan 2003 11:22:11 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <006501c2c944$e8bffad0$2a2b8792@surecom.com> Reply-To: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0066_01C2C91A.FFE9F2D0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0066_01C2C91A.FFE9F2D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit We have an application where thousands of outbound TCP connections are generated from multiple servers. We are interested in mapping some, but not all of those connections to specific source addresses. The idea is to run netfilter on a box between these servers & the internet with a 'userland' server process that would be able to add/delete address/port mappings for SNAT. This user process would be contacted by the software running on the servers generating the traffic after they bind to a local address/port but before attempting to connect. They would then contact this process running on the netfilter box and request a specific SNAT for their address/port to a specified address. When the server closes the connection, it would contact the process running on the netfilter box and remove the mapping. As you can see there would be a *large* number of updates to the SNAT mapping tables on the netfilter box. My question is: - Is this really doable? Will the large number (possibly hundreds per second) of table adds/deletes cause havoc on the linux box running netfilter, bringing performance to a standstill. thanks Paul ------=_NextPart_000_0066_01C2C91A.FFE9F2D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
We = have an=20 application where thousands of outbound TCP connections are generated = from=20 multiple servers.  We are interested in mapping some, but not all = of those=20 connections to specific source addresses.
 
The = idea is to run=20 netfilter on a box between these servers & the internet with a  = 'userland' server process that would be able to add/delete address/port = mappings=20 for SNAT.  This user process would be contacted by the software = running on=20 the servers generating the traffic after they bind to a local = address/port but=20 before attempting to connect.  They would then contact this process = running=20 on the netfilter box and request a specific SNAT for their address/port = to a=20 specified address.  When the server closes the connection, it would = contact=20 the process running on the netfilter box and remove the=20 mapping.
 
As you = can see there=20 would be a *large* number of updates to the SNAT mapping tables on the = netfilter=20 box.  My question is:
 
- Is = this really=20 doable?  Will the large number (possibly hundreds per second)  = of=20 table adds/deletes cause havoc on the linux box running netfilter, = bringing=20 performance to a standstill.
 
thanks
 
Paul
 
------=_NextPart_000_0066_01C2C91A.FFE9F2D0--