Package: network-manager
Version: 1.4.2-2
Severity: important

The first issue is listed in the subject: NetworkManager is randomising
the mac address of a WiFi interface listed in /etc/network/interfaces.
At least I think it's NetworkManager because if I run
"systemctl disable network-manager" it doesn't happen.  Note that while
mac address randomisation is only meant to be happening while searching
for an access point, in this case since NetworkManager isn't managing
the interface it is still have it's randomised value when the
connection is made.

I thought it might be because Debian is now renaming the interface from
wlan0 to wlp2s0 and there was a race condition (NetworkManager was
randomising while it was named wlan0), so I added wlan0 to
/etc/network/interfaces too, but it had no effect.

The second issue is to work around the problem for now I added
appropriate options to /etc/NetworkManager/NetworkManager.conf, but they
also had no effect(!)

Severity is important because I'm out of work arounds so I have to
disable network-manager entirely while at work - they like to know my
mac address.

Contents of /etc/NetworkManager/NetworkManager.conf:
  [main]
  plugins=ifupdown,keyfile

  [ifupdown]
  managed=false

  [connection]
  wifi.cloned-mac-address=permanent
  wifi.mac-address-randomization=never


Contents of /etc/network/interfaces:
  # This file describes the network interfaces available on your system
  # and how to activate them. For more information, see interfaces(5).

  source /etc/network/interfaces.d/*

  # The loopback network interface
  auto lo
  iface lo inet loopback

  # The primary network interface
  allow-hotplug enx60e32720865d
  iface enx60e32720865d inet dhcp
  #     post-up         ifup $([ ."$VERBOSITY" != ."1" ] || echo -v) br-$IFACE
  #     pre-down        ifdown $([ ."$VERBOSITY" != ."1" ] || echo -v) br-$IFACE

  iface br-lan inet manual
          pre-up                ip link show | egrep --silent "^[0-9]*: 
enx60e32720865d(@[^ ]*)?: .*UP[,>]" || ifup  $([ ."$VERBOSITY" != ."1" ] || 
echo -v) enx60e32720865d
          pre-up                ! ip link show | egrep --silent "^[0-9]*: 
tap0(@[^ ]*)?: " || { ip link set down dev tap0 && ip tuntap del dev tap0 mode 
tap; }
          pre-up                ip tuntap add dev tap0 mode tap user rstuart
          pre-up                ! ip link show | egrep --silent "^[0-9]*: 
tap1(@[^ ]*)?: " || { ip link set down dev tap1 && ip tuntap del dev tap1 mode 
tap; }
          pre-up                ip tuntap add dev tap1 mode tap user rstuart
          pre-up                ! ip link show | egrep --silent "^[0-9]*: 
veth0-host(@[^ ]*)?: " || { ip link set down dev veth0-host && ip link del dev 
veth0-host; }
          pre-up                ip link add name veth0-host type veth peer name 
veth0-client
          pre-up                ! ip link show | egrep --silent "^[0-9]*: 
veth1-host(@[^ ]*)?: " || { ip link set down dev veth1-host && ip link del dev 
veth1-host; }
          pre-up                ip link add name veth1-host type veth peer name 
veth1-client
          pre-up                /usr/local/lubemobile/sbin/br-attach.sh 
enx60e32720865d "${IFACE}"
          pre-up                ip link set master ${IFACE} dev tap0
          pre-up                ip link set master ${IFACE} dev tap1
          pre-up                ip link set master ${IFACE} dev veth0-host
          pre-up                ip link set master ${IFACE} dev veth1-host
          post-up               ip link set up dev tap0
          post-up               ip link set up dev tap1
          post-up               ip link set up dev veth0-host
          post-up               ip link set up dev veth0-client
          post-up               ip link set up dev veth1-host
          post-up               ip link set up dev veth1-client
          pre-down      /usr/local/lubemobile/sbin/br-attach.sh enx60e32720865d
          pre-down      ip link set down dev tap0
          pre-down      ip link set down dev tap1
          pre-down      ip link set down dev veth0-host
          pre-down      ip link set down dev veth0-client
          pre-down      ip link set down dev veth1-host
          pre-down      ip link set down dev veth1-client
          post-down     ip link set down dev ${IFACE} && ip link del dev 
${IFACE}
          post-down     ip link set down dev veth1-host && ip link del dev 
veth1-host || :
          post-down     ip link set down dev veth0-host && ip link del dev 
veth0-host || :
          post-down     ip link set down dev tap1 && ip tuntap del dev tap1 
mode tap || :
          post-down     ip link set down dev tap0 && ip tuntap del dev tap0 
mode tap || :

  allow-hotplug wlp2s0
  iface wlp2s0 inet dhcp
          pre-up                systemctl stop wpa_supplicant || :
          pre-up                rfkill unblock wifi
          post-down     systemctl start wpa_supplicant || :
          wpa-driver    nl80211,wext,wired 
          wpa-conf      /etc/wpa_supplicant/wpa_supplicant.conf

  iface wlan0 inet manual


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser                3.115
ii  dbus                   1.10.12-1
ii  init-system-helpers    1.46
ii  libaudit1              1:2.6.7-1
ii  libbluetooth3          5.43-1
ii  libc6                  2.24-5
ii  libglib2.0-0           2.50.2-1
ii  libgnutls30            3.5.6-4
ii  libgudev-1.0-0         230-3
ii  libmm-glib0            1.6.4-1
ii  libndp0                1.6-1
ii  libnewt0.52            0.52.19-1
ii  libnl-3-200            3.2.27-1
ii  libnm0                 1.4.2-2
ii  libpam-systemd         232-3
ii  libpolkit-agent-1-0    0.105-17
ii  libpolkit-gobject-1-0  0.105-17
ii  libreadline7           7.0-1
ii  libselinux1            2.6-3
ii  libsoup2.4-1           2.56.0-1
ii  libsystemd0            232-3
ii  libteamdctl0           1.26-1
ii  libuuid1               2.29-1
ii  lsb-base               9.20161101
ii  policykit-1            0.105-17
ii  udev                   232-3
ii  wpasupplicant          2.5-2+v2.4-3+b1

Versions of packages network-manager recommends:
ii  crda             3.13-1+b1
ii  dnsmasq-base     2.76-4
ii  iptables         1.6.0-4
ii  iputils-arping   3:20161105-1
ii  isc-dhcp-client  4.3.5~b1-1
ii  modemmanager     1.6.4-1
ii  ppp              2.4.7-1+4

Versions of packages network-manager suggests:
pn  libteam-utils  <none>

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed [not included]

-- no debconf information

Reply via email to