Le 24/04/2022 à 16:15, Andrew M.A. Cater a écrit :
On Sun, Apr 24, 2022 at 03:23:55PM +0200, Hans wrote:
Am Sonntag, 24. April 2022, 15:00:21 CEST schrieb Reco:
Hi Reco,

        Hi.

On Sun, Apr 24, 2022 at 02:34:44PM +0200, Hans wrote:
I discovered, that macchanger does not change my mac-adresses at every
boot, like the installation promised.

Because that's disabled by default.

Nope. The installer expicity is asking "if I want macchanger change the mac
whenever the device is activated". Yes/No, I set "Yes". Check dpkg-reconfigure
macchanger.




So I looked around and I found some explanations in an Ubuntu forum.
This is tellingm, I need to add a systemd.service, so that this is
executed at every boot:
https://www.linuxuprising.com/2018/05/how-to-permanently-change-mac-addres
s.html

Of course, I could do so.

This link only shows us that if the only thing one has is systemd then
everything will look as a systemd unit. An interesting approach to the
unit template though.

Yes, that is the question: Should it be added so by default?


However, if this is changed, because Debian is using systemd now, and
macchanger is not adapted to this changes of Debian, should I file a
bugreport?

Of course not. What you should probably do is to enable changing MACs in
/etc/default/macchanger. And probably look at
/etc/macchanger/ifupdown.sh for the implementation details.


I rechecked, and everything is set as YES.

Doing the same thing with systemd would take a drastically different
approach, involving creation of .link files.

I know, and this should be done by the maintainer, if necessary and wanted.

Reco

Best

Hans



Hello Hans,

I would suggest filing a bug at normal/wishlist priority against macchanger
and pointing out that you need this to work with systemd.

There are example files for writing the necessary systemd scripts: if
one of those can be readily adapted, then it should be a relatively
simple task.

With every good wish, as ever,

Andy Cater


Maybe not relevant for you, but if you are using network-manager you can tell it to randomize your MAC address for wifi, scanning and connection:

NetworkManager.conf:Wifi.scan-rand-mac-address=
NetworkManager.conf:wifi.mac-address-randomization=

I don't know if the same option is available for ethernet.

Reply via email to