@@kapnicorn as long as they arent trying to reserve the same ip address they are independent servers. so you can point your router to one and another's device to the other. not sure what would happen if you spun 2 of them up with the same ip address maybe a docker error. for one of them.
i really appreciate that you spent time showing how to use docker compose. it's a major step missing from a lot of step by step guides. thank you and i'm still looking forward to more to come.
also, i'm not sure if it's out of scope, but what about a home hosted vpn so you could even use this dns from work or on your mobile devices? either way, thank you arcade punks and redcomiconline are way more tolerable now.
I watched about 20+ videos and none of them helped me with my problem, which was that I could not log in with the ip provided by the pi-hole, until I saw your amazing video which helped me completely and I thank you a thousand times for the details and for sharing your knowledge.
I recently subscriber to your channel. Thank you for posting this material. It is easy to follow and is very well explained. Thanks. I just installed an NVME SSD on my Pi5 and you showed how to change the boot order from SD card to the SSD. I just now installed docker and docker compose from you last video! i expect the Pi-Hole will be just as easy. Thanks. My ultimate goal is to get jellyfin up and going in docker. You have a great sequence of videos for this!
I have also an ASUS router and I prefer instead of settling the Pi-hole’s ip-address under the WAN DNS settings do it under LAN. Go under LAN and there DCHP settings put the Ip to the Pi-hole. The different is that in case one (WAN) only client shows up in the Pi-hole logs is the router and you can’t actually see what devise makes bad calls that get blocked. If set it at option two (LAN) the routers DCHP tells the device to connect directly to the DNS-server and all devices shows up individually in Pi-hole and you can watch logs on individual level and see what device made that suspicious DNS-request 17:58.
bro you are the only person on the pi entire pi community whos hard work help me to create pi hole at my home, hats off to you . regards your new friend for life....
Ok i was attempting to do this using wifi and wlan0 as the interface name. I used macvlan and ipvlan but i was too dumb to get it work. This morning i bought an ethernet cable hooked it up and now i followed your tutorial correctly this time and i got it to work. THANKS BOSS. Update: now breaking my head on trying to find wan and dns on an att router site.
some viewers have been very vocal about setting up Unbound for local dns, i havent had a chance to take a look at that at the moment but will in the future
I had similar issues where I couldn’t find the settings in my router. For the time being I’ve done it on a per-device basis which isn’t ideal but it does what I need until I can get the info
yup, im working on some Open Source NAS solutions for the Raspberry PI. before that tho ill upload how to set up wireguard with docker-compose. the reason i showcase docker-compose installation is becuse you can use it with all commercial and free NAS operating systems, so its universal
Excellent video. Got it all working before finding out you can't changes the DNS settings on my Virgin Media Hub 5.0. Damn and blast! But your instructions were perfect. Thank you very much.
Thank you for the feedback! im sorry to hear you cant change the DNS settings on your router, i did a quick google search and it seems if you ever buy a 3rd party router, you may be able to use the Virgin media hub as a modem only and connect the 3rd party router. unfortunately this would inccur more cost and technical knowledge :(
I followed your instructions to a T, but the logs are stating the DNS resolution is currently unavailable. I'm completely unable to navigate to my web interface. I'm running this on Windows Server 2022 and baremetal Linux is not an option in my environment. What's going wrong?
that is interesting to know, im not familiar with windows server, but i quickly looked in google and many window server users recommend running a Linux VM with Hyper-V for pihole, but since the docker container is a linux immage it should work the same. maybe there are additional configurations that must be done for proper networking. i wish i could help but im not a windows server user and have no idea where to even start
are you going to be doing a video on how to use unbound with a docker compose file? I can get both to run natively without using a macvlan, but now everytime I try to setup both I get timed out request on the pihole docker-compose file.
I had to change version to 2 instead of using version 3 when getting the error: ERROR: The Compose file './docker-compose.yml' is invalid because: networks.pihole_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected)
No, you are ok. Don't apologize 😊 The code snipplet. 1. I found it a little different in Github. OK I typed the differences. 2. the second (network) snipplet in Github was totally different. So I typed it all very carefully. Running didn't work. I installed pihole before already, don't ask me how .. it didn't block anything I am trying now since 4 days, last time 48 hours everything raspi related and I find your advice best. Sorry I was frustrated. The most problem is the IP thing and what adress to put in. That's where the most YT videos skip. I am a beginner ... so.. Thank you for asking. 😊🙏
on the Raspberry Pi terminal, run the command "ifconfig" it will list all network interfaces. you will see the eth0 and another that starts with a w (for wireless) add that. Full disclosure, i dont know if it will work or not. i havent tested it.
2024-05-15 1441 PT .... this should be *the* video on setting up Pi-Hole, whether using the DHCP server, or not. The fact you were able to find the options to set the container to access the ship's IP address, was the caveat. I set it up in Portainer, and the steps were the same. Even in Portainer, the YAML check is in place, and won't let you move on, if it finds any code out of place. I had a few of the settings below the driver_opts out of step, and it warned, not let me click on the "update" button to move on. And once the update was made, and the container restarted, the IP address changed to my static of 192.168.16.xx.
I have docker app on my desktop but want to move to Raspberry pi 4 so it less power. how does it handle the app. I was thinking running dockers containtor for nextcloud, Phpipam and ntfy
hey! i recently did this and it was simple for my set ups. i went from an intel x86 cpu to a arm rasperry pi 5. it all depends how you set up the container volumes. i like to map my container volumes to directories/folders on my operating system. so all i had to do was copy the files in the volume and paste them on my raspberry pi 5. then use the same docker compose configuration on the raspberry pi, change the volume mapp to the new location and run docker compose up. i had some issues at first with files not copying over due to linux permissions for my profile so i compressed them with sudo before moving it. if you dont map the container volumes you can just export the volumes with a docker command. it all depends really. what kind of set ups do you normally have?
Thank you for this but I ran into errors regarding eth0.. I replaced replaced parent: eth0 with the correct network interface on my homeserver which was enp1s0 and was able to run the docker compose file I think it would be good to note it in your docker-compose file parent: eth0 # use the name of the network interface that your server is using
Hey Mate, great solution with the macvlan IP Configuration, but heres my problem. I also run PIVPN on the same machine (not dockerized) which creates a wg0 interface (10.129.X.X) besides the eth0 (192.168.178.X) . And I want to get my traffic via vpn also run trough the pihole (device names inclusive). Any chance to describe, what to do for it?
Generating that .149 IP adress seems like dark magic to me but it worked... Despite that, I'm also getting the DNS resolution error. From within the container I can ping the DNS server so I'm not sure what the issue might be.
Hi, Thank you very much for this tutorial. I have question. How can you reserv that ipv4 ( in your example 192.168.50.149) in the router? I mean to make it static so the router do not give it to other device after the lease? I need to pair that IP with a MAC adress to reserv it at least in my router.
hey this is a great point! i just saw this commend since youtube marked it for review for some reason. i was able to achieve this through my router's menu. it assigned a mac address automatically, not sure if docker bridge automtically did this at the moment, but i was able to just see the ip and next to it was a mac address, in my asus router all i had to do was go to LAN -> DHCP Server tab -> Manually assigned IP and select the mac address i saw next to the assigned ip and add it.
i havent tested with wireless yet. you could try switching the driver from "macvlan" to "ipvlan" and in "driver_opts:" add "ipvlan_mode: 12" give it a shot, at the moment thats ill i got since its harder with wireless for some reason. regardless we have to read the docs some more.
Very straightforward video, I got this working instantly !! Like and sub, amazing. I have a question. In my house there are a lo of blackouts, I set pi hole up in an old laptop I have in my house. The laptop will shut down on and on because of blackouts and I have to keep turning it on, but when this laptop is powered off my internet connection should work fine right?
Thank you! If you add a secondary dns address as a fallback to your router it will use that if the first dns address is unavailable. Make sure you add the pihole address as the first option and then cloudflare's dns of 1.1.1.1 as the second and you should be all set. Unrelated to this make sure docker starts when the computer starts so that everything runs fine after ablackout or power loss
until to install pihole i could follow, but got stuck to make pihole run. i only modified timezone and username (also in volumes). The docker-compose up -d is not sucessful and i dont know enough to diagnose.
@@codefallacy Thanks for replying. I almost paste the original content, only TZ and username changed. No real error msg. But the build process did not succeed as I see in your video.
good question, i have a few docker containers running and a few times i accidently unplugged them and didnt have to restart them manually. you can always give it a shot by unplugging the pi and see what happens. if it doesnt, make sure that docker automatically boots at start up with the systemctl command. i cant remember it exactly of the top of my head
Great video but after doing all the steps correctly I can't access my pi hole admin page but the container is running status healthy what could be the problem ?
im not sure, can you tell me a little bit more to help debug? are you using wifi or ethernet on the radpberry pi? what do you see when you access the ip address from a browser? are you adding "/admin" at thd end of the ip? are you able to reach the pi on other ports?
@@codefallacy I am using ethernet I am not using a raspberry pi using an old laptop with arch installed on it and I did add /admin at the end of the ip and I never tried reaching pihole on other ports expect for the default one.
ok it could be that your operating system may have a firewall preventing certain ports from being accessed. to test this try installing another service like portainer or jellyfin and try to access it from another computer. im not familiar with arch and its networking but if you install another service and are able to access it we know its not the OS and can move to another debugging strp
@@codefallacy I was trying to connect using wifi in macvlan. However when I changed to eth0 was able to create a pihole docker container. However I am unable to connect to pihole thru the specified IP address. In services section have provided the IP address as 192.168.50.249 and under network section specified subnet as 192.168.50.0/24 and gateway as 192.168.50.1. On reviewing log file in portainer I am able to confirm that pihole is enabled.
interesting... to access your router from a web browser, what is the ip address you type to access it? is it 192.168.50.1 ? this is correct for me but maybe your router uses another convention like 192.168.1.1 or 10.0.0.1.
I tried this method but when i run "docker-compose up -d" it says: "ERROR: invalid subinterface vlan name eth0, example formatting is eth0.10" if i try that it says: " parent interface was not found on the host: eth0" what am i doing wrong?
It may be that your ethernet interface may be a different name, with the command 'ifconfig' you can see . Remember this will omly work with wired ethernet connection, not wifi.
@@codefallacy ok found out that ifconfig is deprecated, after some researc i found the commandi ip link show and it worked, thanks a lot for pointing me in the right direction!
Hi, great video! I used your video to set up my own pi-hole, now I wonder if there is any possibility to generate a IPV6 address (so i can put that into IPV6 DNS configs for example on a WIN10 PC) since for me, it seems the pi-hole isn't blocking all ads. (i do see that pi-hole works and blocks ads, but simply not all) From further research it appears as through my Routers IPV6 DNS, ads are bypassing the blocking of the pi-hole (at least that's what I think.) I am using the pi-hole only on certain clients and want to keep it that way, that's why i don't use router setting to change IPV6. If anyone has an idea how i could fix my problem, pls let me know. Looking forwards to more of your videos to keep learning, since I'm pretty new to Raspberry Pi and all that.
I also noticed that some clients were bypassing pihole through IPV6 a week after, i chosed to disable my routers IPV6 for the time being. i also added the pihole as the only dns server. this has caught alot more ads. however i also need to research into this. At the moment im stumped on this
hola muchas gracias por tu contenido, seria de mas gran ayuda que pusieras los comandos en la descripcion del video o en un bloc de nota. pero como quiera se te agradece el esfuerzo
hello, youtube marked this comment as spam, i just saw it and approved it. are you using ethernet? you should try opening a private tab and trying it there. you could add in front of the url, if this doesnt work, check in your router that there is a device using the ip: 193.168.1.149 if this doesnt work give me more details to help as best as i can
Maybe check the rules of nftables at /etc/nftables.conf in my case I was hardened my raspberry and the rules basically don't allow nothing more than kernel access to http/hhtps and SSH access. So I thinking about why nobody are talking about nftables. How secure and safe is our raspberry working as bridge in our traffic inside our network. Can you clarify this point ? Do we need a configure an specific firewall rules in nftables ?
@@codefallacy having the same problem, tried following these steps, still not working. I can see in portainer that a pihole is running, but I can't access the admin page.
@@codefallacy The Docker-Compose.yml needs "version: "3"" at the top, and the "gateway" parameter has to be removed. After these changes, I was able to install the PiHole with Docker onto my Pi3B+. Another issue I having now is the "Update Gravity" function, it keeps getting connection refused. any solution for that? Thanks.
Followed every step of both videos as closely as I could. Got to the final step and the ip/admin page won't load. Absolutely no idea how to troubleshoot from here.
Are you using an ethernet cable to connect the raspberry pi to your router? This will not work with wifi. Also what is the ip address to access your router? In this example i used 192.168.50.1 but yours may be different
@@codefallacyyes, pi is connected to router via ethernet. If I'm looking at the right details, my router IP seems to be 192.168.0.1 It looks like I had the IP set to 192.168.1.149 I'm unsure of how to change this
@@Josephus-Crooksicus ok here are a few things you can try. Connect to your raspberry pi and get the name of the ethernet interface by running the command 'ifconfig' it should list out the network interfaces. Mine was called 'eth0' but yours may be different. In the docker-compose.yml towards the bottom where it says 'parent' change 'eth0' to the name of your interface if necessary. Change 'subnet' to 192.168.0.0/24 and 'gateway' to 192.168.0.1 and change the ipv4 to 193.168.0.149
@@Josephus-Crooksicus i forgot to mention, you will need to restart the docker container. Aside from these things im not sure what else it could be. Hopefully these things help you.
Sorry, hopefully my last question, but how do I get back to the docker-compose.yml to edit it? If I understand everything correctly, those edits seem like they should solve the problem Edit: I figured out to just retrace the step, please disregard this. Trying the fixes now, wish me luck
I am using docker version 20.10.5+dfagl, build 55c4c88 and docker-compose version 1.25.0, build unknown, I'm getting the same error as "@jaboxo521 @jaboxo521 2 weeks ago I had to change version to 2 instead of using version 3 when getting the error: ERROR: The Compose file './docker-compose.yml' is invalid because: networks.pihole_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected) Not sure what version he changed to 2 instead of 3.
also, i agree with having a written guide. ill work on making a basic website to host all the commands since youtube doesnt like code in the description of videos
Sorry for the stutters, my speech programming needs fine tuning.
Great video, thank you. I wonder once you fire pihole (I got 2 of them setup the same way) what setting do you have on DNS tab..
All good.. I wonder what settings you got on DNS tab when you fire the pihole after everything is done. Best
I wonder if anybody tried 2 piholes with the same macvlan network setup and would like to get your feedback. Thank you for an excellent video
@@kapnicorn as long as they arent trying to reserve the same ip address they are independent servers. so you can point your router to one and another's device to the other. not sure what would happen if you spun 2 of them up with the same ip address maybe a docker error. for one of them.
@@kapnicorn im just seeing this, are you referring to the DNS tab on the router?
i really appreciate that you spent time showing how to use docker compose. it's a major step missing from a lot of step by step guides. thank you and i'm still looking forward to more to come.
also, i'm not sure if it's out of scope, but what about a home hosted vpn so you could even use this dns from work or on your mobile devices? either way, thank you arcade punks and redcomiconline are way more tolerable now.
thanks i appreciate the feedback. yes i also plan on doing wireguard vpn, which does use pihole as a dns to block queries. stay tuned :)
I watched about 20+ videos and none of them helped me with my problem, which was that I could not log in with the ip provided by the pi-hole, until I saw your amazing video which helped me completely and I thank you a thousand times for the details and for sharing your knowledge.
I recently subscriber to your channel. Thank you for posting this material. It is easy to follow and is very well explained. Thanks. I just installed an NVME SSD on my Pi5 and you showed how to change the boot order from SD card to the SSD. I just now installed docker and docker compose from you last video! i expect the Pi-Hole will be just as easy. Thanks. My ultimate goal is to get jellyfin up and going in docker. You have a great sequence of videos for this!
I have also an ASUS router and I prefer instead of settling the Pi-hole’s ip-address under the WAN DNS settings do it under LAN.
Go under LAN and there DCHP settings put the Ip to the Pi-hole.
The different is that in case one (WAN) only client shows up in the Pi-hole logs is the router and you can’t actually see what devise makes bad calls that get blocked.
If set it at option two (LAN) the routers DCHP tells the device to connect directly to the DNS-server and all devices shows up individually in Pi-hole and you can watch logs on individual level and see what device made that suspicious DNS-request 17:58.
i love this! thank you for this great feedback
bro you are the only person on the pi entire pi community whos hard work help me to create pi hole at my home, hats off to you . regards your new friend for life....
Ok i was attempting to do this using wifi and wlan0 as the interface name. I used macvlan and ipvlan but i was too dumb to get it work. This morning i bought an ethernet cable hooked it up and now i followed your tutorial correctly this time and i got it to work. THANKS BOSS.
Update: now breaking my head on trying to find wan and dns on an att router site.
some viewers have been very vocal about setting up Unbound for local dns, i havent had a chance to take a look at that at the moment but will in the future
I had similar issues where I couldn’t find the settings in my router. For the time being I’ve done it on a per-device basis which isn’t ideal but it does what I need until I can get the info
Great video. Hope you are planning more episodes on how to set up a NAS server for example.
yup, im working on some Open Source NAS solutions for the Raspberry PI. before that tho ill upload how to set up wireguard with docker-compose. the reason i showcase docker-compose installation is becuse you can use it with all commercial and free NAS operating systems, so its universal
Wow! You made this so easy to set up. Also learned a thing or two. Thank you!
Thanks a lot for detailed explanation. 👍
Excellent video. Got it all working before finding out you can't changes the DNS settings on my Virgin Media Hub 5.0. Damn and blast! But your instructions were perfect. Thank you very much.
Thank you for the feedback! im sorry to hear you cant change the DNS settings on your router, i did a quick google search and it seems if you ever buy a 3rd party router, you may be able to use the Virgin media hub as a modem only and connect the 3rd party router. unfortunately this would inccur more cost and technical knowledge :(
You could still just change the DNS settings on individual devices to use pi-hole. It just wont work for your entire network.
thank you for the video, exactly what i was looking for :)
I wish I could "Like" this vid more than once . Thank you.
thanks a lot for this guide.
Thank you so much, exactly what I was looking for.
gracias de nuevo, eres muy claro y practico, tus videos son consistentes.
Gracias, mas contenido en camino
Works like magic! :)
;)
Thanks for the video 😊
I followed your instructions to a T, but the logs are stating the DNS resolution is currently unavailable. I'm completely unable to navigate to my web interface. I'm running this on Windows Server 2022 and baremetal Linux is not an option in my environment. What's going wrong?
that is interesting to know, im not familiar with windows server, but i quickly looked in google and many window server users recommend running a Linux VM with Hyper-V for pihole, but since the docker container is a linux immage it should work the same. maybe there are additional configurations that must be done for proper networking. i wish i could help but im not a windows server user and have no idea where to even start
Thank you! Worked like magic
are you going to be doing a video on how to use unbound with a docker compose file? I can get both to run natively without using a macvlan, but now everytime I try to setup both I get timed out request on the pihole docker-compose file.
ill have to research it first, but dounds like something im interested in making a video om
I had to change version to 2 instead of using version 3 when getting the error: ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.pihole_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected)
No, you are ok. Don't apologize 😊
The code snipplet.
1. I found it a little different in Github. OK I typed the differences.
2. the second (network) snipplet in Github was totally different. So I typed it all very carefully.
Running didn't work.
I installed pihole before already, don't ask me how .. it didn't block anything
I am trying now since 4 days, last time 48 hours everything raspi related and I find your advice best.
Sorry I was frustrated.
The most problem is the IP thing and what adress to put in.
That's where the most YT videos skip.
I am a beginner ... so..
Thank you for asking. 😊🙏
This video is very good
hey if i want to choose wireless on the yml file, what should i write for parent
on the Raspberry Pi terminal, run the command "ifconfig" it will list all network interfaces. you will see the eth0 and another that starts with a w (for wireless) add that. Full disclosure, i dont know if it will work or not. i havent tested it.
2024-05-15 1441 PT .... this should be *the* video on setting up Pi-Hole, whether using the DHCP server, or not. The fact you were able to find the options to set the container to access the ship's IP address, was the caveat. I set it up in Portainer, and the steps were the same. Even in Portainer, the YAML check is in place, and won't let you move on, if it finds any code out of place. I had a few of the settings below the driver_opts out of step, and it warned, not let me click on the "update" button to move on. And once the update was made, and the container restarted, the IP address changed to my static of 192.168.16.xx.
I have docker app on my desktop but want to move to Raspberry pi 4 so it less power. how does it handle the app. I was thinking running dockers containtor for nextcloud, Phpipam and ntfy
hey! i recently did this and it was simple for my set ups. i went from an intel x86 cpu to a arm rasperry pi 5. it all depends how you set up the container volumes. i like to map my container volumes to directories/folders on my operating system. so all i had to do was copy the files in the volume and paste them on my raspberry pi 5. then use the same docker compose configuration on the raspberry pi, change the volume mapp to the new location and run docker compose up. i had some issues at first with files not copying over due to linux permissions for my profile so i compressed them with sudo before moving it. if you dont map the container volumes you can just export the volumes with a docker command. it all depends really. what kind of set ups do you normally have?
Thank you for this but I ran into errors regarding eth0.. I replaced replaced parent: eth0 with the correct network interface on my homeserver which was enp1s0 and was able to run the docker compose file
I think it would be good to note it in your docker-compose file parent: eth0 # use the name of the network interface that your server is using
great feedback! i appreciate it. im still new to this technical videos thing. and this is great feedback
@@codefallacy no worries, I am new too just know my way around with some of the hings. Keep up the good work with your videos you earned me as a sub
Hey Mate, great solution with the macvlan IP Configuration, but heres my problem. I also run PIVPN on the same machine (not dockerized) which creates a wg0 interface (10.129.X.X) besides the eth0 (192.168.178.X) . And I want to get my traffic via vpn also run trough the pihole (device names inclusive). Any chance to describe, what to do for it?
Generating that .149 IP adress seems like dark magic to me but it worked... Despite that, I'm also getting the DNS resolution error. From within the container I can ping the DNS server so I'm not sure what the issue might be.
Hi, Thank you very much for this tutorial. I have question. How can you reserv that ipv4 ( in your example 192.168.50.149) in the router? I mean to make it static so the router do not give it to other device after the lease? I need to pair that IP with a MAC adress to reserv it at least in my router.
hey this is a great point! i just saw this commend since youtube marked it for review for some reason. i was able to achieve this through my router's menu. it assigned a mac address automatically, not sure if docker bridge automtically did this at the moment, but i was able to just see the ip and next to it was a mac address, in my asus router all i had to do was go to LAN -> DHCP Server tab -> Manually assigned IP and select the mac address i saw next to the assigned ip and add it.
Update for wifi would be great, have spent an hour trying but unfortunately it wouldn't connect
i havent tested with wireless yet. you could try switching the driver from "macvlan" to "ipvlan" and in "driver_opts:" add "ipvlan_mode: 12" give it a shot, at the moment thats ill i got since its harder with wireless for some reason. regardless we have to read the docs some more.
Has anyone figured out what the network settings are for a wifi connection yet?
Very straightforward video, I got this working instantly !! Like and sub, amazing.
I have a question. In my house there are a lo of blackouts, I set pi hole up in an old laptop I have in my house. The laptop will shut down on and on because of blackouts and I have to keep turning it on, but when this laptop is powered off my internet connection should work fine right?
Thank you! If you add a secondary dns address as a fallback to your router it will use that if the first dns address is unavailable. Make sure you add the pihole address as the first option and then cloudflare's dns of 1.1.1.1 as the second and you should be all set. Unrelated to this make sure docker starts when the computer starts so that everything runs fine after ablackout or power loss
Hi, how can we use unbound with this docker contained pihole instance?
im looking into it due to some viewer requests. probably eill be a video in the future
until to install pihole i could follow, but got stuck to make pihole run. i only modified timezone and username (also in volumes). The docker-compose up -d is not sucessful and i dont know enough to diagnose.
are you using an ethernet connection for the raspberry pi or wifi? what does the error message say?
@@codefallacy Thanks for replying. I almost paste the original content, only TZ and username changed. No real error msg. But the build process did not succeed as I see in your video.
1 question if there is a power outage will pi hole start it self or do i need to ssh inn and start it manual? i am so new to linux still learning :P
and yeah great video you made it so easy that i have it up and running :P thx buddy
good question, i have a few docker containers running and a few times i accidently unplugged them and didnt have to restart them manually. you can always give it a shot by unplugging the pi and see what happens. if it doesnt, make sure that docker automatically boots at start up with the systemctl command. i cant remember it exactly of the top of my head
Great video but after doing all the steps correctly I can't access my pi hole admin page but the container is running status healthy what could be the problem ?
im not sure, can you tell me a little bit more to help debug? are you using wifi or ethernet on the radpberry pi? what do you see when you access the ip address from a browser? are you adding "/admin" at thd end of the ip? are you able to reach the pi on other ports?
@@codefallacy I am using ethernet not using a raspberry pi using an old laptop with arch running on it and I am adding admin at the end of the ip.
@@codefallacy I am using ethernet I am not using a raspberry pi using an old laptop with arch installed on it and I did add /admin at the end of the ip and I never tried reaching pihole on other ports expect for the default one.
ok it could be that your operating system may have a firewall preventing certain ports from being accessed. to test this try installing another service like portainer or jellyfin and try to access it from another computer. im not familiar with arch and its networking but if you install another service and are able to access it we know its not the OS and can move to another debugging strp
I am unable to even load pihole. Getting error message "DNS resolution is unavailable" at 11.46
can you give out more details to help narrow down the issue? are you using wifi for the pi?
@@codefallacy I was trying to connect using wifi in macvlan. However when I changed to eth0 was able to create a pihole docker container. However I am unable to connect to pihole thru the specified IP address.
In services section have provided the IP address as 192.168.50.249 and under network section specified subnet as 192.168.50.0/24 and gateway as 192.168.50.1.
On reviewing log file in portainer I am able to confirm that pihole is enabled.
interesting... to access your router from a web browser, what is the ip address you type to access it? is it 192.168.50.1 ? this is correct for me but maybe your router uses another convention like 192.168.1.1 or 10.0.0.1.
My router ip is 192.168.50.1 and the docker container address specified is 192.168.50.249
this is a stumper... ill have to do some research since i dont know why
I just subbed to your channel.
Thank you! we have a lot of more videos planned. if you ever need help, ideas, or have feedback let us know!
I tried this method but when i run "docker-compose up -d" it says: "ERROR: invalid subinterface vlan name eth0, example formatting is eth0.10" if i try that it says: " parent interface was not found on the host: eth0" what am i doing wrong?
It may be that your ethernet interface may be a different name, with the command 'ifconfig' you can see . Remember this will omly work with wired ethernet connection, not wifi.
@@codefallacy ok found out that ifconfig is deprecated, after some researc i found the commandi ip link show and it worked, thanks a lot for pointing me in the right direction!
Hi, great video! I used your video to set up my own pi-hole, now I wonder if there is any possibility to generate a IPV6 address (so i can put that into IPV6 DNS configs for example on a WIN10 PC) since for me, it seems the pi-hole isn't blocking all ads. (i do see that pi-hole works and blocks ads, but simply not all) From further research it appears as through my Routers IPV6 DNS, ads are bypassing the blocking of the pi-hole (at least that's what I think.) I am using the pi-hole only on certain clients and want to keep it that way, that's why i don't use router setting to change IPV6. If anyone has an idea how i could fix my problem, pls let me know. Looking forwards to more of your videos to keep learning, since I'm pretty new to Raspberry Pi and all that.
I also noticed that some clients were bypassing pihole through IPV6 a week after, i chosed to disable my routers IPV6 for the time being. i also added the pihole as the only dns server. this has caught alot more ads. however i also need to research into this. At the moment im stumped on this
hola muchas gracias por tu contenido, seria de mas gran ayuda que pusieras los comandos en la descripcion del video o en un bloc de nota. pero como quiera se te agradece el esfuerzo
estoy haciendo un blog para agregar todo escrito para los futuros videos
The admin page won't load for me all I can get is: The server at 192.168.1.149/admin is taking too long to respond. what can I do?
hello, youtube marked this comment as spam, i just saw it and approved it. are you using ethernet? you should try opening a private tab and trying it there. you could add in front of the url, if this doesnt work, check in your router that there is a device using the ip: 193.168.1.149 if this doesnt work give me more details to help as best as i can
Maybe check the rules of nftables at /etc/nftables.conf in my case I was hardened my raspberry and the rules basically don't allow nothing more than kernel access to http/hhtps and SSH access. So I thinking about why nobody are talking about nftables. How secure and safe is our raspberry working as bridge in our traffic inside our network. Can you clarify this point ? Do we need a configure an specific firewall rules in nftables ?
@@codefallacy same issue here too, help!
@@codefallacy having the same problem, tried following these steps, still not working. I can see in portainer that a pihole is running, but I can't access the admin page.
this method doesn't work with my Pi3B+ for some reason.
what dind of issues are you having?
@@codefallacyit requires “version “3”” on top and doesn’t accept“gateway” parameter.
i think i have a 3b laying around ill have to try it and see how to fix it
@@codefallacy The Docker-Compose.yml needs "version: "3"" at the top, and the "gateway" parameter has to be removed. After these changes, I was able to install the PiHole with Docker onto my Pi3B+. Another issue I having now is the "Update Gravity" function, it keeps getting connection refused. any solution for that? Thanks.
Followed every step of both videos as closely as I could. Got to the final step and the ip/admin page won't load. Absolutely no idea how to troubleshoot from here.
Are you using an ethernet cable to connect the raspberry pi to your router? This will not work with wifi. Also what is the ip address to access your router? In this example i used 192.168.50.1 but yours may be different
@@codefallacyyes, pi is connected to router via ethernet. If I'm looking at the right details, my router IP seems to be 192.168.0.1
It looks like I had the IP set to 192.168.1.149
I'm unsure of how to change this
@@Josephus-Crooksicus ok here are a few things you can try. Connect to your raspberry pi and get the name of the ethernet interface by running the command 'ifconfig' it should list out the network interfaces. Mine was called 'eth0' but yours may be different. In the docker-compose.yml towards the bottom where it says 'parent' change 'eth0' to the name of your interface if necessary. Change 'subnet' to 192.168.0.0/24 and 'gateway' to 192.168.0.1 and change the ipv4 to 193.168.0.149
@@Josephus-Crooksicus i forgot to mention, you will need to restart the docker container. Aside from these things im not sure what else it could be. Hopefully these things help you.
Sorry, hopefully my last question, but how do I get back to the docker-compose.yml to edit it? If I understand everything correctly, those edits seem like they should solve the problem
Edit: I figured out to just retrace the step, please disregard this. Trying the fixes now, wish me luck
I failed .... to many jumps ... the copied code came from somewhere, and yes my fucking router its a Speedport Smart 4 Plus 🤬😖
Whats the issue?
I am using docker version 20.10.5+dfagl, build 55c4c88 and docker-compose version 1.25.0, build unknown, I'm getting the same error as "@jaboxo521
@jaboxo521
2 weeks ago
I had to change version to 2 instead of using version 3 when getting the error: ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.pihole_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected) Not sure what version he changed to 2 instead of 3.
on the docker-compose.yml file, at the very to of the file change from version:"3" to version:"2" see if that helps
also, i agree with having a written guide. ill work on making a basic website to host all the commands since youtube doesnt like code in the description of videos