OpenMediaVault Pi-Hole: Full Setup and Configuration! (Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone today we're going to look at how to set up pi hole on open media vault so while open media vault is mostly used as a nas where you can share folders there's many different things that you can do with it and what we're going to look at today is how you can install pi hole which is a dns ad blocker in docker so we're actually going to go through and install docker and portainer first and from there we're then going to configure pi hole so if you haven't installed open media vault yet i have a video that i released last week and i'll leave a pop-up for that right now and i also have written instructions for everything that we're going to be doing today in the description of the video so the first thing that we're going to do is we're going to log into openmediavault and we're going to select omv extras on the left hand side now if you don't have the open media vault extras you need to install it from the plug-in section generally if you're using this at least on a raspberry pi uh it will come installed by default but i just want to make that note in case you're using this on a different platform after that's done you're going to select the docker tab and then you're going to click the docker drop down menu and you're going to click install this is going to run through and fully install docker once docker is installed we're now going to install portainer and pertainer is going to be used for us to manage all of our docker containers from our openmediavault instance so think of portainer as a docker management console so you'll still use openmediavault to manage all of your shares and pretty much everything else but if you have to modify any of your docker containers you're going to do that through portainer so once portainer is installed you have to reboot your raspberry pi and as soon as it comes back up and you log back into open media vault you can go back and you can launch portainer at that time you're then going to have to set up a username and password at the next screen select docker because we're only going to be managing the local docker environment and then at the next screen select local and at this point you're ready to manage your containers so we now have docker and portainer fully configured what we're going to do is we're going to take a step back and we're going to create our mac vlan network interface that is going to be installed on top of docker so that's the reason why we had to install docker first if you try and do this before docker is installed it's not going to work so what we're going to do is we're going to ssh into our raspberry pi if you didn't set up vault using ssh what you can do is you can just hook up your raspberry pi to a monitor and keyboard because we have to run a few different commands so as soon as you're connected to that raspberry pi you're going to run the ifconfig command you're then going to be brought to a bunch of different network interfaces these are all the network interfaces that exist on this raspberry pi so you need to find your raspberry pi's ip address for me it's 192 168 1.197 so i see that here and what i'm going to do is i'm going to take the adapter's name so for whatever reason it's enxb etc what i need to do is i need to copy that entire string so that i can enter it into my next command so the next command is going to go through and it's going to create a mac vlan network interface so you have to run this command and you have to substitute a few things make sure you use the correct adapter name above so basically replace my enxb with whatever your adapter name is and then you're going to have to set up your subnet gateway and ipv range to match the local subnet that you're using so for me i'm using 192 1681. cetera for you it might be 192.1680 it could be 10 dot et cetera there's various different ways you could do it but you have to ensure that you're using the correct subnet here and the last thing is that ip range whatever you put at the end there so mine's 192.168.1.195 that will be the ip address that you're going to use to connect to pi hole so when you run that command it's going to create a mac vlan network interface now it's important to know why we're doing this now a mac vlan network interface allows you to pretty much create a virtual network interface and what that allows you to do is have your own port configuration so for example if you're using port 80 for your open media vault web admin page it's using port 80. if you try and use port 80 for pi hole as well you're going to run into a port conflict so since open media vault has its own ports that it's using what we're doing is we're separating pi hole out so that it has its own port configuration and we don't have to worry about any port conflicts that is the benefit of using a mac vlan network interface so now that the network interface is set up we're going to go back to portainer and we're going to select volumes and we're going to add two different volumes we're going to add one with the name etc pi hole and one with the name etc dns mask dot d these are where your pi holes configuration files will be stored so that's the reason why we're creating this once that's done select containers on the left hand side and then you're going to add a new container give it a name and then in the docker dot io field you're going to put pi hole slash pi hole colon latest this is going to pull the latest pi hole image when you install it we're then going to add five different network ports we're going to use 53 67 80 443 and 53 again so the first two 53 and 67 make sure you set those as udp the rest of them will be tcp but tcp is used by default so just make sure you change those first two to be udp we're then going to go down to the bottom and we're going to select volumes and we're going to map two additional volumes for the first one type in slash etc pi hole and then you're going to select the pi hole volume that we created earlier and for the second one you're going to do etc slash dns mask.d and you're gonna select the dns mask volume that we created earlier as soon as that's done you can head over to the network section and you're going to select the ph underscore network that's the mac vlan network that we created earlier you can then go over to the environment section and we're going to add two environment variables the first is going to be the web password and the second is going to be the server ip so the web password whatever you put as the value there that's what you're going to use to log into the pi hole web page that we're going to get to in a little bit uh the server ip that's the ip address of that mac vlan network interface that we created earlier for me it's 192.168.1.195. but if you are using a different ip address you'll have to put that there you can now go over to the restart policy and you're going to change that to always this just says that if pi hole stops it should automatically restart or if you restart your open media vault server it will automatically start pi-hole as soon as it starts back up the final thing that we're going to do is we're going to select capabilities and we're going to turn on net admin once that's done the entire container is configured so you can click deploy the container and what it's going to do is it's going to go and it's going to pull down that pie hole image the latest piehole image and it's going to set up a new docker container using all of the variables and everything that you just configured in portainer so once that container is running you'll be able to access it by navigating to the server ip address you configured in the environment variables or the ip address of that mac vlan network interface so remember those should both be the same when you are brought to the pi hole admin page what you can do is you can log in with that web password environment variable that you created earlier so for me i just left it as password but you probably went ahead and changed that so that's what i'm going to log in with so at this time pihole is fully configured and what you can do is you can go and you know subscribe to as many different blocking lists that you want change any of these pi hole settings it's up to you the last thing that we're going to talk about and i'm not going to demo because there's various different ways to do it is the dns configuration so on the written instructions i have a few different ways that you can configure your dns server meaning that you can do it on the the client device itself or you can do it on the router my preferred method of doing this is on the router so that all of my devices that are connected to my router will automatically use this pi hole server as their dns server if you do it on the client device itself you have to manage the dns server on every single one of these devices so kind of be conscious of that depending on how you want to do this if you only want certain devices to use pi hole as the dns server then you know setting them up individually is fine but if you want to go through and you want to set up all of your devices on your local network to use pi hole as its dns server you should go into your router's configuration and change the dns servers there so this is a perfect time to bring up that while we just created a pie hole as a dns server it's very very important to ensure that you have redundant dns servers so whenever you log into your router's page you're most likely going to see that there are two lines there's a primary dns and a secondary dns the reason for that is because if the primary is down the secondary will be used so if you only have one meaning the primary is this open media vault slash pi hole server that you set up if you're only using this one and that goes down you reboot it or whatever you're not going to be able to resolve domain names that's the reason why having a secondary is very important so the best thing to do is buy a very cheap raspberry pi zero w they're like 10 bucks 15 bucks something like that i'll leave a a link in the description for that but buy one of those and you can configure pie hole on that as well so i created a video on how you could do that i'll leave a pop-up for that now but what that's going to do is that's going to allow you to have redundant dns servers there's also various different devices you can configure pi hole on you can set it up on a synology nas if you happen to have one of those you can set it up pretty much anywhere that docker is running so i don't want to give the impression that you have to do this on a raspberry pi you can do this on you know various different devices the main point that you have to take away here is that having a secondary dns server is very important so make sure that you go ahead and do that that's how you configure pihole though i'm hoping that all these instructions made sense obviously any questions that you have please leave them in the comments i'll do my best to get back to you if you like the video please give it a thumbs up and if you like this type of content please consider subscribing to the channel thanks guys
Info
Channel: WunderTech
Views: 19,604
Rating: undefined out of 5
Keywords: openmediavault pi-hole, pihole openmediavault, pi-hole openmediavault, openmediavault pihole, pi-hole docker, pi-hole portainer, portainer pi-hole, pihole docker portainer, openmediavault docker, openmediavault portainer, openmediavault pi-hole docker, openmediavault docker pi-hole, openmediavault portainer pi-hole, openmediavault pi-hole portainer, omv pi-hole, pihole omv, pi-hole omv, omv docker
Id: kkFP46S2VEM
Channel Id: undefined
Length: 10min 37sec (637 seconds)
Published: Thu Nov 05 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.