You are not logged in.
Hello all. I cant seem to get macchanger to work at boot. It works fine is I disable wifi via network manager and the turn it back on but wont chnage mac at boot.
Did this until I realized im using network manager
/etc/systemd/system/macspoof@wlp3s0.service
/etc/systemd/system/macspoof@.service
[Unit]
Description=macchanger on %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
ExecStart=/usr/bin/macchanger -r %I
Type=oneshot
[Install]
WantedBy=multi-user.target
This did not work I assume because Im using NetworkManager so I tried this:
/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf
mac_addr=1
preassoc_mac_addr=1
gas_rand_mac_addr=1
and still not working. I use a vpn so I would like to stay with NetworkManager. Looking for clues instead of an answer at this point to help me learn. Any suggestions?
thank you
Last edited by bradw (2021-12-09 23:43:47)
Offline
This is how I fixed it for any new folks to arch.
# Configuration file for NetworkManager.
# See "man 5 NetworkManager.conf" for details.
[device-mac-randomization]
# "yes" is already the default for scanning
wifi.scan-rand-mac-address=yes
[connection-mac-randomization]
ethernet.cloned-mac-address=random
wifi.cloned-mac-address=random
for the file /etc/NetworkManager/NetworkManager.conf
Offline