KEA / ISC DHCP per host gateway [SOLVED]

March 8, 2024, 18:06

generalkenobi_2

Im using a Pi to run a Dhcp server because I dont want my roku TVs updating on their own, they have no means by which to statically assign an ip and my router / current gateway doesnt allow granular enough firewall controls to allow me to block traffic to a particular domain. This led me to search for a means to control the dhcp to change the gateway for just those matching the specified mac addresses / oui prefix to that of my linux firewall which supports iptables, more than enough to block specific hosts.... What software do you suggest how should I go about it?

k9t33n

i know pihole allows you to do it but im not sure if its the best option for you

oops.se

The solution is to do a reservation, example
host rokuTV {
  option routers 192.168.51.8;
  hardware ethernet 00:1F:6A:21:71:3F;
  fixed-address 192.168.51.99;
}

oops.se

You could also give the Roku a option for DNS
  option domain-name-servers 1.2.3.4;

generalkenobi_2

Oh you can specify that in the reservation?

generalkenobi_2

Thats amazing.

generalkenobi_2

I didnt see that in the examples in the documents

generalkenobi_2

This is with kea?

oops.se

KEA idk, ICS yes

oops.se

Haven't used KEA

oops.se

LOL I haven't seen KEA, I have worked with DHCP for > 30 years and havent heard of KEA, thanks for widening my knowledge

generalkenobi_2

Its basically isc 2.0

generalkenobi_2

As far as their website makes it seem

generalkenobi_2

how do i mark this as solved?

k9t33n

I will lock it for you

k9t33n

we don't usually do this but I will do it here because why not