[SUPPORT] pihole for unRaid - Spants repo


Recommended Posts

I am having a problem with the latest PiHole setup.  I use the Br0 interface and give it a separate IP address from the IP address of the server.  This used to work in 6.8 version of unraid, but started to throw massive errors when I updated to 6.11.  

 

t 27 12:38:24 Tower kernel: vetha58e1c6: renamed from eth0
Oct 27 12:38:24 Tower  avahi-daemon[2174]: Interface vethd89dac8.IPv6 no longer relevant for mDNS.
Oct 27 12:38:24 Tower  avahi-daemon[2174]: Leaving mDNS multicast group on interface vethd89dac8.IPv6 with address fe80::28c0:30ff:fe29:6f35.
Oct 27 12:38:24 Tower kernel: docker0: port 3(vethd89dac8) entered disabled state
Oct 27 12:38:24 Tower kernel: device vethd89dac8 left promiscuous mode
Oct 27 12:38:24 Tower kernel: docker0: port 3(vethd89dac8) entered disabled state
Oct 27 12:38:24 Tower  avahi-daemon[2174]: Withdrawing address record for fe80::28c0:30ff:fe29:6f35 on vethd89dac8.
Oct 27 12:47:10 Tower kernel: br-5180425399c9: port 2(veth78638f9) entered disabled state

 

This keeps spamming in the logs when I have PiHole container active.  Any solutions?

Edited by Ben deBoer
Link to comment
On 10/17/2022 at 11:50 AM, idscomm said:

Hey, I know this message is 2 years old but I am currently struggling with Pi-hole hostname ... kept using random generic name. Would you be able to tell me if this is still working? I am not sure what you mean by extra parameters... 

 

Thanks! 

Please accept my apologies for the delay...

In the Pihole container (edit) and switch to advanced view.

Add the following to the Extra Parameters: --hostname=nameyouwant

1325068315_Screenshot2022-11-01at4_11_11PM.thumb.png.db7f16ed99b8ee0cf402db9b71ceb5ab.png

 

Before:

1098938207_Screenshot2022-11-01at4_09_20PM.png.cc0196da446871d20c8412f569eb1790.png

 

After:

1917126596_Screenshot2022-11-01at4_10_32PM.png.d482972101acf31bb8a586662a2a1b8c.png

Link to comment

Good Afternoon,

 

First time Unraid user here... I am having the issue of I can only setup pihole to work DHCP mode, due to my router. Which once enabled in Pihole it works like it should. ( pihole DHCP on, router DHCP off).

 

My issue is anytime I have to reset my host Unraid machine, my Unraid machine cannot get a local ip address so the unraid web ui never starts. I have to turn my DCHP server off again , enable through my router, then everything goes back to working properly.

 

Is there an option im missing here to prevent this from happening on the next reboot?

 

Thanks

Link to comment
11 minutes ago, Mrtj18 said:

My issue is anytime I have to reset my host Unraid machine, my Unraid machine cannot get a local ip address so the unraid web ui never starts.

You should set the IP manually on the server instead of letting it get one from DHCP.

Link to comment

what should i change?

 

If I change the fixed IP to (192.168.1.250 the address I have for my Unraid server) I get the following error:

 

Command executiondocker run
  -d
  --name='pihole'
  --net='br0'
  --ip='192.168.1.250'
  --privileged=true
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="pihole"
  -e 'TCP_PORT_53'='53'
  -e 'UDP_PORT_53'='53'
  -e 'UDP_PORT_67'='67'
  -e 'TCP_PORT_80'='80'
  -e 'TCP_PORT_443'='443'
  -e 'PIHOLE_DNS_'='127.0.0.1;1.1.1.1'
  -e 'TZ'='America/Chicago'
  -e 'WEBPASSWORD'='admin'
  -e 'INTERFACE'='Bridge'
  -e 'ServerIP'='192.168.1.252'
  -e 'ServerIPv6'=''
  -e 'IPv6'='False'
  -e 'DNSMASQ_LISTENING'='all'
  -e 'WEBUIBOXEDLAYOUT'='boxed'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:80]/admin'
  -l net.unraid.docker.icon='https://i.imgur.com/OWkNcEn.png'
  -v '/mnt/user/appdata/pihole/pihole/':'/etc/pihole/':'rw'
  -v '/mnt/user/appdata/pihole/dnsmasq.d/':'/etc/dnsmasq.d/':'rw'
  --cap-add=NET_ADMIN
  --restart=unless-stopped 'pihole/pihole:latest'

a1a3163844bc0f0d2b57b02e9c42af8c5f0601f04bb229e81c82c60450c28167
docker: Error response from daemon: Address already in use.

 

 

Im lost here....

 

Screenshot 2022-11-06 164121.png

1Screenshot 2022-11-06 164232.png

Edited by Mrtj18
Link to comment

When you setup/installed unraid you should have set a staticIP for the unraid server instead of DHCP. This way even if DHCP is not available which is your case, The server will still work on your private subnet as its manually set and knows how to route across your network without contacting DHCP. 

Link to comment
28 minutes ago, Mrtj18 said:

Is there a way to double check, what I may have set the static IP to be? When I did the initial setup?

My box is offline atm due to moving. You access the Unraid WebGUi and then in the admin settings you can access network (Likely) settings for the host. From there that should give you an indication of how the IP address is setup.

  • Like 1
Link to comment
10 hours ago, Mrtj18 said:

what should i change?

 

If I change the fixed IP to (192.168.1.250 the address I have for my Unraid server) I get the following error:

I was talking of manually setting the ip of the unraid server itself, settings->network settings

  • Like 1
Link to comment
6 hours ago, Kilrah said:

I was talking of manually setting the ip of the unraid server itself, settings->network settings

Oh okay gotcha, thanks for the help. I found my static IP for my unraid server and plugged it in to the server IP option towards the bottom, and the docker image built correctly... Thank you for the direction!

Link to comment

I still can't get this to work..... I may just have to stick with the rpi zero config i have. After correcting my settings in the network panel of unraid. I still have the issue after every reboot, the system still does not have Internet connection, even though I set the IP address to static.😞

Link to comment
  • 3 weeks later...

By the way I figured out my issue, If anyone reads this, there is a required port section in the docker container setup. I had to open port 67 on my router for the DCHP server to work correctly, and assign it to my lan ip for my unraid server. I have never seen this mentioned anywhere. Hope this helps someone, that maybe stuck like I was.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.