0

I want to store the MAC address of the client to a file before redirecting to some IP or port. I'm doing the redirection using iptables. Is it possible to get the MAC of the client and store it in a file?

dda
  • 6,030
  • 2
  • 25
  • 34
user1216216
  • 525
  • 2
  • 7
  • 13

1 Answers1

0

Yes, it's possible to get the MAC address of the client and store it in a file. You need to change your network driver to perform this when it parses packet from the client. The MAC address belongs to Layer 2 of the of the OSI network model, thus it can be extracted before passing it to Layer 3, which handles the IP.

SomeWittyUsername
  • 18,025
  • 3
  • 42
  • 85