1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
|
<pre>Internet Engineering Task Force (IETF) Y. Nir
Request for Comments: 6867 Check Point
Category: Experimental Q. Wu
ISSN: 2070-1721 Huawei
January 2013
<span class="h1">An Internet Key Exchange Protocol Version 2 (IKEv2)</span>
<span class="h1">Extension to Support EAP Re-authentication Protocol (ERP)</span>
Abstract
This document updates the Internet Key Exchange Protocol version 2
(IKEv2) described in <a href="./rfc5996">RFC 5996</a>. This extension allows an IKE Security
Association (SA) to be created and authenticated using the Extensible
Authentication Protocol (EAP) Re-authentication Protocol extension,
as described in <a href="./rfc6696">RFC 6696</a>.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for examination, experimental implementation, and
evaluation.
This document defines an Experimental Protocol for the Internet
community. This document is a product of the Internet Engineering
Task Force (IETF). It represents the consensus of the 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 a candidate for any level of
Internet Standard; see <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6867">http://www.rfc-editor.org/info/rfc6867</a>.
<span class="grey">Nir & Wu Experimental [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
Copyright Notice
Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
IKEv2, as specified in [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>], allows (<a href="#section-2.16">Section 2.16</a>)
authentication of the initiator using an EAP method. Using EAP
significantly increases the count of round trips required to
establish the IPsec 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 [<a href="./rfc6696" title=""EAP Extensions for the EAP Re-authentication Protocol (ERP)"">RFC6696</a>],
allows an EAP peer to authenticate to multiple authenticators while
performing the full EAP method only once. Subsequent authentications
require fewer round 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 single 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 faster set up of new tunnels when
previous tunnels have been torn down due to things like network
outage, device suspension, or a temporary move out of range. This is
similar to the session resumption mechanism described in [<a href="./rfc5723" title=""Internet Key Exchange Protocol Version 2 (IKEv2) Session Resumption"">RFC5723</a>].
One exception being that instead of a ticket stored by the client,
the re-authentication Master Session Key (rMSK) (see <a href="./rfc6696#section-4.6">Section 4.6 of
[RFC6696]</a>) is used as the session key stored on both the client and
the Authentication, Authorization, and Accounting (AAA) server.
<span class="grey">Nir & Wu Experimental [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Conventions Used in This Document</span>
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 [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Usage Scenarios</span>
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, most 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 not efficient; 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 cellular network, where a VPN is
necessary, and back again. Both the VPN server and the 802.1x
access point are authenticators that connect to the same 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 use VPN. However, this process is beyond the scope of
this document. [<a href="#ref-SECBEAC" title=""Secure Beacon: Securely Detecting a Trusted Network"">SECBEAC</a>] 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.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Protocol Outline</span>
Supporting EAP Re-authentication Extension (ERX) requires an EAP
payload in the first IKE_AUTH request. This is a deviation from the
rules in [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>], 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 in <a href="./rfc6696#section-5.3.1">Section 5.3.1 of [RFC6696]</a>. The "Domain Name" field
contains the content of the Domain-Name TLV as specified in <a href="#section-5.3.1.1">Section</a>
<a href="#section-5.3.1.1">5.3.1.1</a> of the same document.
<span class="grey">Nir & Wu Experimental [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
A supporting initiator that has unexpired keys for this domain will
send the EAP-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 the initiator in an EAP
payload within the first IKE_AUTH response.
The initiator then sends an additional IKE_AUTH request that includes
the AUTH payload, which has been calculated using the rMSK in the
role of the MSK as described in Sections <a href="#section-2.15">2.15</a> and <a href="#section-2.16">2.16</a> of [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>].
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 in [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>].
The following figure is adapted from Appendixes C.1 and C.3 of
[<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>], with most of the optional payloads removed. Note that the
EAP-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),
| 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 Type ID_RFC822_ADDR, and the data field
MUST contain the same value as the KeyName-NAI TLV in the EAP-
Initiate/Re-auth message. See <a href="#section-3.2">Section 3.2</a> for details.
<span class="grey">Nir & Wu Experimental [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Clarification about EAP Codes</span>
<a href="./rfc5996#section-3.16">Section 3.16 of [RFC5996]</a> enumerates the EAP codes in EAP messages
that are carried in EAP payloads. The enumeration goes only to 4.
It is not clear whether or not that list is supposed to be
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) from <a href="./rfc6696#section-5.3">Section 5.3 of [RFC6696]</a>, in addition to
the four codes enumerated in [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>]. This document is
intentionally silent about other EAP codes that are not enumerated in
those documents.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Username in the Protocol</span>
The authors, as well as participants of the HOKEY and IPsecME working
groups, 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 the
Internet and would naturally connect to the user's home network.
This section addresses instances where this is not the case.
<a href="./rfc6696#section-5.3.2">Section 5.3.2 of [RFC6696]</a> describes the EAP-Initiate/Re-auth packet,
which, in the case of IKEv2, 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 AccessRequest message and is returned from the AAA
server in the AccessAccept message.
The username part of the Network Access Identifier (NAI) within the
TLV is the EMSKName [<a href="./rfc5295" title=""Specification for the Derivation of Root Keys from an Extended Master Session Key (EMSK)"">RFC5295</a>] 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, and it 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 some cases, 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 real
username. Meaningful logs can still be issued by correlating VPN
gateway IKE events with AAA servers access records.
<span class="grey">Nir & Wu Experimental [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
o Sometimes users receive different authorizations based on groups
to which they belong. The AAA server can communicate such
information to the VPN gateway, for example, using the CLASS
attribute [<a href="./rfc2865" title=""Remote Authentication Dial In User Service (RADIUS)"">RFC2865</a>] in RADIUS and Diameter [<a href="./rfc6733" title=""Diameter Base Protocol"">RFC6733</a>]. 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)
[<a href="./rfc4511" title=""Lightweight Directory Access Protocol (LDAP): The Protocol"">RFC4511</a>], 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 or Diameter.
In any case, 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.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. ERX_SUPPORTED Notification</span>
The Notify payload is as described in [<a href="./rfc5996" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC5996</a>]:
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.
o Security Parameter Index (SPI) Size (1 octet) - MUST be zero, in
conformance with <a href="./rfc5996#section-3.10">Section 3.10 of [RFC5996]</a>.
o ERX Notify Message Type (2 octets) - MUST be 16427, the value
assigned for ERX.
o Domain Name (variable) - contains the domain name or realm, as
these terms are used in [<a href="./rfc6696" title=""EAP Extensions for the EAP Re-authentication Protocol (ERP)"">RFC6696</a>] and encoded as ASCII, as
specified in [<a href="./rfc4282" title=""The Network Access Identifier"">RFC4282</a>].
<span class="grey">Nir & Wu Experimental [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Operational Considerations</span>
This specification changes the behavior of IKE peers, both initiators
and responders. The behavior of backend AAA servers is not changed
by this specification, but they are required to support [<a href="./rfc6696" title=""EAP Extensions for the EAP Re-authentication Protocol (ERP)"">RFC6696</a>].
The same goes for the EAP client, if it's not integrated into the IKE
initiator (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 in
Sections <a href="#section-3">3</a>, <a href="#section-4">4</a>, and <a href="#section-5">5</a> of [<a href="./rfc6696" title=""EAP Extensions for the EAP Re-authentication Protocol (ERP)"">RFC6696</a>]. 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 <a href="#section-3">Section 3</a>). 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.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
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
the supplicant or VPN 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 the 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.
<span class="grey">Nir & Wu Experimental [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
IANA has assigned a notify message type of 16427 from the "IKEv2
Notify Message Types - Status Types" registry with the name
"ERX_SUPPORTED".
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Acknowledgements</span>
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.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. References</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC4282">RFC4282</a>] Aboba, B., Beadles, M., Arkko, J., and P. Eronen, "The
Network Access Identifier", <a href="./rfc4282">RFC 4282</a>, December 2005.
[<a id="ref-RFC5295">RFC5295</a>] Salowey, J., Dondeti, L., Narayanan, V., and M. Nakhjiri,
"Specification for the Derivation of Root Keys from an
Extended Master Session Key (EMSK)", <a href="./rfc5295">RFC 5295</a>,
August 2008.
[<a id="ref-RFC5996">RFC5996</a>] Kaufman, C., Hoffman, P., Nir, Y., and P. Eronen,
"Internet Key Exchange Protocol Version 2 (IKEv2)",
<a href="./rfc5996">RFC 5996</a>, September 2010.
[<a id="ref-RFC6696">RFC6696</a>] Cao, Z., He, B., Shi, Y., Wu, Q., and G. Zorn, "EAP
Extensions for the EAP Re-authentication Protocol (ERP)",
<a href="./rfc6696">RFC 6696</a>, July 2012.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-RFC2865">RFC2865</a>] Rigney, C., Willens, S., Rubens, A., and W. Simpson,
"Remote Authentication Dial In User Service (RADIUS)",
<a href="./rfc2865">RFC 2865</a>, June 2000.
[<a id="ref-RFC4511">RFC4511</a>] Sermersheim, J., "Lightweight Directory Access Protocol
(LDAP): The Protocol", <a href="./rfc4511">RFC 4511</a>, June 2006.
[<a id="ref-RFC5723">RFC5723</a>] Sheffer, Y. and H. Tschofenig, "Internet Key Exchange
Protocol Version 2 (IKEv2) Session Resumption", <a href="./rfc5723">RFC 5723</a>,
January 2010.
<span class="grey">Nir & Wu Experimental [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6867">RFC 6867</a> ERP for IKE January 2013</span>
[<a id="ref-RFC6733">RFC6733</a>] Fajardo, V., Arkko, J., Loughney, J., and G. Zorn,
"Diameter Base Protocol", <a href="./rfc6733">RFC 6733</a>, October 2012.
[<a id="ref-SECBEAC">SECBEAC</a>] Sheffer, Y. and Y. Nir, "Secure Beacon: Securely Detecting
a Trusted Network", Work in Progress, June 2009.
Authors' Addresses
Yoav Nir
Check Point Software Technologies Ltd.
5 Hasolelim st.
Tel Aviv 67897
Israel
EMail: ynir@checkpoint.com
Qin Wu
Huawei Technologies Co., Ltd.
101 Software Avenue, Yuhua District
Nanjing, JiangSu 210012
China
EMail: sunseawq@huawei.com
Nir & Wu Experimental [Page 9]
</pre>
|