MAC Address filter for Ethernet shield

Hello people,

I'm trying to create a MAC Address filter for Ethernet conections with arduin (using ArduinoEthernetShield)

The mac address (source and destination are on link layer on tcp/ip stack protocol, correct?

My project is:

  • Arduino turn on as server
  • some client conect to arduino (by socket)
  • client send some data to arduino (by socket)

I need to make filter to accept conections only from some specific mac address.

I start think to implement this function on ethernet lib on low level read function.
Other think I used a sniffer and saw for all packet the source mac address and destination mac adrress are on the begin of packet in hex format.

Does anyone already tryed to do something like this?