Just FYI, you can add more IPs to an interface, if this helps.
I think you're saying you need a unique proxy instance for all your "unidentified devices". You're using the OpenWrt as a DoH proxy for "unidentified devices" to use DoH and appear by hostname in your NEXTDNS online panel.
While I'm not sure if it's necessary (or sensible), you can assign multiple IPs to e.g. LAN, and then bind as you wish. The unidentified clients can then be directed to that DNS proxy per the configuration you assigned to that IP and DoH connection.
Albeit, this would work if I understood your current use case correctly (and assuming you've properly configured the OpenWrt as a dumb AP, which your discussion leads me to believe otherwise).
Edit:
This also requires an advanced DHCP server that could e.g. assign the various DNS [proxy] server IPs to the correct clients. OpenWrt is capable of doing that, not sure about this "upstream" router.
BTW, if it is upstream, a router should not have the same addressing on 2 different interfaces, unless specially configured (hence maybe why your relay discussion is confusing).
I don’t think it will, as the proxys are getting combined for some reason
that sounds like what I need, the upstream router could just be ignored or even disabled
do you mean the 192.168.1.1 and 192.168.1.254?
if so there different devices, 192.168.1.1 is the upstream main router, and 192.168.1.254 is the openwrt router
Can you either tell me more about the “advanced DHCP server that could e.g. assign the various DNS [proxy] server IPs to the correct clients.“ or send me a link to information
You would create tags for the MAC of each device, assigning the IP which corresponds to the correct instance. There's also examples in the forum you can search for. A common use case is for parents to assign different kid-friendly DNS servers to specific devices. In your case, you describe each IP being a different DNS proxy.
You are the person making the configurations. Also, I've never heard of someone doing this.
It's definitely possible, I'm just not sure if it will accomplish what you desire.
That's already understood. I think you misunderstood my concern. Those IPs are the same subnet, but you were discussing "relaying". This implies you may have a misconfiguration.
But you assure us that the device is properly configured.
DNSMASQ can assign a hostname to a MAC address using the --dhcp-host directive. N.B. (1) - DNSMASQ must assign DHCP addresses for the interface (although the thread infers DHCP is active elsewhere) N.B. (2) - DNS query logging should first be enabled (--log-queries) to harvest the MAC addresses of the IoT devices (to assign each a hostname from DNSMASQ
N.B. (*) - add DNSMASQ directives in /etc/dnsmasq.conf
The https-dns-proxy default option, force_dns adds a firewall rule that redirects DNS queries to the interface on which DNSMASQ is configured to listen for DNS requests. This HDP capability reroutes DNS requests from devices that have an internally defined DNS address.
You can use multiple DNSMasq instances e.g. one per interface or use tagging to set different clients to different DNSMasq instances.
Each DNSMasq instances can use a different DOH resolver via https-dns-proxy
No.
DNSMASQ offers the --server directive (which HDP dynamically adds its instance listeners, typically 127.0.0.1:505n, to the DNSMASQ configuration) which accepts only IP addresses (not URIs).
That HDP is a configuration and instance launch of the https-dns-proxy executable, once its initialisation script (/etc/init.d/https-dns-proxy) has been processed by procd, influencing the URI of the DNS request, the configured DoH server, is not possible.
This is true but considering the additional resources required, probably not advisable. Added to that, HDP is currently not, IMNSHO, granular enough regarding configuration(s). It has the capability to target discrete DNSMASQ instances but has limitations within its global directives.
Or you can assign multiple IP, but again you need a DHCP server that can do tagging (or a firewall that can redirect).
Not sure why you posted the firewall. As I noted:
If you have a Dumb AP, your OpenWrt firewall isn't involved. This is why I took a part of the discussion to inquire if your device was configured as a Dumb AP.
Not sure how you came to that conclusion, but I've seen you mention it a few times. You already mentioned that these "unidentified devices" don't do DoH, hence needing a proxy. So I'm not sure what "tag the DoH URL" means.
Yes.
The Dumb AP documentation must have really changed significantly. If you're not routing traffic across interfaces (i.e., LAN to WAN), the firewall isn't generally involved.
Thats the whole point of this, If I did the DHCP tagging, the DNS would have to go to 45.XXX.XXX.XXX thats my personal IP for NextDNS, with the DOH https://dns.nextdns.io/c#####/John's%20Firefox
if you just use an IP, you only get the router IP at the NextDNS side, which is determined unidentified
Now I think about that, what would the listen address be
I would still need an interface for each device wouldn’t I, and a dnsmasq instance for each device
I am sure back when I was setting up a repeater it was used, I has wwan in the wan firewall and lan in the lan firewall relay bridged, but here we have no wan
so if you could explain how I connect/bridge each dnsmasq instance to HDP
but then wouldn’t I need to lock the client to that dnsmasq instance, the dnsmasq listen address?
thats where the DNS need to go to, along with the DOH url
Yes your correct, I clearly didn’t explain that very good, well its sort of exactly what I said but DOH is needed without it you just get the main router WAN IP
I don’t really see how that is useful, as then everything is going to the same place
that was for the tagging
I meant the dnsmasq config, each client would need a different DNS server for each instances of dnsmasq wouldn’t it or a different port at least