Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcus Haebler haebler

View GitHub Profile
@haebler
haebler / 75-mac-spoof.rules
Last active Sep 3, 2018
udev rule for setting MAC address of one of those dm9601 USB 2.0 ethernet adapters. Thanks to btidey on the Raspberry Pi forums for figuring it out - see https://www.raspberrypi.org/forums/viewtopic.php?t=217941
View 75-mac-spoof.rules
# replace XX:XX:XX with a suitable set of octets - left vendor OUI part of MAC untouched for tracability in your network
ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="00:e0:4c:53:44:58", RUN+="/sbin/ip link set dev %k address 00:e0:4c:XX:XX:XX"
You can’t perform that action at this time.