All of lore.kernel.org
 help / color / mirror / Atom feed
* SO_ORIGINAL_DST does not work in nat/OUTPUT anymore
@ 2005-07-10 14:18 Jens Hoelldampf
  2005-07-10 15:32 ` Harald Welte
  0 siblings, 1 reply; 16+ messages in thread
From: Jens Hoelldampf @ 2005-07-10 14:18 UTC (permalink / raw)
  To: netfilter-devel

Hi,

the upstream patch from

https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=91

destroys the functionality of SO_ORIGINAL_DST for local generated
packets. It returns the local address the connection is redirected to
instead of the original destination address. As a result you cannot use
local transparent proxies anymore.

The responsible change is

diff -ru linux-orig/net/ipv4/ip_output.c linux-new/net/ipv4/ip_output.c
--- linux-orig/net/ipv4/ip_output.c	2005-03-25 14:48:13.543911760 -0500
+++ linux-new/net/ipv4/ip_output.c	2005-03-26 01:01:13.064616240 -0500
@@ -195,6 +195,8 @@
 	nf_debug_ip_finish_output2(skb);
 #endif /*CONFIG_NETFILTER_DEBUG*/

+	nf_reset(skb);
+
 	if (hh) {
 		int hh_alen;

After removing the added line SO_ORIGINAL_DST returns the expected address.

Should I open a new bug or reopen the old one?

Regards,
 Jens

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

end of thread, other threads:[~2005-07-11 11:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10 14:18 SO_ORIGINAL_DST does not work in nat/OUTPUT anymore Jens Hoelldampf
2005-07-10 15:32 ` Harald Welte
2005-07-10 16:18   ` Patrick McHardy
2005-07-10 16:27     ` Henrik Nordstrom
2005-07-10 17:53       ` Patrick McHardy
2005-07-10 20:24         ` Harald Welte
2005-07-10 20:46           ` Patrick McHardy
2005-07-11 11:06             ` Jan Engelhardt
2005-07-11 11:19               ` Patrick McHardy
2005-07-11 11:58               ` Harald Welte
2005-07-10 22:20           ` Phil Oester
2005-07-10 23:54             ` Patrick McHardy
2005-07-11  9:44               ` Roberto Nibali
2005-07-11 11:16                 ` Patrick McHardy
2005-07-11 11:41                   ` Roberto Nibali
2005-07-11 11:47                     ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.