![]() InstallAGH.sh The install script looks up the first ipv4 and v6 addresses to use for installing. # Restart network service to reflect changes # Reconfigure router IPv6 DNS provider to cloudflare upstream # Reconfigure router IPv4 DNS provider to cloudflare upstream # Reconfigure router DNS provider to cloudflare upstream As some may want to keep their existing DNS settings I've moved this to a separate script that you can run or ignore and continue to the installation script instead. The first swaps the routers upstream DNS for Cloudflare DNS. Without NTP setting your router time / date correctly, SSL will fail and thus no encrypted DNS.) (The reason you setup OpenWrt to use a different unencrypted upstream is so when it brings up your connection it can do NTP and updates as AGH will still be loading. Luci's web interface lives on port 80 so we just tell AGH when we set it up to use port 8080 for its web interface instead. Unless DNSMasq is moved from port 53 to port 54 then AGH cannot take over and be primary DNS. DHCP options are added so AGH will take over from DNSMasq. ![]() With AGH installed, we now switch OpenWrts DNSMasq to the background so we can pull client info from it and resolve the OpenWrt clients. This is the most up to date and is generally best version to use. The script then pulls the AGH installer script and installs the Edge version. This package is for testing DNS queries and ensuring DNSSec is on and proper resolution of DNS queries. This is required for setting up AGH service.Ĭa-certificates ca-bundle - These are the certificates required for SSL.Ĭurl wget tar unzip - System tools for downloading AGH and unzipping updates etc.īind-tools is all the DNS tools. With that done I now use the following script to install packages required for AGH install and a few test tools. OpenWrt uses 192.168.1.1 thus all my scripts assume and follow that convention. Having had some free time today I have updated my backup router to OpenWrt 21.02.1.Ĭompletely clean install and reset to defaults. This will cause unexpected errors in unix.) (unix uses Line Feed for new line, windows uses Carriage Return / Line Feed. It also avoids windows to unix file issues that can occur with editing of files. This means I can edit files directly and also create the scripts required for install. I use Putty for SSH shell access and WinSCP for remote file access to my router. AGH does use SSL for encrypted DNS but that is separate to the web interface. If you wish to use SSL for AGH you will need to move Luci or run AGH on non standard ports. Luci (OpenWrt's web interface) runs on port 80 and port 443 for SSL. AGH supports encrypted DNS internally and it is just a matter of choice as to which method you use and what servers you put in. ![]() Please ensure you edit any scripts to match your config or this will break things in bad ways. My installation uses 192.168.1.1 as default IP. ![]() Raspberry Pi Zero as a router-attached ethernet gadget This gives AGH a separate cpu to run on if your router is older and lacks space and power. He kindly wrote up about using a pi zero off the USB port router piggy backing on OpenWrt. ![]() With careful setting of options you can keep the requirements low but having an entire USB drive to use will avoid issues.Īnother interesting option is what uses. Add in filters, DNS queries, Stats, (and a 2nd copy of AGH binary when it updates and backs up) and your space rapidly vanishes. Mounting it as /opt/AdGuardHome will ensure you do not run out space on smaller routers. NextDNS - It is recommended to use AGH as a better client for NextDNS : Installing AdGuardHome on OpenWrt - #6 by mercygroundabyssįor limited space routers you can mount a USB drive and use that to host AGH. You are free to edit the scripts to use your own ports but you should check with for reserved ports. The ports chosen are either well known alternate ports or reasonable compromises. The edge version installs to /opt/AdGuardHome, the opkg version to /etc/adguardhome for the config files and /tmp for filters, logs etc thus you WILL loose them when your router reboots. OpenWrt's opkg version is the stable release. This thread mostly covers the manual installation of AdGuard Home's edge/beta version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |