This can be done in a clumsy way by changing one file on the wireless gateway box that the user is connecting to.
Adding this line to /etc/init.d/proxy.sh prevents a MAC address from accessing the gateway. Obviously change the MAC below for the user’s MAC:
iptables -A INPUT -m mac --mac-source 00:00:00:00:00:00 -j DROP
Quick note - Make sure you put your rule after this bit:
# # Clearing any existing rules and setting default policy # iptables -P INPUT ACCEPT iptables -F INPUT iptables -P OUTPUT ACCEPT iptables -F OUTPUT iptables -P FORWARD DROP iptables -F FORWARD iptables -t nat -F
Otherwise it’ll be wiped!
Restart the wireless gateway box
reboot
and all should be fine...
More investigation is being undertaken to provide a more permanent solution.
Key search words - ban, mac, wifidog, address