Hi folks,
I discovered, that macchanger does not change my mac-adresses at every boot, like the installation promised.
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-address.html
Of course, I could do so.
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?
Or did I miss something else, why macchanger is not working any more, something I have overseen during the years, I am uusing Debian?
It would be nice, if someone else more experienced could have a look at this and maybe verify or deny, that this is a bug.
Thanks for reading this.
Best regards
Hans
So, tried again.
The param in /etc/default/macchanger is set to "=true"
# before bringing up any network interface, run macchanger. Careful, this is
# not guaranteed to prevent leaking your real MAC address before the new one
# gets assigned!
#
ENABLE_ON_POST_UP_DOWN=true
# by default, macchanger runs on all network interfaces but loopback (lo). If
# you only want it to run on specific network interfaces, set them here:
#
#ENABLE_INTERFACES="wlan0"
Hoqwever, it looks, somewhere the IFACE variable is wrong set. But it looks like, this is not set by macchanger.
I searched through all configs below /etc, but could not find any.
This is the log output of macchanger:
IFACE = --all
/usr/bin/macchanger: unrecognized option '--all'
GNU MAC Changer
Usage: macchanger [options] device
-h, --help Print this help
-V, --version Print version and exit
-s, --show Print the MAC address and exit
-e, --ending Don't change the vendor bytes
-a, --another Set random vendor MAC of the same kind
-A Set random vendor MAC of any kind
-p, --permanent Reset to original, permanent hardware MAC
-r, --random Set fully random MAC
-l, --list[=keyword] Print known vendors
-b, --bia Pretend to be a burned-in-address
-m, --mac=XX:XX:XX:XX:XX:XX
--mac XX:XX:XX:XX:XX:XX Set the MAC XX:XX:XX:XX:XX:XX
Report bugs to https://github.com/alobbs/macchanger/issues
IFACE = lo
ignoring loopback
Hope this helps.
Best
Hans
Hi David,
> I don't know what you searched for.
>
I searched for all files below /etc of a string "IFACE", then looked at something like "IFACE=all" or "IFACE=--all" or similar.
>
v
> What does your /etc/network/interfaces (and subdirectories) contain?
>
Only this:
auto lo wlp5s0 enp0s10
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
Everything else is commented out, as network-manager recommends this.
However, there are other configs below from other packages (these are clamav, ethtool, mountnfs, openvpn, postfix and wpasupplicant). These are in the original state and were never touched by me. But I can not exclude, these might interfere with macchanger.
> A workaround for your problem might be to set IFACE appropriately
> in /etc/default/macchanger.
Yes, that is a good idea, I will do so.
>
> Cheers,
> David.
Thanks and best regards
Hans