AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.31k stars 89 forks source link

Can not add my own Adguard Home DoT server #4991

Open trmdi opened 11 months ago

trmdi commented 11 months ago

Issue Details

For some reasons I can not add my own Adguard Home DoT server to Adguard for Android.

Screenshots

Some.screenshots:

Screenshot_2023-09-23-19-25-02-849-edit_com termux~2 Screenshot_2023-09-23-19-22-54-400-edit_com adguard android~2

trmdi commented 11 months ago

Solved by setting the TLS option to have alpnProtocols=dot. (My Adguard runs behind Traefik)

ketan commented 1 month ago

@trmdi — could you paste your complete traefik & adguard configuration for reference? I'm trying to figure this out, but for the life of me cannot figure out how to set alpnProtocols

trmdi commented 1 month ago

@ketan

# adguardhome.yml

# DoT
tcp:
  routers:
    dot:
      entryPoints:
        - dot
      rule: HostSNIRegexp(`^([a-z0-9-]+\.)?dns\.example\.com$`)
      service: dot
      tls:
        domains:
          - main: "dns.example.com"
            sans:
              - "*.dns.example.com"
        options: dot

  services:
    dot:
      loadBalancer:
        servers:
          - address: "adguardhome:53"

tls:
  options:
    dot:
      alpnProtocols:
        - dot
trmdi commented 1 month ago

btw, can Adguard for Android ignore requesting the dot alpnProtocols like dnslookup/Android system's private dns... do? @Versty