-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adguardhome: Backport 0.107.0 release to openwrt-21.02? #17437
Comments
Agreed on 107 being stable now. 106 has issues and its broken due to the go version being different in 21.02. What sort of defaults are proposed for the install of AGH? Out of the box you need to make choices and avoid the conflicts with both luci and dnsmasq. my thread for the manual install of AGH details some of these issues. https://forum.openwrt.org/t/how-to-updated-2021-installing-adguardhome-on-openwrt/113904 Reverse proxying would allow luci and agh to co-exist. Or just installing the web interface to a different port. (i used 8080 and let them live side by side as it were) The ideal usage for AGH would make AGH the primary DNS with associated upstream. But this requires the reconfiguration of dnsmasq as a downstream and moving its port. (If you dont do this then having dnsmasq as primary dns you add another hop and increase memory usage.) Also there is the issue of NTP updates on boot. You can use exceptions so NTP does not use encrypted dns so it can update the time to allow proper encrypted dns usage (it will fail with incorrect time/date etc). Careful consideration of what defaults we wish to provide to users is key, (edit) - a better way would be to have AGH take over DHCP but AGH is not ready for complex setups with DHCP like OpenWrt handles. They still have an outstanding issue to improve things. AdguardTeam/AdGuardHome#2830 At present you either leave dnsmasq alone and install AGH as 2ndary DNS and make dnsmasq pass dhcp option 6 to make downstream clients look to AGH for dns and then point AGH back to dnsmasq for ptr queries. |
Best we can do now is to provide guides like https://github.com/openwrt/packages/blob/master/net/unbound/files/README.md#parallel-dnsmasq.
One thing to note that AdGuard Home doesn't seem to support any kind of "seed" configuration. The installation wizard will only run if there is no configuration, and you can only set the user/pass that way. |
i believe there is an improvement issue for the user/pass (because you cannot change it except via yaml hacking. You also have to generate a bcrypt hash of the pwd). Its not the only bug bear i have with yaml editing of parameters that realistically really should be editable via the web interface. As for a seed config you can take the basic yaml file and build off that. It isnt ideal however given the variety of installations and configurations people could have. I gave some thought to this as i did my thread about configuring from install with AGH's script. We shouldn't be choosing for users without informing them. There will /always/ be a user that wants to do things differently. But yet we must do something in order to "plug" AGH into the router. Its one reason why i detailed things and explained whys of my choices so others can change what i did if they wanted other decisions. eg different upstreams, or different ip's etc. I'm of the opinion we should explore and ask AGH team to improve things on their side. For now however till they improve things, my gut says go simple. Install AGH, let user set it up on which ever ports, let it be the parallel dns and have users add dhcp option 6 for ipv4 and ipv6 and take over dns for downstream clients that way. That is the bare minimum required editing required. Obviously to do this the wiki will have to list instructions because there is no real way to fully automate this. Its unfortuate that this results in a only "semi-automated" install but i cant see a better way unless AGH improves. Only other way to do it would be to ask questions as part of the install and have it script generated a yaml file? but that would require an SSH install and wouldnt allow luci installs (unless you could pull that as part of the install? i dont know that much about luci) I'll ponder this some more and get back to you all. |
Full changelog available at: https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.107.0 packr has been removed from build dependencies, per AdguardTeam/AdGuardHome@c688832#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L2 Also added the ability to configure working directory location and moved the directory to /var. On most setups this should not change anything, as /var is symlinked to /tmp. The move mostly benefits setups where /var is configured to be persistent. The working directory is used by AdGuard to store persistent data like query logs, filter lists, etc. Data stored in this directory can get really huge, as such allowing this directory to be moved elsewhere (ie. an USB drive) is very beneficial. Fixes: #17437 Co-authored-by: Dobroslaw Kijowski <dobo90@gmail.com> Co-authored-by: Jeffery To <jeffery.to@gmail.com> Signed-off-by: Hiếu Lê <leorize+oss@disroot.org> (cherry picked from commit f44603a) Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> [Added fixes in the commit message]
I cherry-picked the change from the master branch as indeed it seems that adguardhome is broken in OpenWrt 21.02 (referenced issue). It would be nice if you could verify that it works in OpenWrt 21.02 branch. The packages should be compiled within 24/48 hours. If it works, then close this issue. Unfortunately, I am not using it, though. But next time, it is good to verify that the new version works in the stable branch before asking for backport. |
@BKPepe Thanks. I believe @mercyground can verify the 0.107.0 binary works fine on OpenWrt 21.02. They have been running the edge builds and also tested the stable 0.107.0 release without any issues. It is fairly important because the binary itself in the opkg package is broken in OpenWrt 21.02 and you essentially have to download the AdGuardHome binary from GitHub to fix it in OpenWrt under the 0.106.3 release currently, the 0.107.0 release will fix that. |
confirmed. 107 edge builds work nicely. I've not tried their official 107 stable but i imagine should be just fine. I am wanting to test with a clean 21.02 build to help figure out some defaults and passing issues upstream to AGH for them to enable better integration with OpenWrt. I believe the brokenness with 106 is down to incompatable/different versions of go. |
wiki entry has been vastly updated and we had a user submitted SSH install guide added. https://openwrt.org/docs/guide-user/services/dns/adguard-home#command-line_instructions_using_ssh I think AGH should check for either ca-certificates ca-bundle as a requirement and install. Currently I just included them as part of the the install process. But as you need one or the other as a necessity, it really should be part of install check. Fixing the config issues with #17431 would be good to have part of the 107 stable build. Certainly aid in keeping things tidier. Cheers to all involved with improving this for everyone! |
It's already a part of the deps, so it should be pulled in automatically packages/net/adguardhome/Makefile Line 44 in 2b165b9
|
i shall amend the wiki to drop that part of install. Cheers! |
This can be closed as the change was backported and runs OK on 21.02, |
Maintainer: @dobo90 @alaviss
CC: @mercyground
Environment: N/A
Description:
The recent commit for bumping the package to 0.107.0 and changes that allows easier control of the data folder path, makes the package much better for use in OpenWrt. Given 0.107.0 is a more solid stable release generally, do we think we can backport it to OpenWrt 21.02?
The 0.107.0 releases fixes the issue with the binary being broken: #16594 which is pretty critical. If the 0.107.0 release can be backported to 21.02, this provides a much more solid package for installing directly with less issues with running AGH from the start.
There has been a lot of effort from various members of the community for documenting custom installations/scripts, given the opkg package has been a bit rough in various places. The ambition is have a detailed wiki: https://openwrt.org/docs/guide-user/services/dns/adguard-home for using AdGuard Home on OpenWrt ideally through the main package install, given it's the most straightforward process. As a starting point though, the 21.02 branch really needs the 0.107.0 release before this can be possible as a starting point.
In addition, I noticed there is a draft PR here: #17431. Specifically having a config directory path of
/etc/adguardhome
, rather than just/etc/adguardhome.yaml
. I'd agree the/etc/adguardhome
path makes more sense and is more contained. Perhaps we should hold until this element is merged if it's agreed? In theory existing installations under the /etc/ directory should continue to function.Either way though, great work, the adguardhome package is looking in great shape for having a much more straightforward installation to setup process.
The text was updated successfully, but these errors were encountered: