On Sun 24 Apr 2022 at 15:23:55 (+0200), Hans wrote: > Am Sonntag, 24. April 2022, 15:00:21 CEST schrieb Reco: > > 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.
So what are the contents of /etc/default/macchanger (after all, putting ENABLE_ON_POST_UP_DOWN=YES would be interpreted as the default, ENABLE_ON_POST_UP_DOWN=false), and what's getting logged in /var/log/macchanger.log? It might be worth checking when macchanger is attempting to make its change and see how this compares with when systemd is changing the name of the relevant interface. > > 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. BTW, looking at the package, the last entry in /usr/share/doc/macchanger/changelog.gz is dated 2004-05-10 and the last in /usr/share/doc/macchanger/changelog.Debian.gz 17 Jun 2018. As you're running systemd, any reason you're avoiding using its own method? Cheers, David.