AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Config option `override_tls_ciphers` only applies to HTTPS

Open brianshea2 opened this issue 1 year ago • 3 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

Docker

Setup

On one machine

AdGuard Home version

v0.107.67

Action

Added following to AdGuardHome.yaml:

tls:
  override_tls_ciphers:
    - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384

Expected result

All TLS-wrapped services only offer the specified ciphers for TLS 1.2 (as TLS 1.3 ciphers are not configurable per Go's tls.Config).

Actual result

Only the HTTPS server seems to obey this configuration. DoT is not affected.

With the above config, HTTPS offers:

$ docker run --rm -it nablac0d3/sslyze --tlsv1_2 <agh_ip>:443

* TLS 1.2 Cipher Suites:
     Attempted to connect using 156 cipher suites.

     The server accepted the following 2 cipher suites:
        TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384           256       ECDH: secp256r1 (256 bits)
        TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256           128       ECDH: secp256r1 (256 bits)

However, with the same config (and without it), DoT offers:

$ docker run --rm -it nablac0d3/sslyze --tlsv1_2 <agh_ip>:853

* TLS 1.2 Cipher Suites:
     Attempted to connect using 156 cipher suites.

     The server accepted the following 5 cipher suites:
        TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256     256       ECDH: X25519 (253 bits)
        TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384           256       ECDH: secp256r1 (256 bits)
        TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA              256       ECDH: secp256r1 (256 bits)
        TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256           128       ECDH: secp256r1 (256 bits)
        TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA              128       ECDH: secp256r1 (256 bits)

Additional information and/or screenshots

No response

brianshea2 avatar Oct 08 '25 19:10 brianshea2

This report was valid for v0.107.67 and remains reproducible in v0.107.78, but it is fixed on current master by the TLS-manager refactor in commit 254e17da.\n\nPreviously, HTTPS used the configured cipher IDs while the DNS server never populated its TLSCiphers field, so DoT/DoQ received a nil cipher list and used Go defaults. The refactor now supplies one shared tls.Config, including override_tls_ciphers, to dnsproxy encrypted listeners.\n\nI verified current master with a focused cipher-propagation regression, the complete internal/home and internal/dnsforward race suites, and 20 race-enabled repetitions of the real DoT server test. All passed. The fix is included in v0.108.0-b.90, but not v0.107.78.\n\nThis appears ready to close as fixed; beta users can validate with v0.108.0-b.90 or newer.

Sil3ntVip3r avatar Aug 03 '26 15:08 Sil3ntVip3r

Hello, the error does not occur in version v0.107.79. Please update to version v0.107.79.

sofvaskina avatar Aug 27 '26 12:08 sofvaskina

Confirmed, thank you

brianshea2 avatar Aug 27 '26 13:08 brianshea2