Network Working GroupInternet Engineering Task Force (IETF) Y. NirInternet-DraftRequest for Comments: 6867 Check PointIntended status:Category: Experimental Q. WuExpires: June 23, 2013ISSN: 2070-1721 HuaweiDecember 20, 2012January 2013 AnIKEv2Internet Key Exchange Protocol Version 2 (IKEv2) Extensionfor Supporting ERP draft-nir-ipsecme-erx-11to Support EAP Re-authentication Protocol (ERP) Abstract This document updates theIKEv2 protocol,Internet Key Exchange Protocol version 2 (IKEv2) described in RFC 5996. This extension allows an IKE Security Association (SA) to be created and authenticated using theEAPExtensible Authentication Protocol (EAP) Re-authentication Protocolextensionextension, as described in RFC 6696. Status ofthisThis Memo ThisInternet-Draftdocument issubmitted in full conformance with the provisions of BCP 78not an Internet Standards Track specification; it is published for examination, experimental implementation, andBCP 79. Internet-Drafts are working documentsevaluation. This document defines an Experimental Protocol for the Internet community. This document is a product of the Internet Engineering Task Force (IETF).Note that other groups may also distribute working documents as Internet-Drafts. The listIt represents the consensus ofcurrent Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents validthe IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are amaximumcandidate for any level ofsix monthsInternet Standard; see Section 2 of RFC 5741. Information about the current status of this document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany 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 June 23, 2013.http://www.rfc-editor.org/info/rfc6867. Copyright Notice Copyright (c)20122013 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. 1. Introduction IKEv2, as specified insection 2.16 of[RFC5996], allows (Section 2.16) authentication of the initiator using an EAP method. Using EAP significantly increases the count ofround-tripsround trips required to establish the IPsecSA,SA and also may require user interaction. This makes it inconvenient to allow a single remote access client to create multiple IPsec tunnels with multiple IPsec gateways that belong to the same domain. The EAP Re-authentication Protocol (ERP), as described in [RFC6696], allows an EAP peer to authenticate to multipleauthenticators,authenticators while performing the full EAP method only once. Subsequent authentications require fewerround-tripsround trips and no user interaction. Bringing these two technologies together allows a remote access IPsec client to create multiple tunnels with different gateways that belong to a singledomain,domain as well as using the keys from other contexts of using EAP, such as network access within the same domain, to transparently connect to VPN gateways within this domain. Additionally, it allows for fastersettingset up of new tunnels when previous tunnels have been torn down due to things like network outage, device suspension, ortemporarily movinga temporary move out of range. This is similar to the session resumption mechanism described in[RFC5723], except[RFC5723]. One exception being that instead of a ticket stored by the client, the re-authenticationMSK (rMSK - see sectionMaster Session Key (rMSK) (see Section 4.6 ofRFC 6696)[RFC6696]) is used as the session key stored on both the client and theAAAAuthentication, Authorization, and Accounting (AAA) server. 1.1. Conventions Used in This Document 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 [RFC2119]. 2. Usage Scenarios This work is motivated by the following scenarios: o Multiple tunnels for a single remote access VPN client. Suppose a company has offices in New York City, Paris, and Shanghai. For historical reasons, the email server is located in the Paris office,whilemost of the servers hosting the company's intranet are located in Shanghai, and the finance department servers are in New York City. An employee using a remote access VPN may need to connect to servers from all three locations. While it is possible to connect to a single gateway, and have that gateway route the requests to the other gateways (perhaps through site to site VPN), this is notefficient, andefficient; it is more desirable to have the client initiate three different tunnels. It is, however, not desirable to have the user type in a password three times. o Roaming. In these days of mobile phones and tablets, users often move from the wireless LAN in their office, where access may be granted through 802.1x, to a cellularnetworknetwork, where a VPN isnecessarynecessary, and back again. Both the VPN server and the 802.1x access point are authenticators that connect to the sameAuthentication, Authorization and Accounting (AAA)AAA servers. So it makes sense to make the transition smooth, without requiring user interaction. The device still needs to detect whether it is within the protected network, in which case it should not useVPN, butVPN. However, this process is beyond the scope of this document.[SecureBeacon][SECBEAC] is a now-abandoned attempt at this. o Resumption. If a device gets disconnected from an IKE peer, ERP can be used to reconnect to the same gateway without user intervention. 3. Protocol Outline SupportingERXEAP Re-authentication Extension (ERX) requires an EAP payload in the first IKE_AUTH request. This is a deviation from the rules inRFC 5996,[RFC5996], so support needs to be indicated through a Notify payload in the IKE_SA_INIT response. This Notify serves the same purpose as the EAP-Initiate/Re-auth-Start message of ERX, as specified insectionSection 5.3.1 ofRFC 6696.[RFC6696]. Thedomain name included in"Domain Name" field contains the content of the Domain-Name TLV as specified insectionSection 5.3.1.1 of the same document. A supporting initiator that has unexpired keys for this domain will send theEAP_Initiate/Re-authEAP-Initiate/Re-auth message in an EAP payload in the first IKE_AUTH request. The responder sends the EAP payload content to a backend AAA server. If that server has a valid rMSK for that session, it sends those along with an EAP-Finish/Re-auth message. The responder then forwards the EAP-Finish/Re-auth message to theInitiatorinitiator in an EAP payload within the first IKE_AUTH response. The initiator then sends an additional IKE_AUTHrequest,request that includes the AUTHpayloadpayload, which has been calculated using the rMSK in the role of the MSK as described insectionsSections 2.15 and 2.16 ofRFC 5996.[RFC5996]. The responder replies similarly, and the IKE_AUTH exchange is finished. If the backend AAA server does not have valid keys for the Re-auth- Start message, it sends back a normal EAP request, and no rMSK key. EAP flow continues as inRFC 5996.[RFC5996]. The following figure is adapted fromappendixesAppendixes C.1 and C.3 ofRFC 5996,[RFC5996], with most of the optional payloads removed. Note that theEAP_Initiate/Re-authEAP-Initiate/Re-auth message is added. IKE_SA_INIT Exchange: | init request --> SA, KE, Ni, | | init response <-- SA, KE, Nr, | N[ERX_SUPPORTED] IKE_AUTH Exchanges: | first request -->EAP(EAP_Initiate/Re-auth),EAP(EAP-Initiate/Re-auth), | IDi, | SA, TSi, TSr | | first response <-- IDr, [CERT+], AUTH, | EAP(EAP-Finish/Re-auth) | | last request --> AUTH | | last response <-- AUTH, | SA, TSi, TSr The IDi payload MUST have ID TypeID_RFC822_ADDRID_RFC822_ADDR, and the data field MUST contain the same value as the KeyName-NAI TLV in theEAP_Initiate/Re-authEAP- Initiate/Re-auth message. See Section 3.2 for details. 3.1. ClarificationAboutabout EAP Codes Section 3.16 ofRFC 5996[RFC5996] enumerates the EAP codes in EAP messageswhichthat are carried in EAP payloads. The enumeration goes only to 4. It is not clear whether or not that list is supposed to beexhaustive or not.exhaustive. To clarify, an implementation conforming to this specification MUST accept and transmit EAP messages with at least the codes for Initiate and Finish (5 and 6) fromRFC 6696,Section 5.3 of [RFC6696], in addition to the four codes enumerated inRFC 5996.[RFC5996]. This document is intentionally silent about other EAP codes that areneithernot enumerated inRFC 5996 nor in that document.those documents. 3.2.User NameUsername in the Protocol The authors, as well as participants of the HOKEY and IPsecME workinggroupsgroups, believe that all use cases for this extension to IKE have a single backend AAA server doing both the authentication and the re- authentication. The reasoning behind this is that IKE runs over theInternet,Internet and would naturally connect to the user's home network. This section addresses instances where this is not the case. Section 5.3.2 ofRFC 6696[RFC6696] describes the EAP-Initiate/Re-auth packet,whichwhich, in the case ofIKEv2IKEv2, is carried in the first IKE_AUTH request. This packet contains the KeyName-NAI TLV. This TLV contains the username used in authentication. It is relayed to the AAA server in the AccessRequestmessage,message and is returned from the AAA server in the AccessAccept message. The username part of theNAINetwork Access Identifier (NAI) within the TLV is the EMSKName([RFC5295])[RFC5295] encoded in hexadecimal digits. The domain part is the domain name of the home domain of the user. The username part is ephemeral in the sense that a new one is generated for each full authentication. This ephemeral value is not a good basis for making policy decisions, andthey areit is also a poor source of user identification for the purposes of logging. Instead, it is up to the implementation in the IPsec gateway to make policy decisions based on other factors. The following list is by no means exhaustive: o In somecasescases, the home domain name may be enough to make policy decisions. If all users with a particular home domain get the same authorization, then policy does not depend on the realuser name.username. Meaningful logs can still be issued by correlating VPN gateway IKE events with AAA servers access records. o Sometimes users receive different authorizations based on groups to which theybelong to.belong. The AAA server can communicate such information to the VPN gateway, forexampleexample, using the CLASS attribute([RFC2865])[RFC2865] in RADIUS and Diameter([RFC3588]).[RFC6733]. Logging again depends on correlation with AAA servers. o AAA servers may support extensions that allow them to communicate with their clients (in our case--- the VPN gateway) to push user information. For example, a certain product integrates a RADIUS server with the Lightweight Directory Access Protocol(LDAP - [RFC4511]),(LDAP) [RFC4511], so a client could query the server using LDAP and receive the real record for this user. Others may provide this data through vendor-specific extensions to RADIUS orDIAMETER.Diameter. In anycasecase, authorization is a major issue in deployments, if the backend AAA server supporting the re-authentication is different from the AAA server that had supported the original authentication. It is up to the re-authenticating AAA server to provide the necessary information for authorization. A conforming implementation of this protocol MAY reject initiators for which it is unable to make policy decisions because of these reasons. 4. ERX_SUPPORTED Notification The Notify payload is as described inRFC 5996:[RFC5996]: 1 2 3 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 ! ERX Notify Message Type ! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ! Domain Name ! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ o Protocol ID (1 octet) - MUST be zero, as this message is related to an IKE SA. oSPISecurity Parameter Index (SPI) Size (1 octet) - MUST be zero, in conformance withsectionSection 3.10 ofRFC 5996.[RFC5996]. o ERX Notify Message Type (2 octets) - MUST bexxxxx,16427, the value assigned for ERX.TBA by IANA.o Domain Name (variable) - contains the domain name or realm, as these terms are used inRFC 6696,[RFC6696] and encoded as ASCII, as specified in [RFC4282]. 5. Operational Considerations This specification changes the behavior of IKE peers, both initiators and responders. The behavior ofback-endbackend AAA servers is not changed by this specification, but they are required to supportRFC 6696.[RFC6696]. The same goes for the EAP client, if it's not integrated into the IKEInitiatorinitiator (for example, if the EAP client is an operating system component). This specification is silent about key storage and key lifetimes on either the EAP client or the EAP server. These issues are covered insectionsSections 3, 4, and 5 ofRFC 6696.[RFC6696]. The key lifetime may be communicated from the AAA server to the EAP client via the Lifetime attribute in the EAP-Finish/Re-auth message. If the server does not have a valid key, while the client does have one, regular EAP is used (see Section 3). This should not happen if lifetimes are communicated. In such a case, the IKEv2 initiator / EAP client MAY alert the user and MAY log the event. Note that this does not necessarily indicate an attack. It could simply be a loss of state on the AAA server. 6. Security Considerations The protocol extension described in this document extends the authentication from one EAP context, which may or may not be part of IKEv2, to an IKEv2 context. Successful completion of the protocol proves to the authenticator, which in our case is a VPN gateway, that thesupplicant,supplicant or VPNclient,client has authenticated in some other EAP context. The protocol supplies the authenticator with the domain name with which the supplicant has authenticated, but does not supply it with a specific identity. Instead, the gateway receives an EMSKName, which is an ephemeral ID. With this variant of the IKEv2 protocol, the initiator never sends its real identity on thewire,wire while the server does. This is different from the usual IKEv2 practice of the initiator revealing its identity first. If the domain name is sufficient to make access control decisions, this is enough. If not, then the gateway needs to find out either the real name or authorization information for that particular user. This may be done using the AAA protocol or by some other federation protocol, which is out of scope for this specification. 7. IANA Considerations IANAis requested to assignhas assigned a notify message typefrom the status types range (16418-40959)of 16427 from the "IKEv2 Notify Message Types - Status Types" registry with the name "ERX_SUPPORTED". 8. Acknowledgements The authors would like to thank Yaron Sheffer for comments and suggested text that have contributed to this document. Thanks also to Juergen Schoenwaelder for his OPS-DIR review comments. 9. References 9.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC4282] Aboba, B., Beadles, M., Arkko, J., and P. Eronen, "The Network Access Identifier", RFC 4282, December 2005. [RFC5295] Salowey, J., Dondeti, L., Narayanan, V., and M. Nakhjiri, "Specification for the Derivation of Root Keys from an Extended Master Session Key (EMSK)", RFC 5295, August 2008. [RFC5996] Kaufman, C., Hoffman, P., Nir, Y., and P. Eronen, "Internet Key ExchangeProtocol: IKEv2",Protocol Version 2 (IKEv2)", RFC 5996, September 2010. [RFC6696] Cao, Z., He, B., Shi, Y., Wu, Q., and G. Zorn, "EAP Extensions for the EAP Re-authentication Protocol (ERP)", RFC 6696, July 2012. 9.2. Informative References [RFC2865] Rigney, C., Willens, S., Rubens, A., and W. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, June 2000.[RFC3588] Calhoun, P., Loughney, J., Guttman, E., Zorn, G., and J. Arkko, "Diameter Base Protocol", RFC 3588, September 2003.[RFC4511] Sermersheim, J., "Lightweight Directory Access Protocol (LDAP): The Protocol", RFC 4511, June 2006. [RFC5723] Sheffer, Y. and H. Tschofenig, "Internet Key Exchange Protocol Version 2 (IKEv2) Session Resumption", RFC5273,5723, January 2010.[SecureBeacon][RFC6733] Fajardo, V., Arkko, J., Loughney, J., and G. Zorn, "Diameter Base Protocol", RFC 6733, October 2012. [SECBEAC] Sheffer, Y. and Y. Nir, "Secure Beacon: Securely Detecting a Trusted Network",draft-sheffer-ipsecme-secure-beacon (workWork inprogress),Progress, June 2009. Authors' Addresses Yoav Nir Check Point Software Technologies Ltd. 5 Hasolelim st. Tel Aviv 67897 IsraelEmail:EMail: ynir@checkpoint.com Qin Wu Huawei Technologies Co., Ltd. 101 Software Avenue, Yuhua District Nanjing, JiangSu 210012 ChinaEmail:EMail: sunseawq@huawei.com