You are not logged in.

#1 2020-06-22 15:16:36

solstice
Member
Registered: 2006-10-27
Posts: 207
Website

mac spoofing with udev does not work anymore

I used to use mac spoofing (for my usb ethernet device that I use at more than one latptop) with udev following method described in the wiki: https://wiki.archlinux.org/index.php/MA … temd-udevd

This does not work anymore and hte mac stays the same (harcoded one)

Even with NetworkManager stopped, it is the same. So I suspect a systemd update broke the thing. I can't say which one because I did not use that USB Ethernet dongle for some times...

Anyone knows how to work around the bug ? or may the thing work again ?

Is it a systemd bug ? Should I fill one ?

Last edited by solstice (2020-06-22 15:18:11)

Offline

#2 2020-06-22 15:24:43

seth
Member
Registered: 2012-09-03
Posts: 15,372

Re: mac spoofing with udev does not work anymore

Can you spoof it by hand?
(Ie. just calling "ip link set dev $name address YY:YY:YY:YY:YY:YY")

Offline

#3 2020-06-22 22:12:55

solstice
Member
Registered: 2006-10-27
Posts: 207
Website

Re: mac spoofing with udev does not work anymore

yes.

I tried to use the feature of network-manager i.e. cloned-mac-address and assigned-mac-address (not sure which one to use ?) and that did not work either. But my config might be wrong there

As a side, this is still working on archlinux-arm with where the kernel is a little older (currently 5.4.45) but same systemd. I use systemd-networkd on arch-arm but not on x86_86 though

Offline

#4 2020-06-23 05:13:08

seth
Member
Registered: 2012-09-03
Posts: 15,372

Re: mac spoofing with udev does not work anymore

I'd add some ";echo foo > /tmp/bar" to the udev rule to see whether it's triggered during the boot.
If it does, something probably resets the MAC - maybe the kernel driver crashes? (Check the journal)

If it's not and the MAC still matches, either the rule is skipped or there's a bug in udev.
=> Try to trigger it, https://wiki.archlinux.org/index.php/Ud … ing_events

You could install the LTS kernel to see whether that actually has an impact.

Offline

Board footer

Powered by FluxBB