Cannot configure to only respond to queries from localhost #2739
Replies: 5 comments
-
Just in case, you could configure it to drop queries from other IP addresses: settings -> DNS settings -> access settings. Other than that, looks like a golang (or maybe macOS) issue. @ainar-g have you heard anything like that? |
Beta Was this translation helpful? Give feedback.
-
Thank you. I forgot about the access settings. While testing this, I restarted AGH at one point and it correctly only responded to queries from localhost and not other network clients for about 3-4 minutes. Then it randomly started responding to external LAN clients once again. |
Beta Was this translation helpful? Give feedback.
-
@ameshkov, I haven't been able to reproduce that on my Linux machine, neither with |
Beta Was this translation helpful? Give feedback.
-
This is marked as a question, not a bug. I suppose this might be a Golang issue specific to macOS. If some of us has free time later, we could look into it. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this seems specific to the macOS version (or at least it doesn't affect Linux). I configured AdGuard Home on a raspberry pi using the same configuration and it did not exhibit this behavior. It only responded to queries from localhost and not from outside clients on the LAN. |
Beta Was this translation helpful? Give feedback.
-
Issue Details
Expected Behavior
While waiting for the DNS module to arrive in AdGuard for Mac, I decided to install AdGuard Home locally to filter and encrypt DNS while away from home. During initial setup, I selected the loopback interface for both the interface and DNS. In both cases it was indicated that the interface and DNS would be accessible only at 127.0.0.1.
I would expect AGH's interface to only be accessible from localhost and to only respond to DNS queries from localhost (127.0.0.1) since only the loopback interface was selected.
Actual Behavior
AGH responds to DNS queries from other devices on the lan even though only the loopback interface was selected during installation. The interface correctly appears to only be accessible from the local system and not from other devices.
Screenshots
Screenshot:
Additional Information
I have long used dnscrypt-proxy locally in this fashion. When configured to listen to 127.0.0.1 it only responds to queries from localhost and not from external devices from the network. Only if you configure it to listen on 0.0.0.0 or the IP address of an interface (i.e. 192.168.x.x) will it respond to queries from other devices. I expected it to be similar with AdGuard Home.
Beta Was this translation helpful? Give feedback.
All reactions