From: Jens Hoelldampf <jens@hoelldampf.net>
To: netfilter-devel@lists.netfilter.org
Subject: SO_ORIGINAL_DST does not work in nat/OUTPUT anymore
Date: Sun, 10 Jul 2005 16:18:16 +0200 [thread overview]
Message-ID: <42D12E28.7020707@hoelldampf.net> (raw)
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
next reply other threads:[~2005-07-10 14:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-10 14:18 Jens Hoelldampf [this message]
2005-07-10 15:32 ` SO_ORIGINAL_DST does not work in nat/OUTPUT anymore 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42D12E28.7020707@hoelldampf.net \
--to=jens@hoelldampf.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.