{{Header}} {{#seo: |description=MAC Address Spoofing and Tracking Threats |image=MACaddress2131.jpg }}
obfsproxy
bridge or tunneling traffic through [[Tunnels/Connecting_to_SSH_before_Tor|SSH]] or a [[Tunnels/Connecting_to_a_VPN_before_Tor|VPN]] before connecting to the Tor network.
Depending on the threat model, changing the MAC address and using Tor may prevent revisiting the public network. If reuse is needed, the user must choose between keeping the same MAC address and Tor entry guards or generating new ones.
If the network administrator is suspected of logging MAC addresses, changing the MAC may arouse suspicion. Conversely, if the network is sufficiently public and individual observation is unlikely, it may be safe to use a new MAC address each time -- one that features a popular vendor ID and a random second part.
For further discussion on this complex topic, see [[Dev/MAC]].
= Changing MAC Addresses =
== Kicksecure ==
TODO: Please help test and improve these instructions.
{{Box|text=
'''1.''' Edit the network interfaces file.
* Users: Edit ''/etc/network/interfaces''
'''2.''' Install macchanger.
In a terminal, run:
{{CodeSelect|code=
su
}}
{{CodeSelect|code=
apt update && apt install macchanger
}}
'''3.''' Change the MAC address.
{{mbox
| type = notice
| image = [[File:Ambox_notice.png|40px|alt=Info]]
| text = The following steps will manually change the MAC address for the device. An example is provided for a wireless device (wlan0
). Replace wlan0
with the appropriate device name, such as an Ethernet device (eth0
).
}}
{{CodeSelect|code=
su
}}
{{CodeSelect|code=
ifconfig wlan0 down
}}
{{CodeSelect|code=
macchanger -a wlan0
}}
{{CodeSelect|code=
ifconfig wlan0 up
}}
If the instructions in Step 1+ did not work, the following steps might work without macchanger. Replace wlan0
with the appropriate device.
{{CodeSelect|code=
su
}}
{{CodeSelect|code=
ifconfig wlan0 down
}}
{{CodeSelect|code=
ifconfig wlan0 hw ether 00:AA:BB:CC:DD:EE
}}
{{CodeSelect|code=
ifconfig wlan0 up
}}
Alternatively, use iproute2 commands to change the MAC address.
{{CodeSelect|code=
ip link set down wlan0
}}
{{CodeSelect|code=
ip link set wlan0 address 00:AA:BB:CC:DD:EE
}}
{{CodeSelect|code=
ip link set up wlan0
}}
'''4.''' Complete the MAC address change.
Below iface eth0 inet dhcp
, add:
{{CodeSelect|code=
hwaddress ether 00:00....
}}
'''5.''' ''Optional:'' Automatically randomize the MAC address on boot.
If desired, add:
{{CodeSelect|code=
pre-up macchanger -e eth0
}}
'''6.''' Modify network interface settings.
To prevent new network interfaces from being brought up automatically, comment out the following line:
{{CodeSelect|code=
auto eth0
}}
Then, manually bring up the interface with:
{{CodeSelect|code=
sudo ifup eth0
}}
}}
== Qubes Hosts ==
{{mbox
| type = notice
| image = [[File:Ambox_notice.png|40px|alt=Info]]
| text = Qubes OS does not currently "anonymize" or spoof the MAC address automatically in all cases.
}}
Qubes users can manually change MAC addresses in the NetVM by following either the Network Manager or macchanger guides. [https://github.com/QubesOS/qubes-issues/issues/938 MAC Address Randomization capability for Wi-Fi] has been implemented.
[https://github.com/QubesOS/qubes-core-agent-linux/pull/297 Network: Enable MAC randomization for Wi-Fi connections by default] was implemented.
{{quotation
|quote=This is currently applied by Debian and Fedora templates only.
|context=https://github.com/QubesOS/qubes-issues/issues/938#issuecomment-1221605861
}}
{{quotation
|quote=Ethernet MAC randomization by default was denied.
|context=https://github.com/QubesOS/qubes-issues/issues/938#issuecomment-1300587911
}}
{{quotation
|quote=Consequently, users wanting Ethernet MAC randomization will need to modify their templates manually, including in all newly downloaded templates after OEL deprecation.
|context=https://github.com/QubesOS/qubes-issues/issues/938#issuecomment-1300587911
}}
Refer to the following Qubes documentation and related support items for further information and advice:
* [https://github.com/Qubes-Community/Contents/blob/master/docs/privacy/anonymizing-your-mac-address.md Qubes Documentation: Anonymizing Your MAC Address]
* [https://groups.google.com/g/qubes-users/c/gUPK-YqkC3E/m/WsarnjrddrsJ Qubes-Users Forum: Instructions for Installing Macchanger Needed]
* [https://github.com/QubesOS/qubes-issues/issues/2361 Explore Local Network Privacy Solutions Beyond MAC Address Randomization]
= MAC Address Leak Testing =
[[Undocumented]].
= Sources =
See footnotes.
* https://tails.boum.org/contribute/design/MAC_address/
* https://gitlab.tails.boum.org/tails/tails/-/issues/5421
* https://gitlab.tails.boum.org/tails/blueprints/-/wikis/macchanger/
* Worth reading! Thanks to Tails!
* [[Dev/MAC]]
= References =
{{reflist|close=1}}
= License =
{{License_Amnesia|{{FULLPAGENAME}}}}
{{Footer}}
[[Category:Documentation]]