Setting Up AdGuard: DNS Redirect doesn’t work Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Rhizome
Posts: 27
Joined: Sun Jun 27, 2021 5:22 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Rhizome »

Ok thx,Joulinar.
And if I want to apply AdGuard across all devices without having to change each device’s DNS settings, what’s the best way to do that? Note, my router won’t allow me to point to the AdGuard Rpi.
User avatar
trendy
Posts: 343
Joined: Tue Feb 25, 2020 2:54 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by trendy »

Can you disable the dhcp server on the ISP router and use one on the dietpi? These are more flexible in terms of dhcp options.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Joulinar »

Yes AGH has an own DHCP server functionality. Easiest way is to disable on your router and activate in AGH. You just need to reconnect your devices to your network once, to get the new settings via DHCP.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Rhizome
Posts: 27
Joined: Sun Jun 27, 2021 5:22 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Rhizome »

Success!! Thanks Joulinar & Trendy!
AGH is now the DHCP server and yes, using AGH provides more options & shows a lot more detailed info about various devices. 8)
I couldn't have gotten it set up properly without your help, Joulinar. Again, many thanks!
Rhizome
Posts: 27
Joined: Sun Jun 27, 2021 5:22 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Rhizome »

Is UFW necessary to be on if my AGH Rpi is behind my router firewall?
Also, Joulinard, when you said, "allow income traffic from local network on port 53" is the command simply, "ufw allow 53" ?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Joulinar »

Is UFW necessary to be on if my AGH Rpi is behind my router firewall?
It depends if you have open ports and your system is reachable from internet.

What was the reason for you to install UFW?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Rhizome
Posts: 27
Joined: Sun Jun 27, 2021 5:22 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Rhizome »

Force of habit. I think the Raspberry Pi OS setup I've done in the past, suggests installing and enabling UFW.

Here's the current ufw status:

Code: Select all

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere                  
8083                       ALLOW       Anywhere                  
3000                       ALLOW       Anywhere                  
22 (v6)                    ALLOW       Anywhere (v6)             
8083 (v6)                  ALLOW       Anywhere (v6)             
3000 (v6)                  ALLOW       Anywhere (v6)
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Joulinar »

if you don't have any direct access from internet, you should be fine to remove UFW. If you like to stay with UFW, you would need to add port 53 to be allowed.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Rhizome
Posts: 27
Joined: Sun Jun 27, 2021 5:22 pm

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Rhizome »

Ok. Is then the command simply "ufw allow 53"? Or something else. I ask because you earlier said to allow Local traffic. Not sure if the above command allows more than that.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Setting Up AdGuard: DNS Redirect doesn’t work

Post by Joulinar »

at the moment you are allowing traffic from Anywhere on the ports defend. If you like, you could restrict the access to a local network/subnets or specific network interface

https://www.digitalocean.com/community/ ... untu-18-04
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply