-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Why use same https port for DNS and Web Portal #7424
Comments
The premise of DoH (DNS-over-HTTPS) is that it wraps the DNS lookup as regular HTTPS requests, making it more difficult for interception and forgery by attackers. Whereas DoT and regular unencrypted DNS can be identified by the target (e.g. port), DoH is impossible to differentiate from the outside. Separation of DoH from non-DoH HTTPS defeats one of the key benefits of it. If you wanted that, you may as well just use DoT (DNS-over-TLS). You can configure the HTTPS port for your admin interface and DoH, as well as the DNS-over-TLS port, in 'Settings -> Encryption Settings': As you can see, the |
You can use a reverse proxy like Nginx, Caddy, or Traefik to separate the domain for DoH and the Dashboard. For example, you can use the domain dns.example.com only to handle /dns-query (DNS over HTTPS) and block access to the dashboard on dns.example.com or redirect to error 404. Use the domain dns-dashboard.example.com for dashboard access. |
If you expand this outside of HTTPS, and also look towards TLS and QUIC (and H3?), the same problems are realised without the (IMO flawed) argument of "well ahhckshully …you're directing queries to a URL rather than a domain with a port suffix". |
Any nginx conf example? |
@vdias Maybe you can try this: Configuration for dns.example.com
Configuration for dns-dashboard.example.com
I’m not sure whether this is the correct configuration or not. I got this config from ChatGPT. It might need to be checked again to ensure it meets the requirements. |
One last question... if adgurad already have the certificate part... do i need to offload it again to nginx... |
It seems so. Just try to match the certificate with the one in AdGuardHome. |
This is completely no sense... nginx do not work... Even something as simple as this do not work... nginx.conf
AdGuardHome.yaml
|
And as I attempted to point out, the web interface would still be accessible via QUIC, so it's mostly a moot point I think. |
it a product design limitation... completely no sense... admin should use one port |
Sharing ports isn't ultimately the issue I don't think. The issue is resolution capabilities and web administration interface listening address/interface not being able to be decoupled, and/or the lack of IP/CIDR based access control for the web interface. Being able to disable/enable the web interface entirely would also be quite nice. |
@vdias Try searching for issues related with filter here https://github.com/AdguardTeam/AdGuardHome/issues. I previously used Nginx for something similar, but I have forgotten the details. Now I use Caddy for this, and it works well for me. This is my config with caddy. AdGuardHome.yaml
Caddyfile
|
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to request a feature or enhancement and not ask a question
The problem
Whys use same port for DNS service and Administration portal.
How can we filter public VPS access to the administration portal? There is no sense of having this like this.
Proposed solution
Different port for different services
Alternatives considered and additional information
No response
The text was updated successfully, but these errors were encountered: