-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listen only on interface eth0 setting do not work #2009
Comments
Hello, Pi-hole v5.6 FTL v5.11 Web Interface v5.8 I believe I am dealing with the same issue, I updated and rebooted my machine yesterday to only be met with: Which is true if you investigate: However, those ports and addresses are virtbr0, not ens3: Further to here: When I have this box clearly ticked (and always have) setupVars.conf shows: So libvirt is running dnsmasq on bridge interface (correctly so) and FTL refuses to start because of it.... I have not experienced this in the past, so it must be a new(ish) issue. Killing libvirt dnsmasq fixed it for now, but I don't consider that a solution. Start DNS server via Pihole web interface and it looks to have stolen every interface.
|
Two questions:
|
Only other file is 06-rfc6761.conf
|
Ah, sorry, I see this was a misunderstanding. Indeed, when setting to listen only on interface What you want can be achieved when you add the config line
I think both views to the problem are justified, maybe we have to clarify on the web interface? |
Ok, this makes sense. The web interface should probably refer to it as "respond from" rather than "listen" if that's the case. It should also be made clear that PiHole is incompatible with libvirt too. Libvirt default is a virtual network adapter running NAT and dnsmasq as seen in my above post. If binding to * is not going to change then those two applications can't be run on the same machine. |
Not being a native speaker, I'm always thankful for such suggestions. I will also add a reference to our documentation: https://docs.pi-hole.net/ftldns/interfaces/#technical-details |
…simply "Interface settings") to address issue #2009 Signed-off-by: DL6ER <[email protected]>
Ok so this option should be renamed as it is nowhere close to "Listen on" which is "industry standard" meaning one thing and not anything else: process binds to specified interface and that's it. Btw, I think it would be nice to have option to bind to specified interface despite possibility it will go off and on. In systems where there are multiple interfaces and services that would be helpful. Now it need to fiddle with listen ports on them which make everything more complex and confusing :) |
That is still confusing to me, because the option Bind only to interface enp2s0 makes it sound like the issue we had earlier. If you are binding wild card then perhaps the term binding should be done away with all together, because it becomes more of an access list or filtering system rather than a binding system. Options like:
Make more sense to me, but that's because I am a networking simpleton and not a developer I guess. I am not a developer so I appreciate everything anyways. |
Yes, this is an altogether fourth, new option that implements exactly what were talking about here: The other options avoid the terms "bind" and "listen". |
Oh! In that case it makes perfect sense! Great work. |
* Change wording in the "Interface Listening Behavior" box (renamed to simply "Interface settings") to address issue #2009 Signed-off-by: DL6ER <[email protected]> * Clarify interface listening behavior. Add fourth (new) option it actually bind to an interface. Signed-off-by: DL6ER <[email protected]> * Improve .no-danger-area and .danger-area CSS Signed-off-by: DL6ER <[email protected]>
This should be fixed with |
Versions
Pi-hole version is v5.5 (Latest: v5.5)
AdminLTE version is v5.7 (Latest: v5.7)
FTL version is v5.10.2 (Latest: v5.10.2)
Platform
Expected behavior
Setting "Listen only on interface eth0" should listen on eth0 interface
Actual behavior / bug
DNS listen on all interfaces in the system
Steps to reproduce
Set "Listen only on interface eth0" in admin/settings (web interface), check on system:
netstat -plan | grep 53
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 13284/pihole-FTL
tcp6 0 0 :::53 :::* LISTEN 13284/pihole-FTL
udp 0 0 0.0.0.0:53 0.0.0.0:* 13284/pihole-FTL
udp6 0 0 :::53 :::* 13284/pihole-FTL
The text was updated successfully, but these errors were encountered: