TOC 
RADIUS Extensions Working GroupS. Winter
Internet-DraftRESTENA
Intended status: ExperimentalM. McCauley
Expires: December 20, 2008OSC
 S. Venaas
 UNINETT
 June 18, 2008


TLS encryption for RADIUS over TCP (RadSec)
draft-ietf-radext-radsec-00

Status of This Memo

By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.

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.”

The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.

The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.

This Internet-Draft will expire on December 20, 2008.

Abstract

This document specifies security on the transport layer (TLS) for the RADIUS protocol [RFC2865] (Rigney, C., Rubens, A., Simpson, W., and S. Willens, “Remote Authentication Dial In User Service (RADIUS),” June 2000.) when transmitted over TCP [draft‑ietf‑radext‑radius‑tcp] (Winter, S., “Reliable Transport Profile for RADIUS,” July 2008.). This enables dynamic trust relationships between RADIUS servers.



Table of Contents

1.  Introduction
    1.1.  Requirements Language
2.  Transport Layer Security
    2.1.  Operation
    2.2.  Ciphersuites and Compression Negotiation
    2.3.  RADIUS Shared Secret Usage in RadSec
3.  Comparison of Diameter vs. RadSec
4.  Diameter Compatibility
5.  Security Considerations
6.  IANA Considerations
7.  Acknowledgements
8.  References
    8.1.  Informative References
    8.2.  Normative References
Appendix A.  DNS NAPTR Peer Discovery
Appendix B.  Implementation Overview: Radiator
Appendix C.  Implementation Overview: radsecproxy




 TOC 

1.  Introduction

The RADIUS protocol [RFC2865] (Rigney, C., Rubens, A., Simpson, W., and S. Willens, “Remote Authentication Dial In User Service (RADIUS),” June 2000.) is a widely deployed authentication and authorisation protocol. The supplementary RADIUS Accounting specification [RFC2866] (Rigney, C., “RADIUS Accounting,” June 2000.) also provides accounting mechanisms, thus delivering a full AAA solution. However, RADIUS is experiencing several shortcomings, such as its dependency on the unreliable transport protocol UDP and the lack of security for large parts of its packet payload.

Several enhancements have been proposed to overcome RADIUS' limitations. An IETF Standards Track protocol, Diameter [RFC3588] (Calhoun, P., Laughney, J., Arkko, J., Guttman, E., and G. Zorn, “Diameter Base Protocol,” September 2003.), has been designed to provide an AAA protocol that should deprecate RADIUS. However, given that current implementations of Diameter are either not freely accessible, or do not provide the flexibility of current RADIUS deployments, or both, an intermediate solution that is based on RADIUS but provides mechanisms to overcome many of its drawbacks has been implemented by several vendors. These implementations are interoperable and deployed in a world-wide wireless roaming infrastructure. The protocol is called RadSec. This document describes version 2 of the RadSec protocol. Version 1 of RadSec is defined in the RadSec whitepaper [radsec‑whitepaper] (Open System Consultants, “RadSec - a secure, reliable RADIUS Protocol,” May 2005.). The two currently existing implementations of RadSec version 2 are described in Appendix B (Implementation Overview: Radiator) and Appendix C (Implementation Overview: radsecproxy).

The main focus of RadSec is to provide a means to secure the communication between RADIUS/TCP peers on the transport layer. The most important use of RadSec lies in roaming environments where RADIUS packets need to be transferred through different administrative domains and untrusted, potentially hostile networks. An example for a world-wide roaming environment that uses RadSec to secure communication is "eduroam", see [eduroam] (Trans-European Research and Education Networking Association, “eduroam Homepage,” 2007.).

The new features in RadSec obsolete the use of IP addresses and shared secrets to identify other peers and thus allow the dynamic establishment of connections to peers that are not previously configured. The definition of lookup mechanisms is out of scope of this document, but an implementation of a DNS NAPTR lookup based mechanism exists and is described as an example lookup mechanism in Appendix A (DNS NAPTR Peer Discovery).

Transitioning from a plain RADIUS infrastructure to a RadSec infrastructure is very easy, since the RADIUS packet payload is identical in both protocols. Enabling RadSec can be done on a per-server basis. Unlike in Diameter, the learning curve for a new protocol does not exist, which makes it almost trivial for an experienced RADIUS server administrator to switch to a RadSec-secured transport for RADIUS packets.

The security layer does not require any new assignments of codepoints for the RADIUS protocol. No new attributes are defined and no new packet codes are used.



 TOC 

1.1.  Requirements Language

In this document, several words are used to signify the requirements of the specification. 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] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).



 TOC 

2.  Transport Layer Security



 TOC 

2.1.  Operation

Once the TCP connection between two RadSec nodes is established, a TLS session is established. At least TLSv1.1 [RFC4346] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.1,” April 2006.) is used. Both nodes either mutually present a X.509 certificate which is verified according to [RFC5280] (Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and T. Polk, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” May 2008.) or use a shared key authentication for TLS which needs to be pre-configured out-of-band prior to the connection attempt.

The list of Certification Authorities that a node which acts as a server is willing to accept SHOULD be sent during the Certificate Request message in the CertificateRequest struct (section 7.4.4 of [RFC4346] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.1,” April 2006.)). Rationale: If a RadSec node acts as a client and is in possession of multiple certificates from different CAs (i.e. is part of multiple roaming consortia) and dynamic discovery is used, and the dynamic discovery mechanism does not provide sufficient meta information to identify the server's roaming consortium, then it is necessary to signal which consortium it is connecting to.

The list of Certification Authorities that a node which acts as a client is willing to accept can not be signaled within the TLS 1.1 handshake. This makes it impossible to select the right certificate if a RadSec node which is acting as a server for multiple roaming consortia (in possession of multiple certificates from different CAs) is contacted by a client. This situation is likely to change in TLS 1.2, according to [draft‑tls‑12] (Eastlake 3rd, D., “Transport Layer Security (TLS) Extensions: Extension Definitions,” February 2008.). "Trusted CA Indication" as in [draft‑tls‑12] (Eastlake 3rd, D., “Transport Layer Security (TLS) Extensions: Extension Definitions,” February 2008.), section 6, SHOULD be used.

When using X.509 certificate validation, peer validation always includes a check on whether the DNS name or the IP address of the server that is contacted matches its certificate. When a RadSec peer establishes a new connection (acts as a client) to another peer, the following rules of precedence are used during validation:

Further restrictions on the certificate MAY be verified, depending on the trust fabric of the peering agreement.

If dynamic peer resolution is used, the above verification steps MAY not be sufficient to ensure that a connecting peer is authorised to perform user authentications. In these cases, the trust fabric SHOULD NOT depend on untrusted peer resolution methods like DNS to identify and authorise nodes. Instead, the operators of the RadSec infrastructure SHOULD define their own trust model and apply this model to the certificates after they have passed the standard validity checks above. Current RadSec implementations offer varying degrees of versatility for defining criteria which certificates to accept.

NOTE WELL: None of the current implementations provide configuration options for using TLS with pre-shared keys. However, the underlying libraries support it, so support for that should be implementable easily.

After the TLS session is established, RADIUS packet payloads are exchanged over the encrypted TLS tunnel. In plain RADIUS, the packet size can be determined by evaluating the size of the datagram that arrived. Due to the stream nature of TCP and TLS, this does not hold true for RadSec packet exchange. Instead, packet boundaries of RADIUS packets that arrive in the stream are calculated by evaluating the packet's Length field. Special care MUST be taken on the packet sender side that the value of the Length field is indeed correct before sending it over the TLS tunnel, because incorrect packet lengths can no longer be detected by a differing datagram boundary.



 TOC 

2.2.  Ciphersuites and Compression Negotiation

RadSec implementations need not necessarily support all TLS ciphersuites listed in [RFC4346] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.1,” April 2006.). Not all TLS ciphersuites are supported by available TLS tool kits and licenses may be required in some cases. The existing implementations of RadSec use OpenSSL as cryptographic backend, which supports all of the ciphersuites listed in the rules below:

To ensure interoperability, RadSec clients and servers MUST support the TLS [RFC4346] (Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.1,” April 2006.) mandatory-to-implement ciphersuite: TLS_RSA_WITH_3DES_EDE_CBC_SHA.

In addition, RadSec servers SHOULD support and be able to negotiate all of the following TLS ciphersuites:

In addition, RadSec clients SHOULD support the following TLS ciphersuites [RFC3268] (Chown, P., “Advanced Encryption Standard (AES) Ciphersuites for Transport Layer Security (TLS),” June 2002.):

Since TLS supports ciphersuite negotiation, peers completing the TLS negotiation will also have selected a ciphersuite, which includes encryption and hashing methods.

TLS also supports compression as well as ciphersuite negotiation. During the RadSec conversation the client and server MAY negotiate compression. However, a peer MUST continue the conversation even if the other peer rejects compression.



 TOC 

2.3.  RADIUS Shared Secret Usage in RadSec

Within RADIUS [RFC2865] (Rigney, C., Rubens, A., Simpson, W., and S. Willens, “Remote Authentication Dial In User Service (RADIUS),” June 2000.), a shared secret is used for hiding of attributes such as User-Password, as well as in computation of the Response Authenticator.  In RADIUS accounting [RFC2866] (Rigney, C., “RADIUS Accounting,” June 2000.), the shared secret is used in computation of both the Request Authenticator and the Response Authenticator.

Since in RADIUS a shared secret is used to provide confidentiality as well as integrity protection and authentication, the use of TLS ciphers which encrypt the stream payload in RadSec can provide security services sufficient to substitute for RADIUS application-layer security. Therefore, where TLS ciphers that provide encryption are used, it will not be necessary to configure a RADIUS shared secret.

Then, the secret shared between two RadSec peers MAY not be configured. In this case, the shared secret defaults to "radsec" (without the quotes). However, if the RadSec nodes negotiated a TLS cipher that provides integrity assurance only, the connection MUST be configured with a non-default RADIUS shared secret.



 TOC 

3.  Comparison of Diameter vs. RadSec

The feature set in the Diameter Base Protocol is almost a superset of the features present in RadSec. Sophisticated mechanisms for keepalive, reliable transmission and payload security exist. The reason for specifying a short-term intermediate solution as opposed to using Diameter at the moment are the lack of suitable, publicly available and versatile implementations.

Typically, RADIUS servers do not only support the RADIUS protocol itself, but also provide interfaces to a wide variety of backends (credential stores) to actually verify a user's credentials. In highly heterogeneous environments like eduroam, where a lot of different backends are in use by the participating home servers (OpenLDAP, Novell eDirectory, ActiveDirectory, SQL databases or plain text files, just to name a few), such versatility is a requirement. Current Diameter server implementations focus on the validation of a small set of EAP methods (mostly EAP-SIM and EAP-TLS) and consequently on a small set of backends to verify these credentials.

A further requirement in environments like eduroam is affordability. Public institutions like schools and universities often face tight budgets, and so an open source implementation of Diameter would be desirable (just as FreeRADIUS is for the RADIUS protocol). Unfortunately, the few Open Source Software implementations of the Diameter protocol like OpenDiameter [opendiameter] (Open Diameter Project, “Open Diameter,” 2006.) or JDiameter [jdiameter] (Svenson, E., “JDiameter Project Homepage,” 2006.) only provide a set of libraries, but no server at all.

Diameter's ability to resolve peers dynamically is limited to using either SLPv2 or DNS, whereas RadSec allows arbitrary peer resolution mechanisms. This greater amount of flexibility can pay off in many roaming federations. In eduroam's case, a central SAML-based meta data repository ("eduGAIN-MDS") is in place which is able to provide peer addresses. Using RadSec it is possible to resolve a peer's address through such a meta data system, whereas with Diameter it is not possible to use this repository natively.



 TOC 

4.  Diameter Compatibility

Since RadSec is only a new transport profile for RADIUS, compatibility of RadSec - Diameter vs. RADIUS - Diameter is identical. The considerations regarding payload size in [draft‑ietf‑radext‑radius‑tcp] (Winter, S., “Reliable Transport Profile for RADIUS,” July 2008.) apply.



 TOC 

5.  Security Considerations

The computational resources to establish a TLS tunnel are significantly higher than simply sending mostly unencrypted UDP datagrams. Therefore, clients connecting to a RadSec node will more easily create high load conditions and a malicious client might create a Denial-of-Service attack more easily.

In the case of dynamic peer discovery, a RadSec node needs to be able to accept connections from a large, not previously known, group of hosts, possibly the whole internet. In this case, the server's RadSec port can not be protected from unauthorised connection attempts with measures on the network layer, i.e. access lists and firewalls. This opens more attack vectors for Distributed Denial of Service attacks, just like any other service that is supposed to serve arbitrary clients (like for example web servers).

Some TLS ciphersuites only provide integrity validation of their payload, and provide no encryption. When such ciphersuites are negotiated in a RadSec TLS handshake, the only means of protecting sensitive payload contents is the RADIUS shared secret. If the RADIUS shared secret is set to the default "radsec" and a non-encrypting TLS ciphersuite is used, implementations should either forbid transmitting payload over this connection completely or at least issue a warning to whatever logging destination is configured by the administrator.



 TOC 

6.  IANA Considerations

This document has no actions for IANA. The TCP port 2083 was already previously assigned by IANA for RadSec. The Status-Server packet was already assigned by IANA for [RFC2865] (Rigney, C., Rubens, A., Simpson, W., and S. Willens, “Remote Authentication Dial In User Service (RADIUS),” June 2000.).



 TOC 

7.  Acknowledgements

RadSec version 1 was first implemented by Open Systems Consultants, Currumbin Waters, Australia, for their "Radiator" RADIUS server product.

Funding and input for the development of this Internet Draft was provided by the European Commission co-funded project "GEANT2" [geant2] (Delivery of Advanced Network Technology to Europe, “European Commission Information Society and Media: GEANT2,” 2008.) and further feedback was provided by the TERENA Task Force Mobility [terena] (TERENA, “Trans-European Research and Education Networking Association,” 2008.).



 TOC 

8.  References



 TOC 

8.1. Informative References

[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” RFC 2119, March 1997.


 TOC 

8.2. Normative References

[RFC2865] Rigney, C., Rubens, A., Simpson, W., and S. Willens, “Remote Authentication Dial In User Service (RADIUS),” RFC 2865, June 2000.
[RFC2866] Rigney, C., “RADIUS Accounting,” RFC 2866, June 2000.
[RFC3268] Chown, P., “Advanced Encryption Standard (AES) Ciphersuites for Transport Layer Security (TLS),” RFC 3268, June 2002.
[RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and T. Polk, “Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,” RFC 5280, May 2008.
[RFC3588] Calhoun, P., Laughney, J., Arkko, J., Guttman, E., and G. Zorn, “Diameter Base Protocol,” RFC 3588, September 2003.
[RFC4346] Dierks, T. and E. Rescorla, “The Transport Layer Security (TLS) Protocol Version 1.1,” RFC 4346, April 2006.
[draft-tls-12] Eastlake 3rd, D., “Transport Layer Security (TLS) Extensions: Extension Definitions,” February 2008 (TXT).
[draft-ietf-radext-radius-tcp] Winter, S., “Reliable Transport Profile for RADIUS,” July 2008 (TXT).
[radsec-whitepaper] Open System Consultants, “RadSec - a secure, reliable RADIUS Protocol,” May 2005 (TXT).
[radiator-manual] Open System Consultants, “Radiator Radius Server - Installation and Reference Manual,” 2006 (TXT).
[opendiameter] Open Diameter Project, “Open Diameter,” 2006 (TXT).
[jdiameter] Svenson, E., “JDiameter Project Homepage,” 2006 (TXT).
[radsecproxy-impl] Venaas, S., “radsecproxy Project Homepage,” 2007 (TXT).
[eduroam] Trans-European Research and Education Networking Association, “eduroam Homepage,” 2007 (TXT).
[geant2] Delivery of Advanced Network Technology to Europe, “European Commission Information Society and Media: GEANT2,” 2008 (TXT).
[terena] TERENA, “Trans-European Research and Education Networking Association,” 2008 (TXT).


 TOC 

Appendix A.  DNS NAPTR Peer Discovery

The following text is quoted from the file goodies/dnsroam.cfg in the Radiator distribution; further documentation of the <AuthBy DNSROAM> feature in Radiator can be found at [radiator‑manual] (Open System Consultants, “Radiator Radius Server - Installation and Reference Manual,” 2006.). It describes an algorithm to retrieve the RadSec route information from the global DNS using NAPTR and SRV records. The input of the algorithm is the realm part of the user name.

The following algorithm is used to discover a target server from a Realm using DNS:

  1. Look for NAPTR records for the Realm.
  2. For each NAPTR found record, examine the Service field and use that to determine the transport protocol and TLS requirements for the server. The Service field starts with 'AAA' for insecure and 'AAAS' for TLS secured. The Service field contains '+RADSECS' for RadSec over SCTP, '+RADSECT' for RadSec over TCP or '+RADIUS' for RADIUS protocol over UDP. The most common Service field you will see will be 'AAAS+RADSECT' for TLS secured RadSec over TCP.
  3. A.
    If the NAPTR has the 'S' flag, look for SRV records for the name. For each SRV record found, note the Port number and then look for A and AAAA records corresponding to the name in the SRV record.
    B.
    If the NAPTR has the 'A' flag, look for a A and AAAA records for the name.
  4. If no NAPTR records are found, look for A and AAAA records based directly on the realm name. For example, if the realm is 'examplerealm.edu', it looks for records such as '_radsec._tcp.examplerealm.edu', '_radsec._sctp.examplerealm.edu' and '_radius._udp.examplerealm.edu',
  5. All A and AAAA records found are ordered according to their Order and Preference fields. The most preferable server address is used as the target server address, along with any other server attributes discovered from DNS. If no SRV record was found for the address, the DNSROAM configured Port is used.

For example, if the User-Name realm was 'examplerealm.edu', and DNS contained the following records:

examplerealm.edu. IN NAPTR 50 50 "s" "AAAS+RADSECT" "" _radsec._tcp.examplerealm.edu.

_radsec._tcp.examplerealm.edu. IN SRV 0 10 2083 radsec.examplerealm.edu.

radsec.examplerealm.edu. IN AAAA 2001::202:44ff:fe0a:f704

Then the target selected would be a RadSec server on port 2083 at IPv6 address 2001::202:44ff:fe0a:f704. The connection would be made over TCP/IP, and TLS encryption would be used. This complete specification of the realm is the most flexible and is recommended.



 TOC 

Appendix B.  Implementation Overview: Radiator

Radiator implements the RadSec protocol for proxying requests with the <Authby RADSEC> and <ServerRADSEC> clauses in the Radiator configuration file.

The <AuthBy RADSEC> clause defines a RadSec client, and causes Radiator to send RADIUS requests to the configured RadSec server using the RadSec protocol.

The <ServerRADSEC> clause defines a RadSec server, and causes Radiator to listen on the configured port and address(es) for connections from <Authby RADSEC> clients. When an <Authby RADSEC> client connects to a <ServerRADSEC> server, the client sends RADIUS requests through the stream to the server. The server then services the request in the same was as if the request had been received from a conventional UDP RADIUS client.

Radiator is compliant to version 2 of RadSec if the following options are used:

<AuthBy RADSEC>

<ServerRADSEC>

As of Radiator 3.15, the default shared secret for RadSec connections is "mysecret" (without quotes). The implementation uses TCP keepalive socket options, but does not send Status-Server packets. Once established, TLS connections are kept open throughout the server instance lifetime.



 TOC 

Appendix C.  Implementation Overview: radsecproxy

The RADIUS proxy named radsecproxy was written in order to allow use of RadSec in current RADIUS deployments. This is a generic proxy that supports any number and combination of clients and servers, supporting RADIUS over UDP and RadSec. The main idea is that it can be used on the same host as a non-RadSec client or server to ensure RadSec is used on the wire, however as a generic proxy it can be used in other circumstances as well.

The configuration file consists of client and server clauses, where there is one such clause for each client or server. In such a clause one specifies either "type tls" or "type udp" for RadSec or UDP transport. For RadSec the default shared secret "mysecret" (without quotes), the same as Radiator, is used. A secret may be specified by putting say "secret somesharedsecret" inside a client or server clause.

In order to use TLS for clients and/or servers, one must also specify where to locate CA certificates, as well as certificate and key for the client or server. This is done in a TLS clause. There may be one or several TLS clauses. A client or server clause may reference a particular TLS clause, or just use a default one. One use for multiple TLS clauses may be to present one certificate to clients and another to servers.

If any RadSec (TLS) clients are configured, the proxy will at startup listen on port 2083, as assigned by IANA for the OSC RadSec implementation. An alternative port may be specified. When a client connects, the client certificate will be verified, including checking that the configured FQDN or IP address matches what is in the certificate. Requests coming from a RadSec client are treated exactly like requests from UDP clients.

The proxy will at startup try to establish a TLS connection to each (if any) of the configured RadSec (TLS) servers. If it fails to connect to a server, it will retry regularly. There is some back-off where it will retry quickly at first, and with longer intervals later. If a connection to a server goes down it will also start retrying regularly. When setting up the TLS connection, the server certificate will be verified, including checking that the configured FQDN or IP address matches what is in the certificate. Requests are sent to a RadSec server just like they would to a UDP server.

The proxy supports Status-Server messages. They are only sent to a server if enabled for that particular server. Status-Server requests are always responded to.

This RadSec implementation has been successfully tested together with Radiator. It is a freely available open-source implementation. For source code and documentation, see [radsecproxy‑impl] (Venaas, S., “radsecproxy Project Homepage,” 2007.).



 TOC 

Authors' Addresses

  Stefan Winter
  Fondation RESTENA
  6, rue Richard Coudenhove-Kalergi
  Luxembourg 1359
  LUXEMBOURG
Phone:  +352 424409 1
Fax:  +352 422473
EMail:  stefan.winter@restena.lu
URI:  http://www.restena.lu.
  
  Mike McCauley
  Open Systems Consultants
  9 Bulbul Place
  Currumbin Waters QLD 4223
  AUSTRALIA
Phone:  +61 7 5598 7474
Fax:  +61 7 5598 7070
EMail:  mikem@open.com.au
URI:  http://www.open.com.au.
  
  Stig Venaas
  UNINETT
  Abels gate 5 – Teknobyen
  Trondheim 7465
  NORWAY
Phone:  +47 73 55 79 00
Fax:  +47 73 55 79 01
EMail:  stig.venaas@uninett.no
URI:  http://www.uninett.no.


 TOC 

Full Copyright Statement

Intellectual Property

Acknowledgement