K
K
kizijo2018-04-08 00:34:00
linux
kizijo, 2018-04-08 00:34:00

How to change WiFi MAC address on Debian 9?

What I have already tried:
1) macchanger
2) ifconfig eth0 hw ether XX:XX:XX:YY:YY:YY
3) /etc/network/interfaces
Always the same: it turns out to change the MAC address only once, after connecting to WiFi, and if you reconnect, everything is reset to the usual, default address.
The goal is to always have a different MAC address. Both during scanning of networks and during connections to them.
What could be the problem? Could this have something to do with the hardware itself (all this happens on a laptop)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-04-08
@kizijo

https://wiki.archlinux.org/index.php/MAC_address_s...

/etc/systemd/network/00-default.link
[Match]
MACAddress=original MAC

[Link]
MACAddress=spoofed MAC
NamePolicy=kernel database onboard slot path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question