Re: TCP socket data fowarding

From: Bernd Eckenfels
Date: Fri Dec 28 2007 - 01:49:05 EST


In article <1789B7E6-E914-49EB-821D-AB6C80D59E14@xxxxxxxxx> you wrote:
> Suppose I've got two sockets, A and B, and I'd like to make it so all
> data that arrives on B gets sent to A. My program does not care about
> the transferred data (and never will), and should handle roughly 5000
> such A/B socket pairs.

Can you use NAT for this? You can make entries in the normal NAT state table
if you dont want to use a transparent TCP socket proxy. So the forwarding
will be done in kernel context.

You need to describe your setting more.

Gruss
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html