~norayr


#595 randomized mac address 4 months ago

Comment by ~norayr on ~mil/sxmo-tickets

Sicelo, thank you.

so i have changed the configuration:

pine64-pinephone:~$ cd /etc/NetworkManager/
conf.d/              dnsmasq-shared.d/    system-connections/
dispatcher.d/        dnsmasq.d/
pine64-pinephone:~$ cd /etc/NetworkManager/conf.d/
pine64-pinephone:/etc/NetworkManager/conf.d$ cat 00-sxmo.conf 
[main]
plugins+=ifupdown

[ifupdown]
managed=true

[logging]
level=INFO

[device-mac-randomization]
wifi.scan-rand-mac-address=yes

[keyfile]
unmanaged-devices=interface-name:p2p0

changed 'no' to 'yes'.

and after reboot it worked. then i restarted network manager, and i saw

pine64-pinephone:~$ sudo /etc/init.d/networkmanager restart
[sudo] password for user: 
 * Stopping tor ...                                                       [ ok ]
 * Stopping chronyd ...                                                   [ ok ]
Current MAC:   f6:4c:ef:56:a4:8a (unknown)
Permanent MAC: 02:ba:6d:a8:0b:79 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Operation not permitted
 * Stopping networkmanager ...                                            [ ok ]
Current MAC:   16:16:d6:67:25:9e (unknown)
Permanent MAC: 02:ba:6d:a8:0b:79 (unknown)
New MAC:       46:94:3c:3a:54:63 (unknown)
 * Starting networkmanager ... 

ifconfig wlan0 still shows that old hwaddr:

$ ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr F6:4C:EF:56:A4:8A

and when i am doing arm i can see from my machine:

 $ arp
Address                  HWtype  HWaddress           Flags Mask            Iface
pinephone.lan            ether   f6:4c:ef:56:a4:8a   C                     wlan0

this all was done from ssh session.

but then i stopped networkmanager from the 'st' on the device. used

macchanger -r wlan0

as root.

started networkmanager.

and it got the same ip as my openwrt router should give by that mac, and ifconfig still shows the same mac, and arp from my machine too.

so i don't understand what is happening.

#595 randomized mac address 4 months ago

Comment by ~norayr on ~mil/sxmo-tickets

i believe it is already done on system level. i have opened sxmo ticket because sxmo has its own network connection tool. and it uses network manager, at least on pmos. so since pmos is using nm, and nm has randomization i think sxmo shoudl use it too.

#595 randomized mac address 5 months ago

Comment by ~norayr on ~mil/sxmo-tickets

i guess networkmanager has randomization already? and that can be used since pmos already uses nm?

#595 randomized mac address 7 months ago

Ticket created by ~norayr on ~mil/sxmo-tickets

i am not sure i am reaching out right way, but i would like to ask for this feature: mac address randomization.