Closed OniriCorpe closed 6 months ago
Dec 26 17:32:39 AdGuardHome[6139]: 2023/12/26 17:32:39.360985 [fatal] web: https: listen tcp 0.0.0.0:443: bind: address already in use
siiiiggghhhhhh π
I feel like Hal changing a light bulb π
about https://github.com/YunoHost-Apps/adguardhome_ynh/pull/154/commits/f65fc16f3f8c6bec7665cb46f4d9696155743d2f:
dnsmasq uses port 53 on localhost
and AGH uses port 53 on outsides IP (local or public ones if needed)
(you can see this with netstat -tulpn | grep ":53 "
)
and that's OK
except for YNH, as dnsmasq uses port 53 on localhost, the port is used and YNH refuses to give it to AGH for outsides IP:
WARNING Failed to provision ports : Port 53 is already used by another process or app.
so I had to remove the port from the manifest.toml and hardcode it in config and scripts it's OK since port 53 for DNS stuff is mandatory, so it would never change tho
as for now:
https://adguard.example.com:13120/dns-query
returns NS_ERROR_UNKNOWN_HOST
https://adguard.example.com/dns-query
returns TRR_RECODE_FAILS
tls://adguard.emelyne.eu:853
returns TRR_BAD_URL
quic://adguard.emelyne.eu:853
returns TRR_BAD_URL
tooso DoH & DoQ are not working and needs more testing
!testme
and time to sleep Zzz
I have to find time to test this, hopefully this week
I have to find time to test this, hopefully this week
it will be really appreciated! ^w^
I have to finish the reverse proxy part, but for now I need a break :)
also, sorry this PR has become gigantic, it wasn't supposed to /o\
DoT is working π
as for now
DoH is working:
βββΆ q example.com MX @https://adguard..example.com
example.com. 23h52m10s MX 0 .
DoT is working:
βββΆ q example.com MX @tls://adguard.example.com:853
example.com. 23h52m5s MX 0 .
DoQ is working:
βββΆ q example.com MX @quic://adguard.example.com:784
example.com. 23h55m53s MX 0 .
@Ddataa the PR is now ready for review and I asked for testers on the forum: https://forum.yunohost.org/t/adguard-adguard-home-package-for-yunohost/9075/11?u=oniricorpe
during my tests, i found that even if DoH is deactivated, AGH still reply to DoH requests
i opened an upstream issue: https://github.com/AdguardTeam/AdGuardHome/issues/6994
Works well on Firefox desktop.
Does not work on Android with the Private DNS setting (only accepts the domain name, as no slash or colon are accepted): the connection is lost after setting it up.
Does not work on Android with the Private DNS setting (only accepts the domain name, as no slash or colon are accepted): the connection is lost after setting it up.
I donβt understand your issue π
Pictures will be more understandable :)
did it used to work before this update?
i cannot find any info on this option... does it use standard DNS (port 53)? DoH? anything else? uh
edit: hmmm okay that seems to be the issue: https://github.com/AdguardTeam/AdGuardHome/issues/5123 so i can't do anything, bad luck
Found the issue! Somehow upon upgrading, the DoQ and DoT port got reassigned. In my YunoHost settings I actually have remnants of the old parameters (listed first):
adguard_DoQ_port: '784'
adguard_DoT_port: '853'
...
port_dns_over_quic: 785
port_dns_over_tls: 854
The latter are the ones put in /var/www/adguardhome/AdGuardHome.yaml
now. If I revert them to default ports 784 and 853, restart the service, make sure the ports are redirected from my router... the Android Private DNS setting works. The queries are confirmed to be DoT by Adguard.
Problem
Solution
is someone OK to test this?
PR Status
TODO
Current state
For the package
For AdGuard Home itself
A screenshot of the AdGuard Home front-end, showing the "Encryption settings", with all things validated