IPSECME Working Group A. Antony Internet-Draft S. Klassert Intended status: Standards Track secunet Expires: 4 November 2024 3 May 2024 IKEv2 negotiation for Bound End-to-End Tunnel (BEET) mode ESP draft-antony-ipsecme-iekv2-beet-mode-01 Abstract This document specifies a new Notify Message Type Payload for the Internet Key Exchange Protocol Version 2 (IKEv2), to negotiate IPsec ESP Bound End-to-End Tunnel (BEET) mode. BEET mode combines the benefits of tunnel mode with reduced overhead, making it suitable for applications requiring minimalistic end-to-end tunnels, mobility support, and multi-address multi-homing capabilities. The introduction of the USE_BEET_MODE Notify Message enables the negotiation and establishment of BEET mode security associations. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 4 November 2024. Copyright Notice Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved. Antony & Klassert Expires 4 November 2024 [Page 1] Internet-Draft IKv2 for BEET mode ESP May 2024 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1. Background . . . . . . . . . . . . . . . . . . . . . . . 3 1.2. Requirements Language . . . . . . . . . . . . . . . . . . 3 1.3. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 2. IKEv2 Negotiation . . . . . . . . . . . . . . . . . . . . . . 3 2.1. USE_BEET_MODE Notify Message Payload . . . . . . . . . . 4 3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 4 4. Security Considerations . . . . . . . . . . . . . . . . . . . 4 5. Implementation Status . . . . . . . . . . . . . . . . . . . . 5 5.1. Linux XFRM . . . . . . . . . . . . . . . . . . . . . . . 5 5.2. strongSwan . . . . . . . . . . . . . . . . . . . . . . . 6 5.3. iproute2 . . . . . . . . . . . . . . . . . . . . . . . . 6 6. Acknowledgment . . . . . . . . . . . . . . . . . . . . . . . 7 7. Normative References . . . . . . . . . . . . . . . . . . . . 7 8. Informative References . . . . . . . . . . . . . . . . . . . 7 Appendix A. Additional Stuff . . . . . . . . . . . . . . . . . . 8 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 8 1. Introduction The Bound End-to-End Tunnel (BEET) mode, as specified in Appendix B of [RFC7402], offers an optimized approach for deploying IP Security (IPsec) using Encapsulating Security Payload (ESP) for end-to-end use cases. It combines the advantages of Tunnel and Transport modes specified in [RFC7296], while minimizing their overhead for end-to- end use cases. [TBD Authors propose to write a BIS document for Appendix B of [RFC7402], aiming to provide an updated document just focusing on ESP BEET mode.] The [RFC7402]does not specify the negotiation process for establishing BEET mode using the Internet Key Exchange Protocol Version 2 (IKEv2). This document fills this gap by introducing a new Notify Message Status Type, USE_BEET_MODE, tailored to facilitate the negotiation and establishment of BEET mode security associations in IKEv2. Antony & Klassert Expires 4 November 2024 [Page 2] Internet-Draft IKv2 for BEET mode ESP May 2024 1.1. Background For over a decade, a minimalist IPsec tunnel mode, BEET, has been in use for end-to-end security in Host Identity Protocol(HIP) environments without IKE negotiation, [RFC7401]. Also, in using IKE negotiation using a private IKEv2 Notify Message Type (strongSWAN ref). Additionally, BEET mode ESP is valuable for low-power devices which usually use only one end-to-end IPsec tunnel, as it reduces power consumption [RFC9333]and complexity. In situations where devices or IPsec connections are dedicated to a single application or transport protocol, the use of BEET mode simplifies packet processing and conserves energy, especially benefiting lower-powered devices. 1.2. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119]. 1.3. Terminology This document uses the following terms defined in IKEv2 [RFC7296]: Child SA, CREATE_CHILD_SA, Notify Messages Type 2. IKEv2 Negotiation When negotiating a Child SA using IKEv2, the initiator may use the new USE_BEET_MODE Notify Message to request a Child SA pair with BEET mode support. The method used is similar to how USE_TRANSPORT_MODE is negotiated, as described in [RFC7296]. To request a BEET-mode SA on the Child SA pair, the initiator MUST include the USE_BEET_MODE Notify Message when requesting a new Child SA, either during the IKE_AUTH or the CREATE_CHILD_SA exchanges. If the request is accepted, the response MUST also include a USE_BEET_MODE Notification. If the responder declines and does not include the USE_BEET_MODE Notify Message in the response, the child SA may be established without BEET mode enabled. If this is unacceptable to the initiator, the initiator MUST delete the child SA. As the use of the USE_BEET_MODE mode payload is currently only defined for non-transport-mode tunnels, the USE_BEET_MODE notification MUST NOT be combined with the USE_TRANSPORT_MODE notification. Antony & Klassert Expires 4 November 2024 [Page 3] Internet-Draft IKv2 for BEET mode ESP May 2024 2.1. USE_BEET_MODE Notify Message Payload 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-----------------------------+-------------------------------+ ! Next Payload !C! RESERVED ! Payload Length ! +---------------+---------------+-------------------------------+ ! Protocol ID ! SPI Size ! Notify Message Type ! +---------------+---------------+-------------------------------+ Figure 1 * Payload Length - MUST be 0. * Protocol ID (1 octet) - MUST be 0. MUST be ignored if not 0. * SPI Size (1 octet) - MUST be 0. MUST be ignored if not 0. 3. IANA Considerations This document defines a new IKEv2 Notify for the IANA "IKEv2 Notify Message Status Types" registry. Value Notify Message Status Type Reference ----- --------------------------- --------------- [TBD1] USE_BEET_MODE [this document] Figure 2 4. Security Considerations In this section we discuss the security properties of the BEET mode, discussing some and point out some of its limitations [RFC3552]. There are no known new vulnerabilities that the addition of the BEET mode to IKEv2 would create. Since the BEET security associations have the semantics of a fixed, point-to-point tunnel between two IP addresses, it is possible to place one or both of the tunnel end points into other network or nodes but those that actually "possess" the inner IP addresses, i.e., to implement a BEET mode proxy. However, since such usage defeats the security benefits of combined ESP processing, as discussed in [I-D.nikander-esp-beet-mode], the implementations SHOULD NOT support such usage when used in combination with IKEv2; and use IKEv2 MOBIKE to move the between networks. Antony & Klassert Expires 4 November 2024 [Page 4] Internet-Draft IKv2 for BEET mode ESP May 2024 5. Implementation Status [Note to RFC Editor: Please remove this section and the reference to [RFC6982]before publication.] This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit". Authors are requested to add a note to the RFC Editor at the top of this section, advising the Editor to remove the entire section before publication, as well as the reference to [RFC7942]. 5.1. Linux XFRM Linux Organization: Linux kernel Project Name: Linux Kernel https://www.kernel.org/ Description: Implements BEET mode in ESP. The initial support was added in 2006. It is widely used Level of maturity: Stable and used for over 15 years Licensing: GPLv2 Implementation experience: There is no support for IPv4 fragments yet. IPv6 fragments appears to work. The BEE mode code is in production for over a decade Antony & Klassert Expires 4 November 2024 [Page 5] Internet-Draft IKv2 for BEET mode ESP May 2024 Contact: https://lore.kernel.org/netdev/ 5.2. strongSwan Organization: The strongSwan Project Name: strongSwan https://docs.strongswan.org/docs/5.9/swanctl/ swanctlConf.html Description: Implements IKE negotiation and ESP support for BEET mode Linux Level of maturity: Stable for a long time Coverage: Implements negotiating BEET mode support in Child SA negotiations and using it in ESP. The initial support was added in 2006. Licensing: GPLv2 Implementation experience strongSwan use a private Notify Message Status Type USE_BEET_MODE (40961) for IKE. As far we know BEET is widely used. Contact Tobias Brunner tobias@strongswan.org 5.3. iproute2 Organization: The iproute2 Project Name: iproute2 https://git.kernel.org/pub/scm/network/iproute2/ iproute2.git Description: Implements BEET mode support in ESP. e.g. command support "ip xfrm policy ... mode beet" . and "ip xfrm state .. mode beet". The initial support was added in 2006 Level of maturity: Stable Licensing: GPLv2 Implementation experience: TBD Contact: https://lore.kernel.org/netdev/ or Stephen Hemminger stephen@networkplumber.org Antony & Klassert Expires 4 November 2024 [Page 6] Internet-Draft IKv2 for BEET mode ESP May 2024 6. Acknowledgment We extend our sincere gratitude to the authors and contributors who contributed to the standardization of BEET mode. Their insights and dedication have significantly influenced our work, as well as their contributions to the implementation of BEET mode many years ago. 7. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC7296] Kaufman, C., Hoffman, P., Nir, Y., Eronen, P., and T. Kivinen, "Internet Key Exchange Protocol Version 2 (IKEv2)", STD 79, RFC 7296, DOI 10.17487/RFC7296, October 2014, . [RFC7402] Jokela, P., Moskowitz, R., and J. Melen, "Using the Encapsulating Security Payload (ESP) Transport Format with the Host Identity Protocol (HIP)", RFC 7402, DOI 10.17487/RFC7402, April 2015, . 8. Informative References [I-D.nikander-esp-beet-mode] Nikander, P. and J. Melen, "A Bound End-to-End Tunnel (BEET) mode for ESP", Work in Progress, Internet-Draft, draft-nikander-esp-beet-mode-09, 5 August 2008, . [RFC3552] Rescorla, E. and B. Korver, "Guidelines for Writing RFC Text on Security Considerations", BCP 72, RFC 3552, DOI 10.17487/RFC3552, July 2003, . [RFC6982] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", RFC 6982, DOI 10.17487/RFC6982, July 2013, . [RFC7401] Moskowitz, R., Ed., Heer, T., Jokela, P., and T. Henderson, "Host Identity Protocol Version 2 (HIPv2)", RFC 7401, DOI 10.17487/RFC7401, April 2015, . Antony & Klassert Expires 4 November 2024 [Page 7] Internet-Draft IKv2 for BEET mode ESP May 2024 [RFC7942] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016, . [RFC9333] Migault, D. and T. Guggemos, "Minimal IP Encapsulating Security Payload (ESP)", RFC 9333, DOI 10.17487/RFC9333, January 2023, . Appendix A. Additional Stuff This becomes an Appendix. Authors' Addresses Antony Antony secunet Security Networks AG Email: antony.antony@secunet.com Steffen Klassert secunet Security Networks AG Email: steffen.klassert@secunet.com Antony & Klassert Expires 4 November 2024 [Page 8]