[Idr] Re: Flowspec redirect-ip update

Robert Raszuk <robert@raszuk.net> Sun, 08 September 2024 13:22 UTC

Return-Path: <robert@raszuk.net>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D739FC15152E for <idr@ietfa.amsl.com>; Sun, 8 Sep 2024 06:22:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=raszuk.net
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VLKn04RHDxPv for <idr@ietfa.amsl.com>; Sun, 8 Sep 2024 06:22:37 -0700 (PDT)
Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88061C151527 for <idr@ietf.org>; Sun, 8 Sep 2024 06:22:37 -0700 (PDT)
Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c24c92f699so3831803a12.2 for <idr@ietf.org>; Sun, 08 Sep 2024 06:22:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raszuk.net; s=google; t=1725801755; x=1726406555; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tfNd/guInVAAeGG3Nwv04MnMa27Tml7KKzxwwAc4Pf8=; b=J7yLrcZkkCLqRcS3WwBTp1fu65vfZbZ2fRWb92xU8jjYl+srFa1fqx3419nmsBHR0Z FGRV/suWGyrOrxVCUbL+TXGbp/4WIwRtVVkbKkTROXf3TCAouhIRTbgJXkG4ap19kiQJ TX+kCnBXA0BEvHZIyzF8+qr0SN6jkSglH+XWljVa07GwUdi+v94+8+/pRl2Qr5Q8IVmt inH29myKV+dlLBo7PU9lkEPiWY27Y5VwxDmkKA5O/BDvgA1XrIoIRZXnFPc5SBhG9qLE 6Ng3C3XHYYdVkcTQaxF5vJSJIwmPsYQ0KsJknBXp8gWEhR8yRH9s21LW7PFwzP9wjHd4 VrQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725801755; x=1726406555; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tfNd/guInVAAeGG3Nwv04MnMa27Tml7KKzxwwAc4Pf8=; b=W9rfL4e6AVqY5kpnQL1Z4blLXngR0Slfpd5Ta6C30li7Jprz0IXdUVS98TFhxaFBL9 FEJfuxO+xzqJ6Y5lmUCqrA4a/VKE5QkvIGFdANdZ8Sv5WqaV7PiB97u22gky6QDfsGYW aSFg86tAWtH2mbSNKUUsDLGmBj4XbK7mz/j7QaILjACjKzKVP6M1GEDW3E8FAfj+/dgi QrtXeGkwam4pmNarKGZ0B3HYaDjUiMyoUYNuf++6BcdbPrxtO4ll2Z0gjSeaJlvJharg dUUYuJJhjBuKr+eunYmT+l91AFG15Ujzu9DywwYOOkJRS0hH8ll5TVRCSsY8OzZEEh6C oVIQ==
X-Gm-Message-State: AOJu0Yww3rd6eQsDrwg6fTThsTjB5SshqrYpKwfpKXjuYqKMugYwDANK uIs80kO9i+0jLvBvbyBGL0S4pkFC5snWPgsj23mD5DsHt22QWa3MjipGXaKDBxxU4KovuW2eJRj symcWiuX4clqpnILmeLBmhe0sMXB1lWG2OeCyBveEPae6eGRyeDE=
X-Google-Smtp-Source: AGHT+IHy9ExkWe8JK+RwTbaGnVcKDDhhoKmNshPLD6orhOfgsyXHXTDScFKwLRyDuuEerLxWWExBVYUh82gqDTPe/Vk=
X-Received: by 2002:a05:6402:4487:b0:5be:df28:f6e3 with SMTP id 4fb4d7f45d1cf-5c3dc792240mr5701598a12.13.1725801754496; Sun, 08 Sep 2024 06:22:34 -0700 (PDT)
MIME-Version: 1.0
References: <20240908101826.GA6410@pfrc.org>
In-Reply-To: <20240908101826.GA6410@pfrc.org>
From: Robert Raszuk <robert@raszuk.net>
Date: Sun, 08 Sep 2024 15:22:23 +0200
Message-ID: <CAOj+MMExk=JJMROh6hsiK=AW2k=nMtKGH98+KNB4BG9hL=aqtg@mail.gmail.com>
To: Jeffrey Haas <jhaas@pfrc.org>
Content-Type: multipart/alternative; boundary="00000000000087b92506219b88b9"
Message-ID-Hash: LVEIYRLX3DKFHKVH2U5RAGZBK6ZOTCN2
X-Message-ID-Hash: LVEIYRLX3DKFHKVH2U5RAGZBK6ZOTCN2
X-MailFrom: robert@raszuk.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-idr.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: idr@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Idr] Re: Flowspec redirect-ip update
List-Id: Inter-Domain Routing <idr.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/TjMTNhlhdU_SBXL5b7k8JIHeroo>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Owner: <mailto:idr-owner@ietf.org>
List-Post: <mailto:idr@ietf.org>
List-Subscribe: <mailto:idr-join@ietf.org>
List-Unsubscribe: <mailto:idr-leave@ietf.org>

Hi Jeff,

- Since this feature has dire consequences for traffic interception if the
>   redirection address is not strongly controlled, there is new text
>   addressing validating the redirection address vs. the destination
> address in
>   a fashion similar to existing inter-AS/eBGP flowspec.  And very similar
> to
>   that mechanism in the flowspec RFCs, it may be disabled by configuratino.


+ text in the draft:





*More specifically, the router must consider a "redirect-to-IPv4" or
"redirect-to-IPv6" extended community to be invalid if the origin AS of the
flow-spec route does not match the origin AS of the best-match unicast
route for the "target-address".*

While I understand the intention I am struggling a bit with the
practicality of this extension.

Specifically I do not know of any deployment where the destination used for
redirection of flows (flow collectors) would be subject to cross local AS
boundary (except redirection to a cloud based collector(s)).

But in both of those cases AS-PATH check will fail.

If you/we agree with the above then it means we have few options/to-do edit
actions here:

* mandate that disabling validation for destinations be a separate knob
from disabling validation for redirect-to address(es)

* define validation of destination-ip to be handled differently then
validation of redirect-ip

* add ability to consider IGP sourced reachability for redirect to address
to be valid irrespective of validation of destination addresses

* add ability to manually configure list of valid redirect-ip addresses or
an IP prefix block redirect-ip addresses would be part of to be accepted
(perhaps do the same with origin ASNs to cover the redirect to cloud
cases).

Kind regards,
Robert