diy:change-mac
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
diy:change-mac [2024/06/06 03:06] – [How To Change Your MAC Address] Humphrey Boa-Gart | diy:change-mac [2024/08/06 05:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{wst> | ||
- | |||
====== How To Change Your MAC Address ====== | ====== How To Change Your MAC Address ====== | ||
Line 7: | Line 5: | ||
On networks (such as your home network, or the wifi network at Starbucks) the MAC address is typically used by the network to identify and track individual machines. This means that your machine can be tracked not only every time it logs in to the same network, but it can be tracked across other networks as well. You can hinder this by changing your MAC address, or configuring it to use a **random MAC**. | On networks (such as your home network, or the wifi network at Starbucks) the MAC address is typically used by the network to identify and track individual machines. This means that your machine can be tracked not only every time it logs in to the same network, but it can be tracked across other networks as well. You can hinder this by changing your MAC address, or configuring it to use a **random MAC**. | ||
- | Changing | + | There are more than just privacy benefits to changing |
- | MAC addresses are typically burned into the firmware of the network controller from the factory. In the past, this sometimes made them very hard to change, but this is less of a problem with modern operating systems. Scroll down for instructions for your particular system. | + | MAC addresses are typically burned into the firmware of the network controller from the factory. In the past, this sometimes made them very hard to change, but this is less of a problem with modern operating systems. |
+ | |||
+ | Scroll down for instructions for your particular system. | ||
+ | |||
+ | ===== Linux/ | ||
+ | |||
+ | ==== Manually, with ifconfig ==== | ||
+ | |||
+ | **ifconfig** (short for " | ||
+ | |||
+ | Run '' | ||
+ | |||
+ | $ ifconfig | ||
+ | |||
+ | There is a high chance it will be something like **wlan0**, but it can be anything. If you want, make note of the current MAC address under the '' | ||
+ | |||
+ | $ ifconfig wlan0 | grep ether | ||
+ | |||
+ | And it will output the current address, like '' | ||
+ | |||
+ | Set the value to any MAC address you want, like so: | ||
+ | |||
+ | $ sudo ifconfig wlan0 ether 00: | ||
+ | |||
+ | Use grep again to verify the change went through: | ||
+ | |||
+ | $ ifconfig wlan0 | grep ether | ||
+ | |||
+ | And it should output '' | ||
+ | |||
+ | Note that this method **is not** persistent. Reboot to reset. | ||
+ | |||
+ | ==== Manual MAC Generation ==== | ||
+ | |||
+ | If you need help coming up with a random MAC, you can generate a string to use with this command: | ||
+ | |||
+ | $ openssl rand -hex 6 | sed ' | ||
===== Linux Instructions ===== | ===== Linux Instructions ===== | ||
+ | |||
+ | ==== Automatically, | ||
+ | |||
+ | Most of you using Linux will likely have **NetworkManager** installed already. To set-and-forget your machine to automatically generate & provide a **random MAC address** every time you connect to a network, save the following file to ''/ | ||
+ | |||
+ | <file conf / | ||
+ | ######################################################### | ||
+ | ## DROP-IN CONFIGURATION FILE FOR NETWORKMANAGER: | ||
+ | ## AUTOMATIC MAC RANDOMIZATION | ||
+ | ## REQUISITIONED FROM THE ANONYMOUS MILITARY INSTITUTE ## | ||
+ | ## HTTPS:// | ||
+ | ######################################################### | ||
+ | |||
+ | [device-mac-randomization] | ||
+ | # " | ||
+ | wifi.scan-rand-mac-address=yes | ||
+ | |||
+ | [connection-mac-randomization] | ||
+ | # Randomize MAC for every ethernet connection. | ||
+ | ethernet.cloned-mac-address=random | ||
+ | # Generate a random MAC for each WiFi connection. | ||
+ | wifi.cloned-mac-address=random | ||
+ | </ | ||
+ | |||
+ | Then reboot, or reset NetworkManager: | ||
+ | |||
+ | $ sudo service NetworkManager restart | ||
+ | |||
+ | ==== Automatically, | ||
+ | |||
+ | If you are using **iwd** and its built-in network configuration **without** NetworkManager, | ||
+ | |||
+ | [General] | ||
+ | AddressRandomization=once | ||
+ | AddressRandomizationRange=full | ||
+ | |||
+ | ==== Manually, with GNU MAC Changer ==== | ||
+ | |||
+ | Before NetworkManager had flawless MAC randomization built in, an extremely popular Linux utility was **GNU MAC Changer**. You can find it at [[github> | ||
+ | |||
===== Windows Instructions ===== | ===== Windows Instructions ===== | ||
- | ===== Mac Instructions | + | ==== Manually, with PowerShell |
+ | |||
+ | - Open the **Command Prompt** or [[tools: | ||
+ | - Use the '' | ||
+ | - Identify the network adapter for which you want to change the MAC address. | ||
+ | - To change the MAC address, use this command: '' | ||
+ | - Replace ''< | ||
+ | - Press **Enter** to execute the command. | ||
+ | - Restart your computer for the changes to take effect. | ||
===== Android Instructions ===== | ===== Android Instructions ===== | ||
- | {{tag> | + | [{{ : |
+ | |||
+ | Changing your MAC address on Android is an ordeal which traditionally has involved rooting your phone. This isn't so much a problem anymore, as starting with Android 10, MAC address randomization is enabled by default. (You can double-check this if you hit the gear icon for your current wifi network, and look at the **Privacy** setting.) | ||
+ | |||
+ | However, these randomized MAC addresses are // | ||
+ | |||
+ | To set-and-forget this option: | ||
+ | |||
+ | - In **Settings**, | ||
+ | - If **Developer options** is not available, then you must enable developer access first. | ||
+ | - Under **Settings**, | ||
+ | - Find the setting **" | ||
+ | |||
+ | //More info: [[https:// | ||
+ | |||
+ | {{tag> |
diy/change-mac.1717643199.txt.gz · Last modified: (external edit)
Find this page online at: https://bestpoint.institute/diy/change-mac
Find this page online at: https://bestpoint.institute/diy/change-mac