TLS Ciphers and protocols

You can configure the permitted SSL/TLS Protocols in set::ssl::protocols and set::ssl::ciphers. You can also configure individual server links by setting link::ciphers.

Default configuration
UnrealIRCd 4.0.x does not permit SSLv2 and SSLv3 connections, it allows TLSv1, TLSv1.1 and TLSv1.2 (and TLSv1.3 whenever it is released).

The default setting as of UnrealIRCd 4.0.7 for set::ssl::ciphers is: EECDH+CHACHA20 EECDH+AESGCM EECDH+AES AES128-GCM-SHA256 AES256-GCM-SHA384 AES128-SHA256 AES256-SHA256 AES128-SHA AES256-SHA

This is based on Mozilla SSL Configuration Generator ('Intermediate' compatibility) and two other major sources. The rationale behind this is as follows:
 * Maintain compatability with older clients out of the box (if you don't need this, then check out )
 * Prefer PFS
 * Prefer ChaCha20/Poly1305 over AES because it's resistant against timing attacks even in software implementations
 * Prefer Authenticated encryption such as GCM over CBC due to the various CBC attacks in the past and likely in the future.

Since most people don't have OpenSSL 1.1.0 yet with ChaCha20 (at time of writing, sep 2016) you'll get something like this: prio ciphersuite                  protocols              pfs                 curves 1    ECDHE-RSA-AES256-GCM-SHA384  TLSv1.2                ECDH,P-256,256bits  prime256v1 2    ECDHE-RSA-AES128-GCM-SHA256  TLSv1.2                ECDH,P-256,256bits  prime256v1 3    ECDHE-RSA-AES256-SHA384      TLSv1.2                ECDH,P-256,256bits  prime256v1 4    ECDHE-RSA-AES256-SHA         TLSv1,TLSv1.1,TLSv1.2  ECDH,P-256,256bits  prime256v1 5    ECDHE-RSA-AES128-SHA256      TLSv1.2                ECDH,P-256,256bits  prime256v1 6    ECDHE-RSA-AES128-SHA         TLSv1,TLSv1.1,TLSv1.2  ECDH,P-256,256bits  prime256v1 7    AES128-GCM-SHA256            TLSv1.2                None                None 8    AES256-GCM-SHA384            TLSv1.2                None                None 9    AES128-SHA256                TLSv1.2                None                None 10   AES256-SHA256                TLSv1.2                None                None 11   AES128-SHA                   TLSv1,TLSv1.1,TLSv1.2  None                None 12   AES256-SHA                   TLSv1,TLSv1.1,TLSv1.2  None                None

As said, we need to provide compatibility out of the box so we still permit non-PFS ciphersuite selection, CBC mode and SHA1.

Over time the default cipher list in UnrealIRCd will be adjusted.

More secure setting
If you don't need compatibility with older clients/libraries then use a setting like this: set { ssl { protocols "All,-TLSv1,-TLSv1.1"; /* allow only TLSv1.2 and up */ ciphers "EECDH+CHACHA20 EECDH+AESGCM EECDH+AES+SHA384 EECDH+AES+SHA256"; }; }; Unfortunately most people can't use this (yet) as it would prevent older clients from connecting. For example UnrealIRCd 3.2.x servers would be unable to link to this 4.x.

Old setting prior to 4.0.7
Prior to UnrealIRCd 4.0.7 if you did not have a cipher setting it was left up to your OS/Distro (and ultimately OpenSSL/LibreSSL build paramaters) as to which algorithms were enabled. In practice this often meant ciphers such as RC4 and 3DES were enabled which is discouraged today.