Nowadays, whether you are on the sofa at home or in a coffee shop outside, as long as you turn on your laptop and connect to Wi-Fi, you can stay connected with the outside world through the Internet. But most of today's Wi-Fi hotspots can track your device through the unique MAC address corresponding to each network card. Here’s how to avoid being tracked. Introduction to NetworkManager NetworkManager consists of a background service that manages the system's network connections and reports their status over D-BUS (a free software project that provides a simple way for applications to communicate with each other. It was developed as part of the freedesktoporg project.) and a client program that allows users to manage network connections. Improvements and new features in the latest version of NetworkManager The new version of NetworkManager supports more network devices. Starting from 0.8.1, ModemManager support for mobile broadband devices such as GSM, UMTS and CDMA cards has been added. There are also new features using ModemManager, such as signal strength display and the ability to select 2G/3G mode. You can also turn off roaming to avoid extra connection charges; Configuring NetworkManager To use random MAC addresses for all Wi-Fi connections by default, create the file /etc/NetworkManager/conf.d/00-macrandomize.conf: [device] wifi.scan-rand-mac-address=yes [connection] wifi.cloned-mac-address=stable ethernet.cloned-mac-address=stable connection.stable-id=${CONNECTION}/${BOOT} Then restart NetworkManager: In the above configuration file, by setting the value of cloned-mac-address to stable, the same MAC address is generated each time NetworkManager activates the connection, but a different MAC address is used when connecting. If you want to obtain a random MAC address each time you activate a connection, you need to set the value of cloned-mac-address to random. Set it to stable to obtain the same IP address from DHCP, and also let the Wi-Fi captive portal remember your login status based on the MAC address. If set to random, you will need to re-authenticate (or click "I agree") every time you connect. This random mode is required when using airport Wi-Fi. Detailed instructions for configuring a specific connection from the terminal using nmcli can be found in this NetworkManager blog post. Use the ip link command to view the current MAC address. The MAC address will be displayed after the word ether. $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000 link/ether 52:54:00:5f:d5:4e brd ff:ff:ff:ff:ff:ff 3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 52:54:00:03:23:59 brd ff:ff:ff:ff:ff:ff When not to randomize MAC addresses In some cases it does need to be traceable. For example, in a home network, you may need to configure the router to assign consistent IP addresses to computers for port forwarding; for another example, your employer may need to provide Wi-Fi services based on MAC addresses, in which case tracking is required. To change a specific Wi-Fi connection, use nmcli to view the NetworkManager connection and display the current settings: $ nmcli c | grep wifi Amtrak_WiFi 5f4b9f75-9e41-47f8-8bac-25dae779cd87 wifi -- StaplesHotspot de57940c-32c2-468b-8f96-0a3b9a9b0a5e wifi -- MyHome e8c79829-1848-4563-8e44-466e14a3223d wifi wlp1s0 ... $ nmcli c show 5f4b9f75-9e41-47f8-8bac-25dae779cd87 | grep cloned 802-11-wireless.cloned-mac-address: -- $ nmcli c show e8c79829-1848-4563-8e44-466e14a3223d | grep cloned 802-11-wireless.cloned-mac-address: stable This example uses a completely random MAC address at Amtrak (using the default configuration) and a permanent MAC address at MyHome (using the stable configuration). The permanent MAC address is assigned to the network interface when the hardware is manufactured. Network administrators can view the manufacturer ID of the device based on the permanent MAC address. Change the configuration and reconnect the active interface: $ nmcli c modify 5f4b9f75-9e41-47f8-8bac-25dae779cd87 802-11-wireless.cloned-mac-address random $ nmcli c modify e8c79829-1848-4563-8e44-466e14a3223d 802-11-wireless.cloned-mac-address permanent $ nmcli c down e8c79829-1848-4563-8e44-466e14a3223d $ nmcli c up e8c79829-1848-4563-8e44-466e14a3223d $ ip link ... You can also install When you're walking on the road, you need to be aware of your surroundings and be alert to possible dangers. Likewise, be mindful of your own traceability when using public Internet resources. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Solution to the problem that MySQL service cannot be stopped or deleted under Windows
>>: jQuery implements clicking left and right buttons to switch pictures
<br />Tips for making web table frames. ----...
Table of contents 1. Basic knowledge: 2. DHCP ser...
Since its launch in 2009, flex has been supported...
1 System Installation Steps OS Version:1804 Image...
1. Grid layout (grid): It divides the web page in...
Table of contents What is JSONP JSONP Principle J...
This article mainly introduces the implementation...
I believe everyone has used JD. There is a very c...
Table of contents 1. Check whether the docker env...
Grid is a two-dimensional grid layout system. Wit...
What is MIME TYPE? 1. First, we need to understand...
I am using the Ubuntu 16.04 system here. Installa...
You know that without it, the browser will use qui...
MySQL query by year, month, week, day group 1. Qu...
If you are a software developer, you must be fami...