DD-WRT possibilities cutting internetconnection?

I would like to be able to cut off my internet connection for certain Mac-addresses, using openhab. (Teenage stimulation system).
I have a dd-wrt-router and I see there is a dd-wrt-binding. But this only switches on/off wifi, and for all users. Does anybody know another way to do this?

There is no ‘out of the box’ feature/tool that I am aware of for DD-WRT.

First thing that comes to mind is to use a script to setup an SSH connection and execute iptables commands to enable/disable certain MAC addresses:

sudo  iptables -I INPUT 1 -i <NIC> -p tcp -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP

and to remove it again:

sudo iptables -D INPUT 1 -i <NIC> -p tcp -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP
1 Like