Re: [BEHAVE] RFC6147 and RFC7208 interoperability issues

marcelo bagnulo braun <marcelo@it.uc3m.es> Mon, 07 February 2022 06:41 UTC

Return-Path: <marcelo@it.uc3m.es>
X-Original-To: behave@ietfa.amsl.com
Delivered-To: behave@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 967B73A02BD for <behave@ietfa.amsl.com>; Sun, 6 Feb 2022 22:41:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.713
X-Spam-Level:
X-Spam-Status: No, score=-2.713 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.714, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=it.uc3m.es
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vb9N-ZvLv0nJ for <behave@ietfa.amsl.com>; Sun, 6 Feb 2022 22:41:35 -0800 (PST)
Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 37E813A0126 for <behave@ietf.org>; Sun, 6 Feb 2022 22:41:35 -0800 (PST)
Received: by mail-ej1-x62c.google.com with SMTP id m4so39092656ejb.9 for <behave@ietf.org>; Sun, 06 Feb 2022 22:41:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=it.uc3m.es; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=TT67amI317GWQrOWcK4PVv+v5u/IRxYInZpwKe8wn9U=; b=g1MUwe8urC2DCwTFlAHKpV+KC/iy0KG7fzwtiJJYMpejXARm91J21mOWgcq6Z+XQW4 80Y2pTYhF1keVvFEvlh/k02nC6aru8A2SYSB2aXAweNnyMFxiZ5RbdfvOJC9OjzLbud5 vokjfYgJXJyPxgh7qlzZkJHgjDilQIMtJSm+TG2+siq+LpHEK8JmwP65qolOftYU615b Y4VMGhgs29F2BBdcR8jP/AFB+1s1byafCaF2gSVEBcjet9VETMQ0tTdaM7Vw5+CIA9HA QtAG4HB7vtInzJclbAkt0IC7OnsVe02nLkk4s1qyNLiWL6GJgui6j/zlfJt9Lg2Ab0FL y+GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=TT67amI317GWQrOWcK4PVv+v5u/IRxYInZpwKe8wn9U=; b=pUOzPfj/mP5N8PTef6qH9mrvcg+7m1OYukyolcH7uSQgiaP9TOHKCntGGlA2OYSLVv dw3Lq5QQ8wfUH2pLMQvDELqNqhQ2b1p46C+tTwaQT6iwpdpnCubDNVCHYq++4i3ZDfCK 19pfRATDX2DBA2o/8qKNCC9x51X4YL5awoSOmTAxTIkEjYIFmj58Q+f0pidO85QmM4cD k/SuPXtwEFpr275c7Kf+qSixj73KLk3wmyoxo6svsy1HqTdIPHNbWimykbGxZfTR5akU EY5LH9wusIwFtiz8bG9HgCmvbGB1UB6NFQYzrL3yL2o1Td4Aaw1mIMSI7Z/3LNd9CbEQ xNUg==
X-Gm-Message-State: AOAM530wwjiPz65ZlaKikLdiSXMQjkVduMTEStvY+8urOMRMIa3dsz2/ 9iioKlNVjsWx1F8zgueMLPQZykvtDtukykaO
X-Google-Smtp-Source: ABdhPJyhyvkU7O43Gjn2atraazZzXRmJh3ggFKIChEKrCDCnR5SCa1wHsKON0aGOUWUGjcbzRRAHkg==
X-Received: by 2002:a17:906:6a1d:: with SMTP id qw29mr8837243ejc.664.1644216092018; Sun, 06 Feb 2022 22:41:32 -0800 (PST)
Received: from [10.118.28.105] ([163.117.64.17]) by smtp.gmail.com with ESMTPSA id q12sm4722122edv.99.2022.02.06.22.41.31 for <behave@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Feb 2022 22:41:31 -0800 (PST)
Message-ID: <dc15ccc0-3a67-563d-cf0f-08dcc7575fd2@it.uc3m.es>
Date: Mon, 07 Feb 2022 07:41:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-GB
To: behave@ietf.org
References: <45e423cc-4095-cca2-bf8c-aa15e977b19c@posteo.de> <ff858dee-a21a-a50d-72a5-da7915ac2de4@network-heretics.com> <71b5cdb0-78af-0f77-debc-84e178fe5e3a@posteo.de>
From: marcelo bagnulo braun <marcelo@it.uc3m.es>
In-Reply-To: <71b5cdb0-78af-0f77-debc-84e178fe5e3a@posteo.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/behave/2FcbckOWADyQI_qzuylTksGeiV0>
Subject: Re: [BEHAVE] RFC6147 and RFC7208 interoperability issues
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/behave/>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Feb 2022 06:41:46 -0000

El 7/2/22 a las 1:38, Klaus Frank escribió:
> Hi,
>
> I can understand you. I also don't like NAT. And I would also have 
> favored different migration paths from IPv4 to IPv6. But NAT64+DNS64 
> is the one we got. I'm sure there have been discussions earlier. I 
> didn't want to resume or repeat those discussions. I'm certain there 
> are valid reasons for why we have the current migration paths and that 
> the pros and cons of different strategies have been covered adequately.
>
> Nonetheless DNS64 is incomplete without also addressing the SPF record.
>

I guess one operative question is whether this issue can be dealt with 
an errata or should require an update in the spec.

Regards, marcelo



> On 2022-02-06 23:18, Keith Moore wrote:
>> On 2/6/22 13:09, Klaus Frank wrote:
>>
>>> Hi,
>>>
>>> we had some issues with SPF and a mail server that was behind 
>>> NAT64+DNS64. I at first thought that it was just a misconfiguration. 
>>> But after the DNS64 server seamed to work as intended I went to the 
>>> implementation and the RFC. Thereby while reading RFC6147 I stumbled 
>>> across section 5.3.3 which says "All other RRs MUST be returned 
>>> unchanged." which is the cause of my issues. This section is 
>>> basically ignoring SPF records (RFC7208 section 5.6) and also 
>>> preventing DNS64 implementations from addressing this limitation.
>>>
>>> Would it be possible to create an extension to RFC6147 that mandates 
>>> SPF record rewrites as well? Otherwise Mail servers behind 
>>> NAT64+DNS64 in IPv6 only environments won't be able to work as 
>>> expected.
>>>
>>> Like:
>>> If the DNS64 server receives a SPF-record (within either the TXT-RR 
>>> or the SPF-RR [RFC4408]) containing the "ip4" mechanism it MUST 
>>> rewrites the ipv4 address according to the same rules as A-records 
>>> are and synthesizes a new SPF record within the response that 
>>> contains additional "ip6" entries. The original "ip4" should not be 
>>> removed from the response.
>>
>> PLEASE do not try to make DNS reflect any more NAT alterations to 
>> reality.  That was ALWAYS a Bad Idea.   If you're going to operate 
>> application servers behind any kind of NAT, what you need to do is 
>> arrange for those application servers to somehow get a view of the 
>> external/global addresses that they're communicating with, even if 
>> the source IP addresses that they see aren't the real ones.  (If NATs 
>> had been done "right" there would be an API for this, supported by 
>> all NATs.   But that ship sailed decades ago.)
>>
>> More generally, NAT is inherently unfixable, and trying to fix it can 
>> only result in infinitely growing complexity and brokenness. It's the 
>> usual problem with telling lies: every lie you tell needs N 
>> additional lies to cover up the earlier lies and so on recursively.
>>
>> (also, relying on SPF records is ill-advised, as they're too likely 
>> to be out-of-sync with reality even without NATs in the picture. )
>>
>> Keith
>>
>>
>> _______________________________________________
>> Behave mailing list
>> Behave@ietf.org
>> https://www.ietf.org/mailman/listinfo/behave
>
> _______________________________________________
> Behave mailing list
> Behave@ietf.org
> https://www.ietf.org/mailman/listinfo/behave