Pi-hole + Unbound with VLANs (Ubiquiti UniFi)

Sdílet
Vložit
  • čas přidán 16. 02. 2024

Komentáře • 45

  • @dnomge
    @dnomge Před 2 měsíci +1

    I must say one of the best video about Pihole in combination with UniFi and multiple VLAN's. Thank you very much of sharing your knowledge, very appreciated.

  • @sherlockholmes6990
    @sherlockholmes6990 Před 15 dny

    Thank you very much, sir. This is exactly what I needed.

  • @gregbelcher937
    @gregbelcher937 Před 5 měsíci +1

    Another great informative video. Thanks again for making such detailed and easy to understand content.

  • @crc-error-7968
    @crc-error-7968 Před 4 měsíci

    thank you! this is exactly what I was looking for!

  • @nickdoum
    @nickdoum Před 3 měsíci

    excellent video

  • @altaf-uddin
    @altaf-uddin Před 5 měsíci +1

    This is an excellent and informative video. I would be interested in how the pfBlockerNG and pfsense DNS with unbound works with different VLANs and what additional customisation is possible, such as block ads on one VLAN but allow certain to another VLAN, for example guest or entertainment related VLANs and SSIDs. Thank you for making such detailed and informative contents.

    • @hz777
      @hz777  Před 5 měsíci

      Thanks for the video idea. I've added it to my backlogs.

  • @Kehf27
    @Kehf27 Před 2 měsíci

    Hi.
    Thank you for your insightful videos.
    My question involves the second approach where you set all the VLAN DNS servers on the ens192 interface:
    Is there a method to configure this on Bookworm (Debian 12) with the new network manager tool instead of editing dhcpcd conf. file?
    I assume you are using a raspberry π 4 or earlier and they are running Bullseye.

    • @hz777
      @hz777  Před 2 měsíci

      In the video, I used a debian 12 VM. As long as you change the interfaces configuration file like what I did in the video, the default network manager will not be working and the interfaces config file will be effective.

    • @Kehf27
      @Kehf27 Před 2 měsíci

      ⁠Thanks much for your response. I’ll try this on a raspberry π 5.

  • @EduardoKabello
    @EduardoKabello Před 2 měsíci +1

    My Pi-hole is installed on a Proxmox Linux container, and it doesn't have network/interfaces config file. Do you know how can I config like your second approach. Thanks

    • @hz777
      @hz777  Před 2 měsíci +1

      I am about to start the process to migrate my VMs from ESXi. This Proxmox container topic is interesting to me. Give me some time and I may make a video about Proxmox+Container+Pi-Hole+VLAN.

    • @EduardoKabello
      @EduardoKabello Před 2 měsíci

      @@hz777 Thanks!

  • @crc-error-7968
    @crc-error-7968 Před 4 měsíci

    @777 what is the difference between adding the vlan as you did into the /etc/network/interfaces and add virtual nic to the vm? which you think is best?

    • @hz777
      @hz777  Před 4 měsíci +2

      The way in the video guarantees all interfaces are based on one physical interface. The vm way as you described is up to the vm config to decide, so you have chances to use multiple physical interfaces.

    • @crc-error-7968
      @crc-error-7968 Před 4 měsíci

      @@hz777 thank you!

  • @erics9785
    @erics9785 Před 5 měsíci

    Do you prefer pfsense to the Unifi routing options?

    • @hz777
      @hz777  Před 5 měsíci +1

      When it comes to routing, UniFi routers are good enough for home or small business users. But for me, pfSense supports more routing protocols so is more fun to play with.

    • @erics9785
      @erics9785 Před 5 měsíci

      I purchased a Dream Machine pro SE; Coming from a Netgate 6100 - thinking of returning the DM, I can’t get over the way Unifi handles firewall rules. Anyway, love the videos!

  • @Volgin.
    @Volgin. Před 2 měsíci

    When you set the DNS in Unifi pointing to the PiHole IP, will the clients in the Pi's query logs appear under the same IP, or each device to it's IP address? I'm asking this because i want to buy a UDR, and couldn't find out if it displays clients properly, since my current router makes it display all devices under a single IP (WAN)

    • @hz777
      @hz777  Před 2 měsíci

      It will show as the IP of UniFi router.

    • @Volgin.
      @Volgin. Před 2 měsíci

      @@hz777 Is it possible to show each separate client, instead of one big client being the UniFi router?

    • @hz777
      @hz777  Před 2 měsíci

      @Volgin. Sorry I misunderstood your original question. I thought you were asking about dhcp.
      If the question is about in UniFi Network Controller, under DHCP settings for each network, you set the DNS server to pi-hole, then the answer is:
      - for a client, it's dns server will be pi-hole;
      - the whole dns name resolving process will have nothing to do with unifi router's DNS server
      - in the pi-hole logs, you should see individual clients.

    • @Volgin.
      @Volgin. Před 2 měsíci

      @@hz777 That's exactly what I wanted to know. Like I said, with my current setup, all clients in PiHole show under the same IP, that IP being my routers IP, instead of, for example, my desktop or phone's IP. That way it's impossible to set groups on PiHole for specific clients. Thanks for the reply :)

  • @URackADisciprine
    @URackADisciprine Před 4 měsíci

    Do you know how to make the second option (no firewall changes in UniFi) work for Raspberry Pi by chance? Copied your info into the interfaces file but it did nothing. Tried a few variations in the /etc/dhcpcd.conf file as well where I have my current network config and nothing worked.

    • @hz777
      @hz777  Před 4 měsíci +1

      If you use raspberry pi os, you may need to install vlan package first, then configure vlan interfaces.

    • @URackADisciprine
      @URackADisciprine Před 4 měsíci

      @@hz777 YES!!! Thank you for the step in the right direction. Got it up and running.

    • @Kehf27
      @Kehf27 Před 2 měsíci

      @@URackADisciprinehow did you install a vlan package ?
      Which version of raspbian were you running and which the Pi? The new Pi 5 or Pi 4

    • @URackADisciprine
      @URackADisciprine Před 2 měsíci

      @@Kehf27 I am running an older Lite version I can't remember which. Just running a couple Pi 4B's for redundant Pi-hole/Unbound and a couple for camera surveillance feeds and a Pi 5 for Home Assistant which does have whatever the latest OS Lite is. As for the VLAN package install, I used this command on all of them with no issue: sudo apt install vlan
      I found some tutorials online when searching RPi and VLAN setup. You might just be able to search the command above and find a tutorial. You have to add a file and edit an existing one but it wasn't too bad even for me. I am not a Linux person at all. LOL Hope that helps.

    • @Kehf27
      @Kehf27 Před 2 měsíci +1

      @@URackADisciprinethank you
      I found some tutorials
      I’ll try this evening