Your message dated Mon, 09 Feb 2015 02:05:08 +0100
with message-id <[email protected]>
and subject line Re: [Pkg-utopia-maintainers] Bug#771077: macchanger package
installed?
has caused the Debian Bug report #771077,
regarding changes mac address of eth0 of every disconnect
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
771077: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771077
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: network-manager
Version: 0.9.10.0-3
Severity: important
Hello!
On disconnecting from eth0 via KDE/Plasma network manager applet something
changes the MAC address of the interface. And on reconnecting is uses that
changed MAC address.
I don´t know whether it is Network Manager or Systemd or something, and while
this may be a nice privacy feature I want this to stop. On company network,
various work related networks and home network the laptop is recognized by
its MAC address and thus I want it to be persistent.
Its a disruptive change I totally did not ask for.
merkaba:~> ip link set dev eth0 address aa:bb:cc:dd:ee:ff
merkaba:~> ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
mode DEFAULT group default qlen 1000
link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff
[where aa:bb:cc:dd:ee:ff stands for original MAC address]
merkaba:~> echo Going online via applet
Going online via applet
merkaba:~> ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
mode DEFAULT group default qlen 1000
link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff
merkaba:~> echo Going offline via applet
Going offline via applet
merkaba:~> ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
mode DEFAULT group default qlen 1000
link/ether 00:0c:52:32:2f:c6 brd ff:ff:ff:ff:ff:ff
I don´t know who added
no-auto-default=aa:bb:cc:dd:ee:ff,
in /etc/NetworkManager/NetworkManager.conf as I just dpkg --force-all --purge
and reinstalled it and verified the configuration did not contain this line.
Other probably related configuration files:
merkaba:/lib/systemd> cat network/99-default.link
[Link]
NamePolicy=database onboard slot path
MACAddressPolicy=persistent
This seems to be the right setting.
I also verified that no MAC address change happens when cycling through
- killall dhclient
- ip link set eth0 down
- ip link set eth0 up
- dhclient eth0
The bug
#755202 network-manager: keeps creating and using new connection "eth0" that
does not work
may be related. I also see some "eth0" network in the applet in addition to my
"Kabel" (wired) network.
merkaba:~> cat /etc/NetworkManager/system-connections/Kabel
[ethernet]
mac-address=AA:BB:CC:DD:EE:FF
[connection]
id=Kabel
uuid=[some UUID]
type=ethernet
[ipv6]
method=ignore
[ipv4]
method=auto
dhcp-client-id=merkaba
I really have no idea on how to debug as I do not understand where to look.
Thanks,
Martin
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.18.0-rc6-tp520 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages network-manager depends on:
ii adduser 3.113+nmu3
ii dbus 1.8.12-1
ii init-system-helpers 1.22
ii isc-dhcp-client 4.3.1-5
ii libc6 2.19-13
ii libdbus-1-3 1.8.12-1
ii libdbus-glib-1-2 0.102-1
ii libgcrypt20 1.6.2-4
ii libglib2.0-0 2.42.1-1
ii libgnutls-deb0-28 3.3.8-5
ii libgudev-1.0-0 215-6
ii libmm-glib0 1.4.0-1
ii libndp0 1.4-2
ii libnewt0.52 0.52.17-1+b1
ii libnl-3-200 3.2.24-2
ii libnl-genl-3-200 3.2.24-2
ii libnl-route-3-200 3.2.24-2
ii libnm-glib4 0.9.10.0-3
ii libnm-util2 0.9.10.0-3
ii libpam-systemd 215-6
ii libpolkit-gobject-1-0 0.105-7
ii libreadline6 6.3-8+b1
ii libsoup2.4-1 2.48.0-1
ii libsystemd0 215-6
ii libteamdctl0 1.12-1
ii libuuid1 2.25.2-3
ii lsb-base 4.1+Debian13+nmu1
ii policykit-1 0.105-7
ii udev 215-6
ii wpasupplicant 2.3-1
Versions of packages network-manager recommends:
ii crda 3.13-1
ii dnsmasq-base 2.72-2
ii iptables 1.4.21-2+b1
ii modemmanager 1.4.0-1
ii ppp 2.4.6-3
Versions of packages network-manager suggests:
ii avahi-autoipd 0.6.31-4+b1
pn libteam-utils <none>
-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
no-auto-default=f0:de:f1:5b:15:44,
[ifupdown]
managed=false
-- no debconf information
--- End Message ---
--- Begin Message ---
Am 30.11.2014 um 11:34 schrieb Martin Steigerwald:
> Am Sonntag, 30. November 2014, 10:25:02 schrieb Alexander Dreweke:
>> Hi Martin,
>
> Hi Alexander,
>
>> could it be, that you have the macchanger package installed? This
>> package brings along 2 ifup/down scripts:
>
> Indeed I have:
>
> merkaba:~> apt-show-versions 2>/dev/null | grep macchanger
> macchanger:amd64/sid 1.7.0-3.1 uptodate
> macchanger:i386 not installed
>
> I don´t know why tough as nothing in my system reverse depends on it. Maybe I
> thought at some day it would be nice to have in case I want to surf privately
> somewhere.
>
>> /etc/network/if-post-down.d/macchanger
>> /etc/network/if-pre-up.d/macchanger
>>
>> These hooks change the mac address to random values. It seems, that by
>> default the post-down hook is enabled, but you can be disabled via:
>>
>> /etc/default/macchanger
>
> And post-down hook is enabled:
>
> merkaba:~> head -5 /etc/default/macchanger
> # 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_DOWN=yes
>
> I set it to "no" but the MAC address still is changed on disconnecting:
>
> - I set the MAC to the correct value
> - I go online
> - It stays that way
> - I go offline
> - I always get "b4:9e:e6:eb:77:d0" as MAC address
>
>
> That doesn´t make sense as the macchanger script really respects this setting:
>
> merkaba:~> tail -3 /var/log/macchanger.log
> disabled in /etc/default/macchanger
> disabled in /etc/default/macchanger
> disabled in /etc/default/macchanger
>
>
> I even purged the package, still to no avail.
>
> And I have no reference to that MAC address in
>
> merkaba:/etc> grep -ir "b4:9e:e6:eb:77:d0" .
> merkaba:/etc>
>
>
> Okay, this time Network Manager does it:
>
> merkaba:~> grep "reset MAC" /var/log/daemon.log | tail -3
> Nov 30 11:21:17 merkaba NetworkManager[28834]: <info> (eth0): reset MAC
> address to B4:9E:E6:EB:77:D0
> Nov 30 11:25:09 merkaba NetworkManager[28834]: <info> (eth0): reset MAC
> address to B4:9E:E6:EB:77:D0
> Nov 30 11:25:59 merkaba NetworkManager[28834]: <info> (eth0): reset MAC
> address to B4:9E:E6:EB:77:D0
>
> This seems unintuitive for me. Maybe it carries some state. Thus restarting
> Network Manager.
>
> Okay, now this does work. Even with macchanger installed and post down hook
> disabled MAC address stays stable now.
>
>
> Anyway I think the macchanger default is questionable, at least without
> telling people about it on package install. I am leaving this report open for
> consideration of this.
>
> Thank you very much for that pointer, Alex.
>
> Ciao,
>
Ok, closing the bug report as it seems there is nothing wrong on the NM
side of things.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
--- End Message ---