2

I want to define in my Cisco switch a whitelist of allowed MAC, but MAC spoofing could allow any host to connect. How can I prevent MAC spoofing?

2
  • What marco said. Many embedded systems don't even have a MAC address at all. They have to spoof.
    – phemmer
    Oct 22, 2013 at 14:00
  • Best you can hope for is having the switch lock down port/MAC pairs when it sees them for the first time, but that's a terrible idea for a lot of reasons. Oct 22, 2013 at 14:33

3 Answers 3

10

You don't prevent MAC spoofing, since it's entirely client-side. This is the reason that no one that really cares about security is using MAC whitelisting or blacklisting.

If you care about controlling what devices connect to your network, you should be using 802.1x with device certificates issued by your own internal CA that you control, or with some form on NAC like Cisco ISE or Microsoft NAP.

1
  • Indeed. security by futzing with MAC addresses is at best a minor inconvenience to anyone with even slight competence, and these days only a slight speedbump to newbie hackers who have heard of Google before.
    – Rob Moir
    Oct 22, 2013 at 14:57
3

You cannot prevent MAC spoofing. The problem you're trying to solve is authentication. And the MAC address is simply not the right way to provide authentication since it can be spoofed very easily. There are even legit reasons to spoof a MAC address.

If you want to restrict which computers can connect, you have to use better methods than relying on the MAC address, preferably methods that levereage some sort of encryption.

1
  • Would Kerberos and LDAP be an appropriate authentication solution in this case? (I'm assuming Linux.)
    – MountainX
    Feb 2, 2018 at 6:30
-1

Can't you somehow prevent it via switchport port-security?

http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/20ewa/configuration/guide/port_sec.html

You're not going to prevent an host to spoof its mac, but its spoofed traffic won't pass the access port.


4
  • 1
    You misunderstand - port-security limits the MAC address(es) that can talk over a port, but it has no way of knowing whether a device has spoofed that address or not.
    – Dan
    Oct 22, 2013 at 15:49
  • You're right. But if MAC is spoofed, is not the one registered on that port and then it's traffic is "locked". Oct 22, 2013 at 19:10
  • So? We know that and the OP knows that - but port security does nothing to prevent MAC spoofing and, indeed, can be trivially bypassed using it.
    – Dan
    Oct 22, 2013 at 21:12
  • Mmh...now i got it! Sorry i really misunderstood at the beginning. Oct 23, 2013 at 14:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .