Asus Router Admin Page with AdGuard Home
To access the administration site on my new Asus router, the documentation says to go to http://www.asusrouter.com. This worked great during initial setup. I also run AdGuard Home to block ads at the router level. This involves setting the DNS server for the router to the IP address of the machine hosting AdGuard. This also worked perfectly, but when I did this I started getting 404 errors when navigating to http://www.asusrouter.com. I suspect by default, the router is set up to route that address to itself. Setting the DNS server to a custom value overrides this behavior. We can get it back by using a DNS Rewrite in AdGuard Home.
- Get the IP address of the router. The specific command depends on the operating system. In most systems this will be listed as the “Default Gateway”.
Mac
route -n get default | grep gateway
Linux
ip route | grep default
Windows
ipconfig
- In a browser, navigate to your self-hosted AdGuard Home admin page.
- Select Filters -> DNS Rewrites.
- Click “Add DNS Rewrite”.
- For the domain enter:
*.asusrouter.com. - For the IP Address, enter the value from step 1.
Now when you navigate to http://www.asusrouter.com or http://asusrouter.com, you’ll wind up on your router’s admin page.