DHCP and multiple interfaces
Currently, we only allow users to select one interface on which AGH serves DHCP. That model doesn't quite work when you have e.g. a router that also has some machines connected to it over WAN.
We could either allow multiple DHCP setting sets or maybe add a new pseudointerface value like “Serve on all interfaces”.
Either way, this may complicate some other parts of the logic, for example the selection of the gateway IP address and IP ranges.
@ameshkov, please tell us what you think.
Our DHCP server is supposed to be really simple and covering cases like that seems to be out of scope, at least at this point.
@ameshkov, we already have a couple of issues where people mention that their WLAN+WAN setups don't work correctly. See, for example, #3366, #3480, and possibly #3462. The previous versions sometimes work, because they implemented the RFCs a bit incorrectly on some OSes. We will try to restore the old “incorrect” behaviour in v0.107.0, but this problem will remain an issue for us unless we either solve this on AGH's level or come up with several sets of workarounds for every supported OS (e.g. virtual interfaces and such).
We'll probably return to this question after v0.107.0 is out and the refactoring of v0.108.0 will look good enough.
I was about to request this. I have a router erlite with WAN+2LAN, and each LAN needs a dhcp server.
EDIT: The http bind_host should be multiple, like the dns bind_hosts
Would also like to see this, I have a setup with 6 internal VLANs and I would like to get AGH to serve DHCP across all of them...
+1 on this feature.
Please refrain from comments like “+1”. A :+1: emoji on the top comment is enough. Thanks.
Has there been any progress on this issue yet? I'm also in need to serve DHCP leases to multiple vlans/subnets
+1
I honestly don't know how requests for this feature from almost 4 years ago have still not been implemented. Does AdGuard not understand the importance of being able to handle this? Just seems to be falling on deaf ears...
hi, is this feature coming soon, is it on the roadmap?
With proliferation of "homelab"/"self hosted" setups, multi-VLAN is becoming more common, so support for multiple interfaces is something that will be issue for manny potential users.
This gets my vote too! I have an IoT VLAN and a day to day VLAN. Currently running two instances of ADGuard on each network not the best solution but it works. It would be an awesome feature to serve DHCP on multiple subnets.
Same use-case for me. One AdGuard Home server, acting as DHCP and DNS server for multiple networks.
Rather than serving DHCP on multiple interfaces, AdGuard Home could support DHCP requests forwarded from DHCP Relays. This is exactly what DHCP relay is meant for, and it simplifies the logic needed in AdGuard Home.
It could be something like having multiple DHCP setting sets as mentioned by ainar-g, and AdGuard will respond with the Default Gateway/DNS/IP Lease information based on which relay the request came from, or if the DHCP request was seen directly on the AdGuard server's interface then it responds with the default settings like today.
I'll add to this to keep this alive. I am using AdGuard as a DHCP server, and my router is a dhcp-relay. This works beautifully, now we just need multiple subnet support. Even mums and dads are vlanning their kids network these days, think guest wifi.