Score:0

Issue with bridge br0 DNS when I change the nameserver address 20.04

pk flag

So basically I have an issue when I change my bridge br0 namerserver from 192.168.50.1 which points to a pfSense router, to my PiHole ad blocker. All clients get dhcp from the PiHole and are working as expected via DNS from the Pihole.

The PiHole is hosted on a qemu/kvm on a 24/7 Computer.

kvm Host: Kubuntu 20.04 Virt Manager 2.2.1

netplan- 
network:
  version: 2
  #renderer: NetworkManager
  renderer: networkd

  ethernets:
    enp4s0:
      dhcp4: false
      dhcp6: false 
  bridges: 
    br0:
      interfaces: [enp4s0]
      addresses: [192.168.50.70/24]
      gateway4: 192.168.50.1
      nameservers:
        addresses: [192.168.50.1]
      parameters:
        stp: false
        forward-delay: 0
      dhcp4: no
      dhcp6: no

This works fine ( not using the PiHole), but if I change:

nameservers:
        addresses: [192.168.50.10] 

which is the address of the Pihole DNS breaks

I did run a pcap, and I will not see any packets for dns as I would when I point to the GW.

KVM and bridging is new to me, so I must be missing a understanding of the configuration some how, and I hope to get a clue. Reading many of the posts similar to my issue did not seem to have the same issue where it is just the Host that was not working.

One clue that I see is when i use the command: route

when configured for the PiHole:

default         _gateway        0.0.0.0         UG    0      0        0 br0

and when configured for the pfsense:

default         pfsense.local        0.0.0.0         UG    0      0        0 br0

other then that, all the other routes are the same, and I can ping the PiHole.

It is like when I change the nameserver IP DNS just breaks, nothing leave the br0. Same if I were to use an IP like 8.8.8.8. I move it back to the GW of the pfSense, works.

Thoughts?

Much appreciated and best regards,

JC

Terrance avatar
id flag
If you go into the virtual machine of the pi-hole, does `nslookup www.google.com` work?
Lost_Ones avatar
pk flag
Hello Terrance, it will resolve. I tested from a couple of the VMs as the PiHole is set to use 9.9.9.9, and others will use the PiHole. All resolve except for the Host.
Terrance avatar
id flag
I don't use my pi-hole as my DHCP server as I use my DD-WRT router instead, but I am wondering if you still need to enable Conditional Forwarding on your pi-hole (under Settings -> DNS) to the router itself so that it knows still to forward the requests from the systems to the router to still get outbound traffic. I really don't know why the traffic doesn't seem to be forwarding through your pi-hole as that is normally configured by default when you setup the Pi-Hole software.
Lost_Ones avatar
pk flag
Hello again, Good points and I did try several options with listening interface and the conditional forwarding, but no joy. I do recall that PiHole doesn't list to see more then one hop. I would think that if I was sending a DNS request, but it was not seen by the PiHole, the pcap would have shown at least the request, correct? Seems that only when I have the GW as the namerserver, it works. If I have no entry at all, it is broke, If I have 8.8.8.8 or PiHole, broke. Have the GW happy. I appreciate your suggestions as these are good. Regards,
Terrance avatar
id flag
Make sure on your VM itself that it has no firewalls, if applicable, usually they don't though. You may also want to look through the Raspberry Pi site and see if anyone else might have experienced the same issue as you: https://raspberrypi.stackexchange.com/search?q=pi-hole
Lost_Ones avatar
pk flag
Thanks for the suggestion, I have the same type of question in the PiHole Forum. Being that this is a PiHole in a qemu/kvm not sure the Pi forums would help. I really think this is a issue with the bridge / configuration. I will continue to look at the KVM forums as well as there is lots of bridging used for the virtual machines.
Terrance avatar
id flag
Bridging might be a good place to start on that one. I know recently someone was asking about KVM and bridging. https://askubuntu.com/questions/1390603/how-can-i-share-the-hosts-network-interface-with-virtual-machines-so-that-they I only use VirtualBox so I wouldn't be much help with the KVM side, even though I used it once before.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.