Hello !
Actually it should be possible to filter out a PC on mac address without doing any "ugly and unauthorized things" with the firewall arrangement.
If one looks in the SME server wiki under Firewall:
http://wiki.contribs.org/FirewallThere is a rubric: Block incoming IP address
This should be possible to give a small "adjustment", so it will filter out on MAC adresses in stead of source ip's:
Custom templates
Block incoming MAC address
I want to block All traffic from some mac-addresses to my server.
Create a custom template and list the mac's
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
pico -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
/sbin/iptables -A INPUT -m mac --mac-source 00:0F:EA:91:04:08 -j DROP
/sbin/iptables -A INPUT -m mac --mac-source 00:0F:EA:91:04:09 -j DROP
expand and restart
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
/etc/init.d/masq restart
Exept for the Wiki I also used this web page as a reference.
http://www.cyberciti.biz/tips/iptables-mac-address-filtering.htmlI can not test it just now. Could you please leave a comment if it should work or not work ?