How to Set Up Pi-hole on DSM 7! (Network Ad-Blocker)

  Рет қаралды 21,367

WunderTech

WunderTech

Күн бұрын

Пікірлер: 96
@sumukshashidhar
@sumukshashidhar 7 ай бұрын
Concise, clear, helpful. I wish tutorials on KZbin followed this non clickbait, well produced video format.
@MN11619
@MN11619 Жыл бұрын
Great video and clear instructions! I setup ADGuard and PI-hole using your videos! Now trying to decide what one to use 😂
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Both are great!
@thaswift1
@thaswift1 9 ай бұрын
Thank you so much for this. New to all of this and I was able to use your video and set it up with zero issues.
@marvelofgames
@marvelofgames 6 ай бұрын
i spent over an hour and still have questions while i appreciate your help it was very confusing. as a newbie
@WunderTechTutorials
@WunderTechTutorials 6 ай бұрын
I just released a new video that uses container manager. This video is out of date at this point.
@marvelofgames
@marvelofgames 6 ай бұрын
@@WunderTechTutorials I’ll have to check that out I kept getting errors in putty telling me to use the docker network manager to create the macvlan
@waardom
@waardom Жыл бұрын
Did it last time with your clear description 👍. Got it to work. Now trying to upgrade to the newest version of pihole.
@TechMeOut5
@TechMeOut5 Жыл бұрын
Oh yeah! i was looking forward to this! thanks for this excellent video! Posting on the Facebook group!
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Thanks, Avi! Appreciate you watching!
@justinjdyer
@justinjdyer 7 ай бұрын
Very helpful. Thanks for both the write up and the video.
@TDC_Dragon
@TDC_Dragon Жыл бұрын
I can't see how you exit editing and then save the resolv file.
@jurgenvanimpe6465
@jurgenvanimpe6465 7 ай бұрын
just type the exact following in my double quotes ":wq" it stands for write and quit
@Eric_In_SF
@Eric_In_SF 5 ай бұрын
yep. he skipped several critical steps. and the written instructions dont cover the dhcp.
@QuikTechSolutions
@QuikTechSolutions Жыл бұрын
Outstanding video Frank!
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Thanks so much, Tony!
@chrishuy7229
@chrishuy7229 Жыл бұрын
Great tutorial! Would you please do another video Pihole-Unbound on Synology DSM 7.2? Thank you!
@zafnatpanea826
@zafnatpanea826 Жыл бұрын
God Bless You! Dear Friend!!!
@jmejiamar
@jmejiamar Жыл бұрын
Recién configure todo con el anterior video… gracias por este nuevo!! Funciono Perfecto!! 😊
@johjohmn6731
@johjohmn6731 Жыл бұрын
Thank you so much. Would you consider making on that includes Unbound?
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Absolutely! Thanks for the suggestion!
@johjohmn6731
@johjohmn6731 Жыл бұрын
@@WunderTechTutorials Aw, man, I would love that!
@notreallyme425
@notreallyme425 Жыл бұрын
I’d like to see that. Not sure what functionality Unbound adds.
@johjohmn6731
@johjohmn6731 Жыл бұрын
@@notreallyme425 it adds your own recursive DNS resolver and therefore an extra layer of privacy.
@klorin
@klorin Жыл бұрын
Great guide, thank you. I would really like have it set-up with Unbound as well. Looking forward to that guide.
@cleantones
@cleantones Жыл бұрын
This is great. Thank you. The last time I tried to use a pihole I found that it's negated when using a VPN. I am a novice here, do you know if this method would be the same? I'm talking about the type of VPN you run on a device and enable at will.
@AyySorento
@AyySorento Жыл бұрын
Most VPN's offer some type of DNS leak protection which you can't always turn off. The idea is, your network traffic is protected, but DNS is still plain text since DNS over HTTPS isn't exactly a widely adopted thing. So, even if you had a VPN on, your network traffic will still reveal what sites you visit through DNS. Most VPN's will contain their own DNS or DNS protection that is used when the VPN is enabled to secure your DNS traffic. So yes, with the VPN on, any local DNS settings, such as PiHole, will be overwritten. Personally, it's a pain for me since I have my shared folders mapped via hostname and not IP, so when I have my VPN connected, they can't be reached unless I manually connect with the IP. Now, it's not always a bad thing. ProtonVPN for instance, comes with ad/malware blocking with their DNS. Might not be customizable like Pi-Hole but it still offers additional protection.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
When you say it's negated, do you mean that you want the VPN server to use Pi-hole? If so (and the VPN server is on the NAS), you'll have to set up the bridge network and use that IP address as the DNS server. If the VPN server is on a different device, you should be able to point directly to it.
@FoodTechLife
@FoodTechLife Жыл бұрын
I followed it step by step and it didn't work. I decided to restarted the docker container and then it worked! Thanks!
@brain272
@brain272 6 ай бұрын
Thanks for the wonderul tutorial - I was able to get everything working fine. However, is there a way to automate the create of the resolv.conf file without having to SSH into the NAS? When the NAS restarts, the file requires to be remade prior to the Pihole starting (consequently internet is down) and I was hoping there was a command I could run from the Task Scheduler. Thanks!
@WunderTechTutorials
@WunderTechTutorials 6 ай бұрын
I haven't heard of that with a macvlan network interface, but I just released a new video on this with a docker compose file that might simplify it.
@AyySorento
@AyySorento Жыл бұрын
Might make this my weekend project. I used to use Pi-hole on a PiZero, but it would constantly go down and be a pain to quickly reboot. Now that I have a NAS, maybe the experience would be better... not thought about running it on that.
@xxgg
@xxgg 7 ай бұрын
Q: How do I go about creating a secondary Pi-Hole? in case primary goes kaput? I assume it should have different IP or something?
@WunderTechTutorials
@WunderTechTutorials 7 ай бұрын
It generally should be an entirely separate device to ensure if the NAS ever reboots, you'll still have DNS resolution. A raspberry pi is a great option.
@nicolassimard2552
@nicolassimard2552 Жыл бұрын
Thank you!
@pyl2o
@pyl2o Жыл бұрын
thank you very much!! i create my own pihole.
@hamidelgendy
@hamidelgendy 11 ай бұрын
Thank you for the video, the issue i have is that the container dosent have internet access the i notice that error from the log: "DNS resolution is currently unavailable"
@WunderTechTutorials
@WunderTechTutorials 11 ай бұрын
Is it being blocked by Synology's firewall by any chance?
@hamidelgendy
@hamidelgendy 11 ай бұрын
@@WunderTechTutorials Thank you for your response. However, the firewall is disabled. The only difference between your environment and mine is that I am using a bonding Ethernet configuration, so my network name is bond0. Do you think this would make any difference?
@hamidelgendy
@hamidelgendy 11 ай бұрын
@@WunderTechTutorials I've discovered that each individual port on my network switch struggles with managing connections from multiple MAC addresses.
@kevinhughes9801
@kevinhughes9801 Жыл бұрын
Great stuff thank you
@JTAlweezy76
@JTAlweezy76 5 ай бұрын
wouldnt it make more sense to change the port # when openvpn? ovpn uses 443 by default. change the 443 port of pihole in setup to like 4453. this way openvpn stays bound to 443
@WunderTechTutorials
@WunderTechTutorials 5 ай бұрын
OpenVPN uses 1194 by default so Pi-hole using it should be fine. Though you can change it if you'd like!
@andyffoo
@andyffoo Жыл бұрын
Thank you for your video. I simply can not get this to work. Followed instructions to the letter. Once the containers has started I only get this "pihole-FTL: No process found" in the terminal. No pihole accessible via the ip address. I am new to this all, but was looking forward to playing around with this to further my skills.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
When you set up the container, did you use the resolv.conf file as well?
@TDC_Dragon
@TDC_Dragon Жыл бұрын
Great instructions that you have provided. Synology has udated Docker and PiHole since you published this video and the written instructions. I am not able to login via url or ping 192.168.1.198. A difference I see also is the bridge to the lixuxserver-nextcloud.PiHole with a bridge to 172.17.0.2. Any idea what error I have made? 2023/06/18 10:06:46stdoutpihole-FTL: no process found 2023/06/18 10:06:46stdoutStopping pihole-FTL { "CapAdd" : null, "CapDrop" : null, "cmd" : "", "cpu_priority" : 50, "enable_publish_all_ports" : false, "enable_restart_policy" : true, "enable_service_portal" : null, "enabled" : true, "env_variables" : [ { "key" : "PATH", "value" : "/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }, { "key" : "phpver", "value" : "php" }, { "key" : "PHP_ERROR_LOG", "value" : "/var/log/lighttpd/error-pihole.log" }, { "key" : "IPv6", "value" : "True" }, { "key" : "S6_KEEP_ENV", "value" : "1" }, { "key" : "S6_BEHAVIOUR_IF_STAGE2_FAILS", "value" : "2" }, { "key" : "S6_CMD_WAIT_FOR_SERVICES_MAXTIME", "value" : "0" }, { "key" : "FTLCONF_LOCAL_IPV4", "value" : "0.0.0.0" }, { "key" : "FTL_CMD", "value" : "no-daemon" }, { "key" : "DNSMASQ_USER", "value" : "pihole" }, { "key" : "WEBPASSWORD", "value" : "Password123" }, { "key" : "DNSMASQ_LISTENING", "value" : "local" }, { "key" : "VIRTUAL_HOST", "value" : "pihole" }, { "key" : "ServerIP", "value" : "192.168.1.198" } ], "exporting" : false, "id" : "976bc744b62243d817e5d3c2992b17155082b0dbf4533e75ebca6052ffd01aa6", "image" : "pihole/pihole:latest", "is_ddsm" : false, "is_package" : false, "links" : [], "memory_limit" : 0, "name" : "pihole-pihole", "network" : [ { "driver" : "bridge", "name" : "bridge" } ], "network_mode" : "bridge", "port_bindings" : [ { "container_port" : 53, "host_port" : 0, "type" : "tcp" }, { "container_port" : 53, "host_port" : 0, "type" : "udp" }, { "container_port" : 67, "host_port" : 0, "type" : "udp" }, { "container_port" : 80, "host_port" : 0, "type" : "tcp" } ], "privileged" : false, "service_portals" : [], "shortcut" : { "enable_shortcut" : false, "enable_status_page" : false, "enable_web_page" : false, "web_page_url" : "" }, "use_host_network" : false, "version" : 2, "volume_bindings" : [ { "host_volume_file" : "/docker/PiHole/dnsmasq.d", "is_directory" : true, "mount_point" : "/etc/dnsmasq.d", "type" : "rw" }, { "host_volume_file" : "/docker/PiHole/pihole", "is_directory" : true, "mount_point" : "/etc/pihole", "type" : "rw" }, { "host_volume_file" : "/docker/PiHole/resolv.conf", "is_directory" : false, "mount_point" : "/etc/resolve.conf", "type" : "rw" } ] }
@noNumber2Sherlock
@noNumber2Sherlock 6 күн бұрын
Hi. Great videos. Gotta ask, if my network runs only on a subnet of 192.168.1.0, how would it see the DNS address if it is on another subnet: config: - subnet: 192.168.10.0/24 gateway: 192.168.10.1 ip_range: 192.168.10.2/32 I followed through, pihole is working but it doesn't see anything even though I pointed my desktop's DNS setting to 192.168.10.2. My desktop is om 192.168.1.0 subnet. I think I am missing something.
@WunderTechTutorials
@WunderTechTutorials 6 күн бұрын
The 10.2 address is ONLY used for NAS to Container communication. So if you wanted the NAS to use the Container as the DNS Server (setting it manually in the Control Panel), you'd use that IP, but it's on the NAS ONLY.
@noNumber2Sherlock
@noNumber2Sherlock 6 күн бұрын
@@WunderTechTutorials Thank you. I had to re-read that. Awesome stuff! Wish you'd make one for fail2ban, there's none out there specifically for synology docker ( that actually works) except maybe a German dude who makes it so you that must use VaultWarden along with it.
@Jschuurbiers89
@Jschuurbiers89 7 ай бұрын
Great tutorial once again. I followed the tutorial step by step but I don't seem to get it working though. I got pihole running on docker without a problem. The pihole is getting queries from all of the clients on my network. I manually set the DNS server on my router to use pihole, but I am unable to turn off the ISPs secondary DNS server. If I manually force my laptop to use the pihole as DNS it is not able to resolve any website. I am not quite sure why I am seeing queries on my pi-hole but when I force clients to use the pihole as DNS it is not resolving anything. Any advice?
@WunderTechTutorials
@WunderTechTutorials 7 ай бұрын
If you set one individual device to use it as their DNS server, it's not working at all? Is the upstream DNS server configured properly?
@Jschuurbiers89
@Jschuurbiers89 7 ай бұрын
@@WunderTechTutorials that is correct, unable to visit any website. I have checked google and opendns in the upstream ipv4 DNS settings. Fyi I have turned off ipv6 completely on my router.
@WunderTechTutorials
@WunderTechTutorials 7 ай бұрын
You'll have to try and figure out a way to test external DNS queries. Ultimately, if the query is hitting Pi-hole, it's configured properly. It just sounds like something is blocking the upstream DNS requests.
@TheMattMustain
@TheMattMustain Жыл бұрын
I'd like to incorporate this but how does it work with a NAS that is also doing Directory Server and DNS? Do my devices have to point to Synology DNS first then forward to Pi-hole then external DNS if necessary?
@Popcorncandy09
@Popcorncandy09 Жыл бұрын
how would we add unbound to this setup?
@DelacruzDigital
@DelacruzDigital Жыл бұрын
I followed these step by step including referring to the written instructions. I got the following error.... DNSMASQ_CONFIG FTL failed to start due to failed to create listening socket for port 53: Permission denied
@DelacruzDigital
@DelacruzDigital Жыл бұрын
FATAL ERROR in dnsmasq core: failed to create listening socket for port 53: Permission denied [2023-02-06 00:22:29.212 10180M] ########## FTL terminated after 88ms (code 1)! ##########
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
@@DelacruzDigital Are you using Synology's DNS Server package? If so, did you successfully create the macvlan network interface?
@DelacruzDigital
@DelacruzDigital Жыл бұрын
@@WunderTechTutorials I am not running the DNS Server package, do I need to have it running? I was able to create the macvlan.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
@@DelacruzDigital No, you shouldn't have it installed. If you created the macvlan successfully and it's using it, that's very weird. That error implies that port 53 is already being used and port 53 is the DNS port. I would try and delete the macvlan and container, then recreate everything.
@DelacruzDigital
@DelacruzDigital Жыл бұрын
nothing, i deleted everything and started the whole thing over again, same error msg.
@MagDag_
@MagDag_ Жыл бұрын
Hi! Thank you for your help! I have a provider router, which doesn't allow me to modify a DNS record. Which way can I go? Router automatically receives network settings.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Unfortunately, you'd have to set it on the device level then. It'll be different for each device (tons of articles online about how to do it) but you can manually set it that way.
@sk29
@sk29 Жыл бұрын
great video very helpfull thanks
@memoopi
@memoopi Жыл бұрын
Your video is amazing, really straight forward. Can you please make a video about how to install Nginx Proxy Manager on the portainer. Thank you.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Thank you! I have a video on NPM, but I admit that it's caused a ton of problems for people. I'll try and circle back and see if using Portainer makes it any easier. Thanks for the suggestion!
@Duane_A
@Duane_A 4 ай бұрын
@@WunderTechTutorials I hope you will do this very soon (mostly bc of changes in DSM 7), but with a caveat section for users who already have a macvlan with Pi-hole...then at the end, or a quick turnaround for another tutorial, please discuss how to configure these to work together as intended. 🙂
@doddsnow4714
@doddsnow4714 Жыл бұрын
@WunderTech I receive the error "Pool overlaps with another at this address space" would this have anything to do with the macvlan I already have for the NGINX network?
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
It could - do you have two NICs on your NAS? Can you try using the other (the one not used by NGINX).
@cyberwasp461
@cyberwasp461 Жыл бұрын
is there a way to print the instructions out from your website? Reason is I messed it up twice so far by switching tabs between your site and my nas. TIA
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Technically, yes (right-click > print), but the instructions aren't going to be very pretty. They should be good enough though!
@NisarBashir
@NisarBashir Жыл бұрын
Great video. At 3:42 my ifconfig shows eth0 without any ip address, and a ovs_eth0 with the correct lan up address. Which interface should I use to create macvlan
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Thanks! You would use the ovs_eth0 interface if that's showing the local IP address.
@NisarBashir
@NisarBashir Жыл бұрын
@@WunderTechTutorials thanks for the help. It worked. I used your video to understand the concept/steps for the installation. However, with Portainer installed on my Synology, the easiest way to install with maximum control is through docker compose. All network configuration in 5 lines. No need to ssh to set up the macvlan network
@markmarino6158
@markmarino6158 Жыл бұрын
Very helpful video. One issue I'm having is that neither the NAS nor the other containers could get DNS to work when I pointed the NAS at the PiHole bridge network IP address... all other machines on my LAN had no problems using PiHole macvlan address as their DNS server. I've got PiHole acting as both DNS server and DHCP server. Right now I manually set the DNS servers for the NAS to point to Cloudflare's DNS servers to get things up and running, but ultimately, I'd like everything to use PiHole as the DNS server... any thoughts on how to troubleshoot why PiHole isn't responding on the bridge network?
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
I haven't had issues using the bridge IP in the past. I'd imagine it could be DHCP server related as I've never used Pi-hole as my DHCP server, but that's really just a guess, unfortunately.
@user-if8wt2ge9u
@user-if8wt2ge9u Жыл бұрын
Im having the exact same issue and Im not even using it for DHCP.
@MrLaurieLewis
@MrLaurieLewis Жыл бұрын
Frank, thank you. is there anyway to direct your guest network, or if you have a Synology router with vlans, through that pihole instance running on your nas?
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
You can with firewall rules, assuming your router supports them. The easiest way would be to allow traffic from the Guest network to the LAN network on the Pi-hole device only for port 53 (DNS).
@MrLaurieLewis
@MrLaurieLewis Жыл бұрын
@@WunderTechTutorials - Thank you. I created the rule you suggested. Synology Router has 3 different subnets running on it (192.168.1.*;192.168.2.*;192.168.3.*). Each network sets up its DNS as 192.168.?.1 and allocated by DHCP. I have now put my PiHole container as the DNS server for the internet settings and with the rule you suggested it now appears to be running for each of the networks.
@thecat23
@thecat23 Жыл бұрын
Thanks for the videos on both pi-hole and adguard, very helpful! what got me thinking is that would this work if Synology had DNS server / Directory server running already? I am using Unifi UDM set up with DNS server pointing to Synology IP address. I guess macvlan will solve the port conflicts for port 53, but there are two DNS, one from Synology DNS ip address and one from Pi-hole macvlan ip. Can I add two DNS server address in UDM, pi-hole macvlan ip at the very top, and followed by Synology DNS after? would this set up work? Or, can I simply use the host network (synology), no macvlan required. Instead change the port from 53 to 54 to avoid port conflict? this way, only one DNS server IP address is needed at UDM as their IP address is the same? Thanks!
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
I wouldn't change the DNS port but theoretically, you can use the Synology DNS package and pi-hole with a macvlan. With that said, I wouldn't personally do it because then your DNS is fully reliant on your NAS. I'd run one on your NAS and another on a cheaper device like a raspberry pi.
@tenzingngodub641
@tenzingngodub641 Жыл бұрын
Ok I have downloaded all the stuff to run pi-hole through raspberryPi, but why am I getting more advertisements than before, how do I connect to the router, do I physically need to plug it to the router with the law wire. I am confused what the next step after downloading pi-hole how do I run it.
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
It might be the site you're on. This can't add ads, and if it's not removing anything, it's most likely not being used. Each router is different, but it's generally the local IP subnet with .1 (192.168.1.1 as an example). You can then change the DNS server inside of there.
@MuhammadIrfan-ni9pb
@MuhammadIrfan-ni9pb Жыл бұрын
Why my pihole still can access web interface
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
Are you accessing it on the macvlan IP?
@MuhammadIrfan-ni9pb
@MuhammadIrfan-ni9pb Жыл бұрын
@@WunderTechTutorials sure, in my case i using vmware for running synology
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
@@MuhammadIrfan-ni9pb That adds a few variables that you're going to have to look up. If the NAS doesn't have it's own NIC assigned, I'm not sure you're going to be able to get it working.
@cwill6491
@cwill6491 Жыл бұрын
7.2 breaks this a bit. You can only set 1 network in the setup
@WunderTechTutorials
@WunderTechTutorials Жыл бұрын
You will have to add the network from the "Network" tab. Create the container with the ph_network, then add the ph_bridge after it's created.
@orleiv
@orleiv 7 ай бұрын
Just to let you know after ages of troubleshooting i got an error about dnsmasq UPDATE: Simple chmod -R 777 /scripts/pihole/newdnsmasq.d did the job!
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
How to Setup the Firewall on a Synology NAS!
13:33
WunderTech
Рет қаралды 63 М.
Installing Pi hole on Proxmox and using OPNsense Unbound DNS Upstream
17:43
Subnet Routers | Tailscale Explained
12:25
Tailscale
Рет қаралды 23 М.
Easy Local Dns And Ad blocking With Pi-Hole & Proxy Manager
9:39
Tech With Nich
Рет қаралды 19 М.