From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Bas van Sisseren <bas@quarantainenet.nl>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] ipt_REDIRECT: only change dest-ip if not local ip
Date: Fri, 16 Jul 2010 14:42:02 +0200 [thread overview]
Message-ID: <4C40539A.6080607@plouf.fr.eu.org> (raw)
In-Reply-To: <4C402DBD.3010007@quarantainenet.nl>
Hello,
Bas van Sisseren a écrit :
>
> When redirecting, the destination address is replaced by the first
> ip-address on the receiving interface.
As described in the iptables manpage.
> If the packet originally was sent to the second ip-address (or third,
> fourth, etc..), this patch doesn't change the destination ip.
Is this patch in reaction to the recent thread "iptables not forwarding
port 443" in the netfilter user list from someone who stumbled into this
issue ?
My thoughts :
1) The iptables manpage would need to be updated accordingly.
2) I wonder whether it is really useful. The purpose of REDIRECT is to
make sure a packet is redirected to the local machine itself without the
need to care about the machine's address (just as MASQUERADE). If you
don't want to change the destination address or need finer control over
it, I believe DNAT can be used instead. Can you provide a use case ?
3) Why restrict only to the addresses attached to the receiving
interface ? Why not extend to any address attached to a host's
interface, or even any local address (such as the whole 127.0.0.0/8
prefix) ?
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-07-16 12:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-16 10:00 [PATCH] ipt_REDIRECT: only change dest-ip if not local ip Bas van Sisseren
2010-07-16 12:21 ` Patrick McHardy
2010-07-16 12:42 ` Bas van Sisseren
2010-07-16 12:49 ` Patrick McHardy
2010-07-16 14:56 ` Jan Engelhardt
2010-07-16 14:58 ` Patrick McHardy
2010-07-16 15:14 ` Bas van Sisseren
2010-07-16 19:18 ` Jan Engelhardt
2010-07-19 8:02 ` Bas van Sisseren
2010-07-16 13:03 ` Pascal Hambourg
2010-07-16 12:42 ` Pascal Hambourg [this message]
2010-07-16 13:23 ` Bas van Sisseren
2010-07-16 15:04 ` Pascal Hambourg
2010-07-16 15:21 ` Bas van Sisseren
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=4C40539A.6080607@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=bas@quarantainenet.nl \
--cc=netfilter-devel@vger.kernel.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.