Running Pi-Hole On A Synology NAS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in today's video i'm going to show you at the request of several viewers how to install a pie hull on a synology nas in a docker container welcome to the channel my name is tony and if this is your first time with us please consider subscribing and if you do hit that little bell so that you're alerted to when i release new content so i'm going to assume if you're watching this video or you search for a video like this that you already have an idea of what pi hull is and what it does and its purpose now in case you don't let's just take a quick look at their website and here you can see at the pi hall website they describe it as a dns sinkhole that protects your devices from unwanted content without installing any client-side software now they say it's easy to install and i'm going to show you how to do that today on the synology it's very responsive it's very lightweight it takes minimal hardware it's typically installed on a raspberry pi it is free open source software however donations are always accepted it helps keep the project going so that said let's get started with the installation on the synology couple of prerequisites you have to have docker running on the synology and i'm not going to show you how to install docker in this video that's one prerequisite another prerequisite is that you're not running the synology internal dns server you will have a problem that will conflict with pi holes so it's either one or the other so that said let's get started with today's installation okay so i'm inside of synology let's get started with the installation process i'm going to launch docker i have an icon here on my desktop and you can see i only have one container running right now and that's for the rtmp server that i created in another video so that said what you want to do is come over to the registry and you're going to type up in the search box you're going to type pyhole and you're going to search for a pie hole docker image and we're going to take the first one that comes up the official pi hole docker image from pihole.net so to download it just click on it and hit the download link or you could double click on it whatever is your preference i'm not going to do that because i already have it downloaded from testing it previously once it's fully downloaded it'll appear here in the images folder and you see it here so let's go ahead and launch this image now i could either double click it or i could just single click and come up and say launch and we'll give it a name here and i'm just going to leave it at the default what we are going to do is come down to advanced settings and i want to enable auto restart so that if the let's see what it says here when a container encounters an improper shutdown the container will try to restart so that's what we want it to do let's come over to volumes and now we're going to add a couple of folders but we have to create those folders first in the file station so i'll explain more as we're going through this so let's come over here and click on the file station and because docker's been previously installed that installation created a docker folder so inside of this docker folder we're going to create a couple of different folders so the first one we're going to create is called pihole okay now you see here inside of this docker folder we have a pi hole folder now inside of this folder we're going to create two more sub folders first one we're going to call pi hole again and the next one we're going to call dns mask.d that's what's recommended uh on the github okay now we have our two subfolders created inside the pi hole folder that's inside of the docker folder so that's all here for the file station we can close this now we're going to go back to the advanced settings and we're going to click in the volume tab under add folder and we're going to now take those folders that we just created so we're going to go inside the docker folder inside the pi hole folder and you can see here you have here are the two folders that we just created in file station we're going to map the dns mask.d we're going to select that and now we're going to mount it to the folder that's going to be created inside of this docker container so it's slash etsy slash dns mask dot d forward slash and then we're going to add another folder and we're going to go get the other folder we created the pi hole subfolder and we're going to mount that to et etsy etc slash pihul so when you're all done it should look like this you should have your folder that you created here on file station mapped over to the docker container locations here once you have that done we're going to click on network if you're finding any value in today's video please give it a thumbs up it lets youtube know you like what we're doing here on the channel now let's get back to the video we're just going to come down to where it says use same network as the docker host so we do want that and then we have one couple more things to do here under environment so the first thing we're going to do is set up three new variables so the first variable is going to be called web password so we're going to enter the variable name and then under value we're going to create the password that we want to use to access pi hold so i'm just going to make it simple for now one two three four five six seven eight in production please use a stronger password so then we're gonna add another variable and this one's going to be called dns mask underscore listening and for value we're just going to say local we're going to create one more variable and that's web port and for the value i'm going to use 8080 now you can use that you can use any other value as long as you're not using that port somewhere else and then the last thing we're going to do we're done creating variables but we do have to edit a variable down here we have to edit the server ip address and this is going to be the ip address of the synology that will be running the pi hole container so in my case it's 192.168.25.60 you would put your nas's ip address here let's go ahead and say apply and let's go ahead and say next and now it's just verifying everything we just set up there's our folder mappings here are the variables just confirm everything run this container after the wizard is finished i'll leave that check let's go ahead and say apply and now let's go back up to the docker containers and you can see here that we have the nginx container running the rtmp server and then here's the pi hole server uh the pi hole container that we just created okay so now that we have the installation complete and the piehole docker container is running up on the synology if you look at my screen here you can see i'm at the login page now how did i get here simply pointed my browser to the ip address of my nas which is 192.168.25.60 in your case it would be the ip address of your nas colon followed by the port number in my case i used 8080 then forward slash the word admin or lower case so your server ip address followed by the port number forward slash followed by the word admin will get you to the login page now if i come over to the login page and right off the bat you can see some stats up at the top it has eighty two thousand over eighty two thousand domains on the block list so far it's blocking eleven point four percent of information on my own my network i have four queries that are blocked out of a total of 35 queries that have been made coming from four clients so we could take a closer look at that if we log in so click login over here in the left menu and it's asking for the password here and this is the password you created in the installation process when you created that web password variable so i'm just gonna put in one two three four five six seven eight which is the password we used let's log in and you can see here now it's giving us a little bit more of a detail now i don't have much information here because this container's only been up and running for several minutes and you can see here it's querying over the last 24 hours it's showing the query types queries answered here it's showing you the top block domain names and it looks like it's blocking device dash metrics dash us-amazon.com for hits here's the domains it's allowing coming from it shows you the client it's coming from now i'm not off the shore off the top of my head um that 171 which client that is on my network but i could i could double check my dhcp pool but in any event there you go i have docker actually i have pi hole running in a docker container on a synology nas now if you wanted one of the other things you can do is come in here under settings and come up across to the top and go to the dns tab i actually like to use cloudflare when i'm using pi hole so then i'm just going to uncheck google select cloudflare down here and this is again a matter of personal choice i'm going to click save so you can select your dns settings and then if you wanted to add local dns where you can look up machines on your local network by dns name instead of by ip address just click on local dns dns records and you can come up here you can add the domain name that you want to use and the associated ip address of the machine so for example if i wanted to get to my router i could put in router tony smiraldi dot com and then followed by the ip address of my router and then go ahead and add that record so there you go pi hole running on a synology nas inside of a docker container if you like this video please give it a thumbs up be sure to check out some of my other videos that i have listed up above remember to subscribe like and share this video and i want to thank you for using my amazon affiliate links i know they don't change your price but they do help out the channel my name is tony with quick tech solutions as always please stay safe thank you for watching and we'll see you next time and as always i'd like to thank our patreon supporters and if you would like to help support the channel there's links to the patreon page and paypal down in the video description
Info
Channel: Quik Tech Solutions L.L.C
Views: 7,465
Rating: undefined out of 5
Keywords: Running Pi-Hole On A Synology NAS, pihole synology, synology pihole, pihole synology docker setup, pihole synology nas, pihole synology setup, pihole synology vs raspberry pi, quik tech solutions, How to install Pi-Hole on a Synology NAS using Docker, Install Pi-Hole On Synology, Install Pi-Hole using Docker, pihole synology update, quik tech solutions l.l.c
Id: bPs2M-GvRtQ
Channel Id: undefined
Length: 12min 37sec (757 seconds)
Published: Sat Jun 12 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.