You are not logged in.
I am using systemd-networkd. Here's the contents of my 00-default.link file, taken from https://wiki.archlinux.org/title/MAC_address_spoofing:
[Match]
MACAddress=10:3d:xx:xx:xx:xx <- changed
[Link]
MACAddressPolicy=random
NamePolicy=kernel database onboard slot path
Verification that systemd-networkd is running:
# systemctl status systemd-networkd
systemd-networkd.service - Network Configuration
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor prese>
Active: active (running) since Sat 2022-04-09 15:17:30 MDT; 6min ago
I use iwd to manage the wireless adapter, and enabled randomization per https://iwd.wiki.kernel.org/addressrandomization:
$ cat /etc/iwd/main.conf
[General]
UseDefaultInterface=true
AddressRandomization=network
AlwaysRandomizeAddress=true
[Service]
ExecStartPre=/usr/bin/sleep 2
[Network]
NameResolvingService=systemd
When I enabled this, it changed the MAC address once, but subsequent boots/reboots have not had any change. I've tried one or the other (systemd and iwd) randomization, and both together, with no actual every-boot randomization.
I've done my best to read the manual and must be missing something. Thanks in advance!
Last edited by xanderlord (2022-04-09 21:31:41)
Offline
You used "AlwaysRandomizeAddress=true" in wrong config file, it's suppose to be used in [Settings] section in iwd network file (/var/lib/iwd/) for each network and in the main config you should have in section [General] "AddressRandomization=once" and every link file should have in [Link] section "MACAddressPolicy=random"
Last edited by Arisa (2022-04-20 20:13:54)
Offline