the other thing that you could do, seeing as that the dhcpd.conf idea is only HALF of what you'd have to do, I just realised that, you'd have to do something with iptables as well to deny IPs that are static on the client.
Code: Select all
# iptables -P INPUT DROP <-- default action to drop on INPUT
# iptables -A INPUT -i eth0 -j ACCEPT <-- accept incoming connections from internet (assuming that you are NATing)
# iptables -A INPUT -i eth1 -m mac --mac-source <valid mac goes here> -j ACCEPT
granted, you'll have to do that every time that you are adding a new machine.
I am doing this at home, so, I simplified it an made a little thing that you just have to enter the MAC address for
Code: Select all
#!/bin/bash
# MAC Address Filter
echo -e "Enter Client MAC Address: \c"
read MAC
iptables -A INPUT -i eth0 -m mac --mac-source $MAC -j ACCEPT
it just basically adds the clent MAC that you add