aceberg / WatchYourLAN

Lightweight network IP scanner. Can be used to notify about new hosts and monitor host online/offline history
https://hub.docker.com/r/aceberg/watchyourlan
MIT License
3.84k stars 119 forks source link

Feature Request: Option to remove randomized MAC address #45

Open CoronaExtra opened 1 year ago

CoronaExtra commented 1 year ago

Would be nice to have a option to remove/exclude devices with randomized MAC address

jamesmyatt commented 1 year ago

How would WatchYourLAN know which devices are using randomized MAC addresses?

CoronaExtra commented 1 year ago

The second character in a MAC address is always either 2, 6, A, or E if its a randomized address.

jamesmyatt commented 1 year ago

Thanks. I didn't know that. Does that correspond to the "Local bit" =1 and "Global bit" = 0 in section 2.1 of the RFC? i.e. bitand(first byte, 3) == 2 https://www.rfc-editor.org/rfc/rfc7042#page-6

jamesmyatt commented 1 year ago

FWIW, I don't know if you want to remove randomized addresses since you still want to know that they're connect to the LAN, and devices might connect with a consistent but randomized MAC. However, they should certainly be marked as randomized.

abate commented 6 months ago

it would be great to be able to mark these devices. Or even have two sections, one with the known online devices and one with the unknown online devices ( same for the offline ). basically this can help to understand - visually - which devices are new ( or use randomized mac addrs ) .