netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* transparent UDP proxy
@ 2008-03-18 11:59 Michel Lespinasse
  0 siblings, 0 replies; only message in thread
From: Michel Lespinasse @ 2008-03-18 11:59 UTC (permalink / raw)
  To: netdev

Hi,

After redirecting UDP connections to a local port with netfilter (DNAT),
I'm trying to figure out what the original intended destination was.

For TCP sockets, I could just use the SO_ORIGINAL_DST socket option,
but that does not work with UDP (I tried, with a 2.6.22.19 kernel)

I also tried using recvmsg and looking for an IP_PKTINFO control message
as outlined in
http://lists.cistron.nl/pipermail/freeradius-users/2002-March/005600.html
but that did not work either (no anciliary data was ever received).

Is there any way to figure out the original destination IP of a NATed
UDP packet ?

Thanks,

-- 
Michel Lespinasse

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-18 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 11:59 transparent UDP proxy Michel Lespinasse

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).