Hi Everyone, and thanks voor checking out this thread.
Pi-Hole works great and it's always a breeze to set-up. Now recently I've been trying to use the built-in DHCP server to take over control from the network that's currently managed by the ISP-provided modem/router combo.
In my situation I need to implement MAC-address filtering through whitelisting. I am not trying to whitelist a device from receiving the Pi-Holed, ad-filtered DNS responses but actually block devices from accessing the Internet entirely unless their MAC-address is added to the system.
The ISP modem "supports" this function but it is extremely buggy (rather call it non-functional) so I'm trying to use Pi-Hole to replace this. I went for PiHole as it uses dnsmasq to run the DNS server as well as the DHCP server, and as it is so easy to set up. I was planning on making the needed changes manually in /etc/dnsmasq.conf or /etc/dnsmasq.d/[config] needed to set it to filter MAC-addresses. I've used this source and Implementing a device white list with dnsmasq – Upon 2020. I added these arguments in /etc/dnsmasq.d/02-...[dhcp-server config file]. It is the one that is created when enabling the DHCP-server in the Pi-Hole adminpanel, so that led me to believe that would be the right one to edit. However, there was a warning in there about these settings being managed by the admin panel and making changes would be made undone if I recall correctly.
Setting up PiHole, enabling the DHCP-server and disabling the DHCP-server on the ISP modem works as advertised. Traffic ran great when I didn't make any changes to the config files and network-wide DNS was set to the Pi-Hole as advertised.
So I'm looking for an answer on two questions:
- Is it possible to make manual additional changes that aren't possible through the admin panel but are possible with the used modules, that won't be reverted back by Pi-Hole services?
- Where and what changes do I have to make to implement MAC-address filtering? Do I clone the second file and add the changes to that or only have the whitelist settings in the custom config file?
Thanks in advance!