[lkml]   [2001]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Original destination of transparent proxied connections?
Yeah, I found it.

While researching replacing the 2.2 kernel with 2.4 to
get my proxy-oid to work, I stumbled accross the
following section in the unofficial NAT-HOWTO (which
is not on linuxdoc's website as far as I can tell).
At this address:

Under section four ("quick translation from 2.0 and
2.2 kernels"), under the heading "Hackers may also
notice:", item two in the list:

>The (undocumented) `getsockname' hack, which
>transparent proxy programs could use to find out the
>real destinations of connections no longer works.

Ah! A clue! But no idea how to make it work under
2.4, and no mention of what replaces it! (I read the
rest of the howto carefully. Never mentioned this
topic again.) But there IS a way to get it to work
under 2.2, if I can learn an undocumented (but
functional) hack.

So I jump to the contents page to see who the HOWTO
maintainer is to ask rather pointed questions. His
email address isn't listed, but I do I find out that
the netfilter mailing list is at
turns out to have a page of hosted lists, with a link
that eventually leads to an archive, which is not
easily searchable except by date. Fun.

This brings us to google, which can find anything if
you just know what to ask for. I search for
" netfilter getsockname". The first
hit is just that silly howto again, but the second

An explanation, complete with example code. From
september of last year.

And there was much rejoicing.

If I were to perhaps send a check or
something, might a day come to pass when learning to
do seemingly obvious things under linux does NOT
require fairly good forensic investigation skills? I
ask merely for information.

I need to get more caffiene now. I'm going to be up
REALLY late coding. :)


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.050 / U:2.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site