DnsServer icon indicating copy to clipboard operation
DnsServer copied to clipboard

[Feature Request] Allow to exclude specific class from DHCP Pool

Open Sulquendi opened this issue 1 year ago • 1 comments

Hello, first thanks for your awesome work !

Explanation of this feature request : to allow Orange TV Decoder to work properly, it has to be handled by the ISP box DHCP server. It is easy to create a static DHCP record in the ISP Box, but then the Technitium DHCP service should allow to exclude the device.

In example, with isc.dhcp.server, it is possible to do this in dhcpd.conf :

1- Declare a custom class to match the mac addr of the specific device you want to exclude

class "orange" {
  # exclude orange decoder from pool! Ie. 30:24:78:8d:00:98/30:24:78:8d:00:9a
  match if substring (hardware,1,4) = 30:24:78:8d;
}

2- then in the pool config :

subnet 192.168.0.0 netmask 255.255.255.0 {
  #...
  pool {
    range 192.168.0.24 192.168.0.63;
    allow unknown-clients;
    deny members of "orange";
  }
}

Regards

Sulquendi avatar Jan 14 '24 20:01 Sulquendi

Thanks for the feature request. Will get that implemented when DHCP changes are planned.

ShreyasZare avatar Jan 15 '24 09:01 ShreyasZare