From: David Miller <davem@davemloft.net>
To: fbl@redhat.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] route: add more relaxed option for secure_redirects
Date: Fri, 11 Nov 2011 20:33:21 -0500 (EST) [thread overview]
Message-ID: <20111111.203321.93615255271311412.davem@davemloft.net> (raw)
In-Reply-To: <1320710630-28335-1-git-send-email-fbl@redhat.com>
From: Flavio Leitner <fbl@redhat.com>
Date: Mon, 7 Nov 2011 22:03:50 -0200
> When the host uses a gateway IP address that is actually an alias
> address, the ICMP redirect message source address can be the gateway's
> main IP address, so the message is ignored by the host regardless of
> the secure_redirects setup.
>
> The new value (2) allows that ICMP message to be processed.
> The possible values are:
>
> 0 - Accept ICMP redirect messages only if its source address is the
> previous gateway address.
> 1 - The same as above. However, if shared_media is FALSE, it has to
> be for gateways listed in default gateway list as well.
> 2 - Accept ICMP redirects messages ignoring the conditions above.
> default value is 1.
>
> Signed-off-by: Flavio Leitner <fbl@redhat.com>
The more I look at this the less I like it.
Look, if IPVS or whatever is translating addresses and this is what
causes the problem then this entity can very well translate the damn
addresses right back in the redirect so it looks legitimate to the
sender.
You can't translate people's addresses, and them let them see that
intenal remapping in ICMP errors. The redirect is dropped by the
sender because it not only looks like crap, it is crap.
This is fundamentally not the correct way to handle this.
I'm not applying this patch.
next prev parent reply other threads:[~2011-11-12 1:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 15:41 [PATCH] route: fix ICMP secure_redirects Flavio Leitner
2011-11-07 18:35 ` David Miller
2011-11-07 19:05 ` Flavio Leitner
2011-11-08 0:03 ` [PATCH] route: add more relaxed option for secure_redirects Flavio Leitner
2011-11-12 1:33 ` David Miller [this message]
2011-11-16 20:46 ` Flavio Leitner
2011-11-16 22:02 ` David Miller
2011-11-16 23:17 ` Flavio Leitner
2011-11-17 1:40 ` Flavio Leitner
2011-11-17 1:41 ` David Miller
2011-11-17 21:53 ` David Miller
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=20111111.203321.93615255271311412.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=fbl@redhat.com \
--cc=netdev@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 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).