netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Transparent Proxying
@ 2004-08-04  3:27 Herbert Xu
  2004-08-04  5:07 ` Herbert Xu
  2004-08-11 20:31 ` nick black
  0 siblings, 2 replies; 3+ messages in thread
From: Herbert Xu @ 2004-08-04  3:27 UTC (permalink / raw)
  To: David S. Miller, netdev

Hi Dave:

I need to implement a semi-transparent TCP proxy for work.  The requirement
is that it'll intercept all TCP connections passing through and redirect
them to a local port.  Once there the connection will be forwarded through
a non-TCP protocol (that's why it's only semi-transparent, in fact it's
only a half-TCP proxy :)

Redirecting is easy through the REDIRECT netfilter target.  But the tricky
bit is getting the original destination address so that we can forward this
information to our peer who will turn the connection back into TCP.  Since
this proxy has to be completely generic it cannot rely on ULP-specific
information to deduce the destination address.

I looked around and found the TPROXY patch which is part of pom-ng.
It is capable of providing the information I need via a getsockopt()
call.

The only catch is that you seem to have some objections to it :)

So I'd like to know your objections against the patch and how they
might be overcome.  If you know another way of getting the destination
information then that would be good to (apart from the obvious one
of parsing /proc/net/ip_conntrack :)

Thanks in advance,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

end of thread, other threads:[~2004-08-11 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-04  3:27 Transparent Proxying Herbert Xu
2004-08-04  5:07 ` Herbert Xu
2004-08-11 20:31 ` nick black

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).