Filter internet access by mac

I’ve installed a router using OpenSUSE to give access to the internet for a classroom.

Now I’d like to filter the access to that router (or the internet) using the Mac-adresses of the pc’s in that classroom. Unfortunately I have no idea how to do that?

Any ideas?

I suppose that I have to alter something in the firewall?

Be aware, I’m a noob at Linux… :\

Why not make sure those PCs receive addresses in a certain range by DHCP and then filter by IP address?

Though filter by MAC is possible using iptables rules, it’s the match by MAC address rule, which you would have to write as a custom rule for SuSEfirewall2.

There’s a very comprehensive iptables tutorial here.

http://iptables-tutorial.frozentux.net/iptables-tutorial.html

Any decent router will have an option to filter access by MAC, you should just look at your configuration options. Usually, to access your router’s configuration, you type something like http://192.168.2.0 or maybe http://192.168.2.1 into your internet browser. Of course, you should google for the exact address to use for your specific model.