特殊:Badtitle/NS100:AnonymizingNetworkMACAddresses
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AnonymizingNetworkMACAddresses }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/af | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Afrikaans| [[::AnonymizingNetworkMACAddresses/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ar | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|العربية| [[::AnonymizingNetworkMACAddresses/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/az | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|azərbaycanca| [[::AnonymizingNetworkMACAddresses/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/bcc | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|جهلسری بلوچی| [[::AnonymizingNetworkMACAddresses/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/bg | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|български| [[::AnonymizingNetworkMACAddresses/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/br | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|brezhoneg| [[::AnonymizingNetworkMACAddresses/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ca | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|català| [[::AnonymizingNetworkMACAddresses/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/cs | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|čeština| [[::AnonymizingNetworkMACAddresses/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/de | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Deutsch| [[::AnonymizingNetworkMACAddresses/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/el | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Ελληνικά| [[::AnonymizingNetworkMACAddresses/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/es | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|español| [[::AnonymizingNetworkMACAddresses/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/fa | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|فارسی| [[::AnonymizingNetworkMACAddresses/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/fi | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|suomi| [[::AnonymizingNetworkMACAddresses/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/fr | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|français| [[::AnonymizingNetworkMACAddresses/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/gu | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|ગુજરાતી| [[::AnonymizingNetworkMACAddresses/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/he | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|עברית| [[::AnonymizingNetworkMACAddresses/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/hu | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|magyar| [[::AnonymizingNetworkMACAddresses/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/id | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Bahasa Indonesia| [[::AnonymizingNetworkMACAddresses/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/it | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|italiano| [[::AnonymizingNetworkMACAddresses/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ja | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|日本語| [[::AnonymizingNetworkMACAddresses/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ko | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|한국어| [[::AnonymizingNetworkMACAddresses/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ksh | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Ripoarisch| [[::AnonymizingNetworkMACAddresses/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/mr | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|मराठी| [[::AnonymizingNetworkMACAddresses/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ms | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Bahasa Melayu| [[::AnonymizingNetworkMACAddresses/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/nl | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Nederlands| [[::AnonymizingNetworkMACAddresses/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/no | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|norsk| [[::AnonymizingNetworkMACAddresses/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/oc | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|occitan| [[::AnonymizingNetworkMACAddresses/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/pl | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|polski| [[::AnonymizingNetworkMACAddresses/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/pt | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|português| [[::AnonymizingNetworkMACAddresses/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ro | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|română| [[::AnonymizingNetworkMACAddresses/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/ru | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|русский| [[::AnonymizingNetworkMACAddresses/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/si | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|සිංහල| [[::AnonymizingNetworkMACAddresses/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/sq | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|shqip| [[::AnonymizingNetworkMACAddresses/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/sr | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|српски / srpski| [[::AnonymizingNetworkMACAddresses/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/sv | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|svenska| [[::AnonymizingNetworkMACAddresses/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/th | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|ไทย| [[::AnonymizingNetworkMACAddresses/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/tr | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Türkçe| [[::AnonymizingNetworkMACAddresses/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/vi | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|Tiếng Việt| [[::AnonymizingNetworkMACAddresses/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/yue | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|粵語| [[::AnonymizingNetworkMACAddresses/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/zh | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|中文| [[::AnonymizingNetworkMACAddresses/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/zh-hans | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|中文(简体)| [[::AnonymizingNetworkMACAddresses/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses | UbuntuHelp:AnonymizingNetworkMACAddresses | {{#if: | :}}AnonymizingNetworkMACAddresses}}/zh-hant | • {{#if: UbuntuHelp:AnonymizingNetworkMACAddresses|中文(繁體)| [[::AnonymizingNetworkMACAddresses/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AnonymizingNetworkMACAddresses|:AnonymizingNetworkMACAddresses|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AnonymizingNetworkMACAddresses/zh | | {{#ifexist: AnonymizingNetworkMACAddresses/zh | | {{#ifeq: {{#titleparts:AnonymizingNetworkMACAddresses|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AnonymizingNetworkMACAddresses|1|-1|}} | zh | | }}
Skill: Intermediate Complexity: Minimal Est``Time``To``Complete: 0.5 Hours
Randomized Network MAC Address
You leak information about yourself everytime you associate to a network. Your computers network hardware contains an encoded, unique and serialized hexadecimal address. The MAC address is used by routers and switches on networks to direct traffic to and from your laptop.
Randomizing the MAC address your network hardware reports affords some level of anonymity and privacy.
CAUTION!: While MAC address randomization may afford some degree of anonymity and privacy, your network traffic activity may identify you. Additionally, if you fully randomize your MAC address, you may report such bizzare hardware vendor ids as to be quite conspicuous.
Commands in this guide assume you have sudo'ed root. i.e., sudo -i after each terminal login.
Install NetworkManager
You likely have it installed already and can skip this step. To check `ls /etc/NetworkManager` which should return at least `dispatcher.d`. If you don't have it installed already, load it.
apt-get install network-manager
Install MACCHANGER
The package `macchanger` is in the `Networking (universe)`. Install it.
apt-get install macchanger
Create the Randomizer Trigger
Utilizing Network-Manager's methods to trigger events when a network interface changes state, place the `macchanger` script into `/etc/network/if-pre-up.d`.
vi /etc/network/if-pre-up.d/macchanger
Don't change $IFACE. It is a reference provided by Network``Manager for the particular activated interface.
#!/bin/sh # Radomize the mac address for the given interface /usr/bin/macchanger -e $IFACE
Interface State Change
Now everytime any managed interface is activated, as it passes through the pre-up phase, the network MAC address will be randomized under the VENDOR id.
Fully Random
If you desire a completely random MAC address change the `-e` in the `macchanger` script to `-r`. There are additional switches you may consider. `man macchanger`.
Anonymity, Privacy, Detection
CAUTION!: While MAC address randomization may afford some degree of anonymity and privacy, your network traffic activity may identify you. Additionally, if you fully randomize your MAC address, you may report such bizzare hardware vendor ids as to be quite conspicuous.
DHCP and Other Considerations
WARNING!: DHCP reservations generally rely on a MAC address to reserve a particular IP address assignment. If you randomize your MAC address you will break your reservation.
WARNING!: Any networking application or device which relies on your unique MAC address will break since randomizing it will return a different value every time the interface is activate.
Special Mix Cases with Roaming Profiles
For the times when you trust your network and need to report the actual/physical network MAC address you have the option of using Self:RoamingProfilesWithNetworkManager. You would relocate the `macchanger` script to the `if-pre-up.d` for the given profiles. So, when on the home network you could modify the `macchanger` script to use `-m XX:XX:XX:XX:XX:XX` to force the actual/constant MAC address. And, when on any other network run `macchanger` in random mode.
With roaming profiles you could still accomodate DHCP reservations or special application/hardware requirements.
Creative Commons License
Author: James B. Crocker
EMail: [email protected]
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.