lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 18 Mar 2008 04:59:45 -0700
From:	Michel Lespinasse <walken@....org>
To:	netdev@...r.kernel.org
Subject: transparent UDP proxy

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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ