Make Adguardhome DHCP working on my private network

Hi.
I’m facing an issue with Adguard Home on my Rpi4 with Yunohost.

My YunoHost server

Hardware: Raspberry Pi 4 at home
YunoHost version: 4.3.6.3
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Box ip is 192.168.1.1
Rpi IP is 192.168.1.10, defined as static IP on the box.

Description of my issue

Trying to use Adguard Home as DHCP for my private network, behind my operator box (livebox Orange). As I don’t care about TV, I tried to disable DHCP on the box and active dhcp from adguard home. But then I don’t have any Internet connection anymore, like if I have no more DHCP at all ! I suspect that Adguard Home DHCP is not working or not reachable by computers on my network.

  • Is there any port to allow in the yunohost firewall ?
  • Is there anything to forward on my box ?
  • Howto check if Adguard DHCP is up and working ?
  • Should I configure something on dnsmasq ?

Adguardhome DHCP screen conf :

AdguardHome logs :

Jun 30 16:58:55 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:58:55 Error reading from packet conn: read udp 0.0.0.0:67: use of closed network connection
Jun 30 16:58:55 AdGuardHome[1576]: 2022/06/30 16:58:55.787362 [info] dhcpv4: server is closed
Jun 30 16:58:55 AdGuardHome[1576]: 2022/06/30 16:58:55.854087 [info] dhcp: loaded leases v4:1  v6:0  total-read:1 from DB
Jun 30 16:58:55 AdGuardHome[1576]: 2022/06/30 16:58:55.856502 [info] can't check for static ip; assuming machine has static ip and going on
Jun 30 16:58:55 AdGuardHome[1576]: 2022/06/30 16:58:55.858085 [info] dhcpv4: listening
Jun 30 16:58:55 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:58:55 Server listening on 0.0.0.0:67
Jun 30 16:58:55 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:58:55 Ready to handle requests
Jun 30 16:58:58 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:58:58 Handling request from 0.0.0.0:68
Jun 30 16:58:59 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:58:59 Handling request from 0.0.0.0:68
Jun 30 16:58:59 AdGuardHome[1576]: 2022/06/30 16:58:59.267742 [info] dhcp: stored 1 leases in db
Jun 30 16:59:00 AdGuardHome[1576]: [dhcpv4] 2022/06/30 16:59:00 Handling request from 0.0.0.0:68

Any help appreciate, thanks!

Three things I did to make it works:

  1. Allowed ports 67 and 68 in firewall in order to make the Rpi DHCP reachable from the local network
sudo yunohost firewall allow UDP 67
sudo yunohost firewall allow UDP 68
  1. Disabled IPV6 connectivity on the box (but cannot explain why it works now ?!)
  2. Modified /etc/dhcpcd.conf on the Rpi to force a static IP
interface eth0
static ip_address=192.168.1.10
static routers=192.168.1.1
2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.