护肝片什么时候吃最好| 脸颊红是什么原因| 4t什么意思| 马拉松是什么意思| 肠道紊乱吃什么药| pcr是什么意思| 自投罗网是什么意思| 手脚心出汗是什么原因| 什么让生活更美好作文| 手热脚凉是什么原因| 菜园中有什么生肖| 波澜壮阔是什么意思| 人流挂什么科| 刺梨是什么| 脂肪瘤是什么原因引起的| xl代表什么尺码| 胃反酸什么原因| 菊粉是什么| 甘油三酯高应该注意什么| 相刑什么意思| 月经发黑是什么原因| 口腔溃疡挂什么科室| 端游什么意思| 铅中毒有什么症状| 拉痢疾吃什么药| 扁桃体发炎严重吃什么药好得快| 白癜风不能吃什么| 毕业送老师什么礼物好| 手脚冰凉吃什么药| 麻豆是什么| 一动就大汗淋漓是什么原因| 祖宗是什么意思| 荠菜长什么样子图片| 早搏是什么| 上面日下面立读什么| vivian是什么意思| 日语八嘎是什么意思| 夏天脚底出汗是什么原因| 明胶是什么| ipf是什么病| 大使是什么行政级别| 身上长红痣是什么原因| 小腹胀胀的是什么原因| 牛油果有什么营养| 小孩子长白头发是什么原因| 胆囊炎有什么症状表现| 手上起皮是什么原因| 结婚十年是什么婚| 兴渠是什么菜| 经理是什么级别| 任性什么意思| 城投公司是干什么的| 肌肤之钥是什么档次| 雄激素过高是什么意思| 姊是什么意思| 猫奴是什么意思| 腋下有味道是什么原因| 立碑有什么讲究和忌讳| 污垢是什么意思| 软坚散结是什么意思| 阴道长什么样| 血色病是什么病| 喝完酒头疼吃什么药| 农历五月的别称是什么| 白带是什么味道| 傻白甜什么意思| 阳痿早泄是什么意思| 来大姨妈能吃什么水果| 打篮球对身体有什么好处| pci是什么| 绝经三年了突然又出血了什么原因| 什么动物睡觉不闭眼| 梦到蛇预示着什么意思| 男性睾丸一边大一边小是什么原因| 鸡块炖什么好吃| 放臭屁吃什么药| 铝中毒有什么症状| 台湾以前叫什么名字| 五个月宝宝可以吃什么水果| 中人是什么意思| mdz0.2是什么药| 单从属于什么茶| 中国黄金为什么便宜| 微量元素挂什么科| 小鸡仔吃什么| 此起彼伏是什么意思| 植物神经功能紊乱吃什么药最好| 有心火是什么症状| 吃什么去湿气| 西瓜和什么相克| 蚝油是干什么用的| 汗毛长的女人代表什么| 梦见儿子小时候是什么意思| 脚心抽筋是什么原因引起的| 鹿鞭泡酒有什么功效| 脚趾抽筋是什么原因引起的| 为什么生化妊娠是好事| 痰栓是什么| 大脸适合什么发型| cos是什么意思啊| 荞麦枕头有什么好处| 女人是什么| 芈月和秦始皇什么关系| 口语化是什么意思| 农历十月初五是什么星座| 蝉什么时候出来| 吃什么对肝脏有好处能养肝| 鱼的五行属什么| 伽马射线是什么| tr是什么材质| 辩驳是什么意思| 乏是什么意思| 天体是什么意思| 处女是什么象星座| 人体自由基是什么| 硬度不够吃什么药调理| 福肖指什么生肖| 正常人吃叶酸有什么好处| 孔雀蓝是什么颜色| 二聚体是什么意思| 什么药治胃炎效果好| 白马怕青牛是什么意思| 动物的尾巴有什么用处| 九月24日是什么星座| 旁听是什么意思| 默哀是什么意思| 新疆是什么气候| 肚子胀气什么原因| maggie是什么意思| 麦芽糖是什么糖| 武汉有什么好吃的| 尿不尽挂什么科| 胃痉挛什么症状| 什么人容易得小脑萎缩| 生殖细胞是什么| 牙齿像锯齿是什么原因| 宫腔占位什么意思| ccu是什么病房| 傻瓜是什么生肖| 闺蜜什么意思| 鸟字旁与什么有关| 为什么会得炎症| 猪和什么属相不合| 肾虚吃什么补最好| 黄历是什么意思| 蛞蝓是什么| 冰箱什么牌子好又省电质量又好| 苏州五行属什么| 甲鱼跟什么炖最补| 秦始皇的佩剑叫什么剑| 暑假是什么时候| 2月25日什么星座| 什么什么不同| 后背长痘痘是什么原因引起的| 老年人口苦是什么原因| 血吸虫是什么动物| 拉肚子吃什么食物比较好| 胆固醇偏高吃什么食物可以降胆固醇| 早早孕是什么意思| 姨妈期能吃什么水果| 膀胱炎是什么症状表现| 养狗人容易得什么病| 什么时候拔牙最好| 14楼五行属什么| 百步穿杨是什么意思| 尿胆原阴性是什么意思| 日本豆腐是什么做的| 什么飞扬| 山花对什么| 常喝柠檬水有什么好处和坏处| 什么水果对胃好| 三鹿奶粉现在叫什么| 检验科是做什么的| 血脂稠吃什么食物好| 为什么晚上不能倒垃圾| 血糖低吃什么补的最快| 你什么意思| 睡觉打嗝是什么原因| 老睡不醒是什么原因| 室间隔增厚是什么意思| 女性黄体期是什么意思| 断桥是什么意思| ca是什么意思| 想吃咸的是身体缺什么| 幽门螺旋杆菌的症状是什么| 从容的反义词是什么| 梦魇是什么原因造成的| 瘢痕子宫是什么意思| 头痛到医院挂什么科| 腋毛什么时候开始生长| 机场地勤是干什么的| 宫颈轻糜是什么意思| 林冲为什么叫豹子头| 双皮奶是什么| 脾胃湿热什么症状| 毛新宇什么级别| 推介会是什么意思| 安之若素是什么意思| 茶话会是什么意思| 中午1点是什么时辰| 宝宝体检挂什么科| 仲夏是什么时候| 股东是什么意思| 画肖指什么生肖| 阴阳两虚用什么药| 脾大是什么原因造成的怎么治疗| 眉目比喻什么| ACEI是什么药| 女人腰上有痣代表什么| 茭白是什么植物| 香港说什么语言| 肝风内动是什么意思| 湿疹为什么晚上特别痒| 灵隐寺求什么最灵验| 用什么方法治牙疼| 肺挂什么科| 女性胆固醇高吃什么好| 化疗后白细胞低吃什么补得快| 舌苔白厚吃什么药| 非诚勿扰是什么意思| 心电图是什么科室| 滴虫性阴道炎用什么药好| 党的执政理念是什么| 右边偏头痛什么原因| 辣椒油用什么能洗掉| 脑瘫是什么原因引起的| 宝宝低烧是什么原因引起的| 珍惜眼前人是什么意思| 什么是春天的什么| 脚面浮肿是什么原因| 便秘吃什么有用| 眼睛视力模糊是什么原因| 黄酒是什么| louisvuitton什么牌子| 国防科技大学毕业是什么军衔| 女生真空是什么意思| 胎菊和金银花一起泡水有什么效果| 桉是什么意思| 什么各异| 糖尿病可以吃什么肉| 梦泪什么意思| 冲突是什么意思| 77年属蛇的是什么命| 晚霞是什么颜色的| 无花果和什么不能一起吃| 胃寒吃什么药最有效| 夕火念什么| 茉莉茶叶有什么功效和作用| 吃饭出虚汗是什么原因| 锤子什么意思| 眼震电图能查什么病| 缅铃是什么| 为什么会得卵巢癌| 7月5日是什么星座| 阴道痒用什么药| 遇到黄鼠狼是什么征兆| 小猫感冒吃什么药| 阅历是什么意思| 甲不开仓财物耗散是什么意思| 09属什么生肖| 八月2号是什么星座| 公安局局长什么级别| 虾吃什么食物| 胎儿停止发育是什么原因造成的| 百度

男人梦到蛇预示着什么

百度 他审理案件,发现有涉及到闺阃方面内容的,就故意牵扯,定为奸情,然后将妇女裸体行杖。

The new NetworkManager release 1.4.0 adds new features to change the current MAC address of your Ethernet or Wi-Fi card. This is also called MAC address “spoofing” or “cloning”.

His name is Václav
Václav sleeps better with NetworkManager’s MAC address randomization

Previously NetworkManager 1.2.0 added MAC address randomization for Wi-Fi, as Lubomir explains in his blog post. He also explains why you may want to do that in the first place, so I skip the introduction. Suffice to say, some consider randomizing the MAC address an important feature to protect their privacy. Only be aware that for real? privacy, more considerations come into play. The Tails distribution and Wikipedia have good reads on the subject.

1.2.0 relies on support from wpa_supplicant to configure a random MAC address. The problem is that it requires API which will only be part of the next major release 2.6 of the supplicant. Such a release does not yet exist to this date and thus virtually nobody is using this feature.

With NetworkManager 1.4.0, changing of the MAC address is done by NetworkManager itself, requiring no support from the supplicant. This allows also for more flexibility to generate “stable” addresses and the “generate-mac-address-mask”. Also, the same options are now available not only for Wi-Fi, but also Ethernet devices.

Tools like macchanger and macchiato are commonly used to change the MAC address of a device. They support flexible mechanisms to generate a random address, most of these options are now also supported by NetworkManager.

Randomization during Wi-Fi scanning

During Wi-Fi scanning, NetworkManager resets the MAC address frequently to a randomly generated address. This was already enabled by default in 1.2.0, but as said, users likely didn’t have the required support from wpa_supplicant.

This default behavior can be disabled with a global configuration option in NetworkManager.conf:

[device]
wifi.scan-rand-mac-address=no

Note that this is a per-device configuration value, because at the time of Wi-Fi scanning, no connection is yet activated. A “connection” in NetworkManager-speak is a profile, a bunch of settings.

Supported Modes

Since long, NetworkManager supports two connection properties “ethernet.cloned-mac-address” and “wifi.cloned-mac-address”. These settings take effect when activating the connection. They got extended in 1.4.0 and support the following values:

  • An explict MAC address: this was already supported before 1.4.0 and allows to spoof a specific MAC address.
  • “permanent”: use the permanent MAC address of the device. Before 1.4.0, the permanent MAC address was used if the “cloned-mac-address” property was left empty, thus it was the default.
  • “preserve”: don’t change the MAC address of the device upon activation.
  • “random”: generate a randomized value upon each connect.
  • “stable”: generate a stable, hashed MAC address.
  • NULL/unset: this is the default value which allows fallback to a globally configured default, see below. In case no global override exists, NetworkManager falls back to “permanent”, like it did before.

Update-2025-08-06: with 1.6 release and newer, the default value changed from “permanent” to “preserve” [commit],[bug].

Note that in the D-Bus API, the “cloned-mac-address” field is not a string and thus could not be extended in a backward compatible way. That is why on D-Bus there are new fields “ethernet.assigned-mac-address” and “wifi.assigned-mac-address” instead. On the other hand, in nmcli, libnm.so, and keyfile-format the properties are indeed called “cloned-mac-address”.

How to configure it?

It is likely that your favorite NetworkManager client does not expose these options in the UI. In that case, I would suggest to use nmcli to configure the per-connection settings:

$ nmcli connection show
NAME               UUID               TYPE    ??????  DEVICE
My Wi-Fi           fca8fc45-c47...    802-11-wireless --
...

$ nmcli connection show "My Wi-Fi"
...

$ nmcli connection modify "My Wi-Fi" \
        wifi.cloned-mac-address stable

$ nmcli connection up "My Wi-Fi"

$ ip link show
...

Stable MAC Address Generation

The “stable” method warrants more explanation. In a way it is similar to “random”, but instead it generates a stable, hashed value. This way every time the connection activates, the same address is generated. However, each connection generates a different address.

This is for example useful so that you get the same IP address from DHCP, which might not be the case with “random”. Or a captive-portal might remember your login-status based on the MAC address. With “random” you may be required to re-authenticate on every connect.

The “stable” mode still makes you easily recognizable when you re-connect to a previous network, but your hardware MAC address is hidden and tracking you across different networks may be harder (YMMV).

The stable address is generated by hashing a private key from /var/lib/NetworkManager/secret_key, the ifname of the device, and a stable-id. The stable-id by default is the UUID of the connection (“connection.uuid”), unless you configure the new property “connection.stable-id“. The latter allows you to have multiple connections that generate the same MAC address. Note that “connection.stable-id” property is also used when generating stable-privacy IPv6 addresses (“ipv6.addr-gen-mode”, RFC 7217).

Format of the MAC Address

The “random” and “stable” modes both generate a MAC address. By default, all 48 bits of the MAC address are scrambled except the following two bits. For one, the LSB of the first octet which must always be cleared to indicate a unicast MAC address. And then, the 2nd-LSB of the first octet is set to indicate a locally administered address — contrary to a burned-in address. This has the same effect as calling macchanger --random with respect to which bits are scrambled.

Which bits are scrambled is configurable by the per-connection properties “ethernet.generate-mac-address-mask” and “wifi.generate-mac-address-mask” [man]. During Wi-Fi scanning, the per-device property “wifi.scan-generate-mac-address-mask” is used instead [man].

The property works as follows. If the mask-setting contains one MAC address, that address is used as a mask. For example “FF:FF:FF:00:00:00” results in randomizing the lower 3 octets and use the vendor OUI of the device’s permanent MAC address. This is similar to macchanger --ending, except that NetworkManager uses the permanent MAC address of the device while macchanger preserves the OUI of the current address.

Update-2025-08-06: it doesn’t use the permanent MAC address, instead the “initial” MAC address, that is the current MAC address that was configured on the device outside of NetworkManager.

If after the initial mask a second MAC address follows, that address is used instead of the device’s permanent address. For example “FF:FF:FF:00:00:00 00:50:E4:00:00:00” sets the OUI to “00:50:E4” but randomizes the last 3 octets. Likewise, “02:00:00:00:00:00 00:00:00:00:00:00” scrambles all bits but clears the second LSB of the first octet, thus creating a burned-in address like macchanger --random --bia.

Actually, there can follow arbitrary many MAC addresses after the mask, in which case one will be chosen randomly. “02:00:00:00:00:00 00:00:00:00:00:00 02:00:00:00:00:00” will scramble all 47 bits — except the unicast bit which must be always cleared. This allows you to specify a list of OUIs.

Global Default Configuration

NetworkManager supports certain per-connection properties to fallback to a globally configured default value. By having “cloned-mac-address” or “generate-mac-address-mask” unset, it allows fallback to a value configured in NetworkManager.conf.

For example, I have a file /etc/NetworkManager/conf.d/30-mac-randomization.conf like:

[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

which sets the default fallback to random. Only for a few selected connection profiles I explicitly switch the per-connection setting to “stable”.

Note: distributions and packages are advised to install configuration snippets to /usr/lib/NetworkManager/conf.d directory instead of /etc.

What’s missing?

What feature do you miss?

One idea would be to support some special “connection.stable-id”. This would allow to implement a “change daily” feature like Windows 10 has. Allowing for a stable-id “time: <date> <time> <period>” could have the effect to start at <date>-<time> and generate a new ID each <period> time. Say, “time: 2025-08-06 6:00:00 7d” could mean to generate a new ID every Monday at 6:00 a.m. Of course, the ID only gets re-generated upon activation of a connection.

Update-2025-08-06: since 1.6, NetworkManager supports dynamic stable-ids like "${BOOT}", "${CONNECTION}", "${RANDOM}" or any combination of these. This also affects RFC7217 stable privacy IPv4 addresses [commit], [example].

Another idea would be to allow a special keyword “preserve” in “generate-mac-address-mask”. It could be used to set a value like “FF:FF:FF:00:00:00 preserve” which should have the same effect as macchanger --ending and use the current MAC address instead of the permanent one.

If you have problems, questions or suggestions, meet us on mailing list, IRC (#nm on freenode) or check our documentation and our bugtracker.

Leave a Reply

Your email address will not be published. Required fields are marked *

人为什么会胖 讨厌是什么意思 爱奇艺积分有什么用 消炎药吃多了有什么副作用 六月十六是什么星座
吃什么促进消化 循序渐进是什么意思 亚裔人是什么意思 走路脚后跟疼是什么原因 烂嘴唇是什么原因引起的
壁立千仞无欲则刚是什么意思 驱除鞑虏是什么意思 骨膜炎用什么药 入职体检70元一般检查什么 香精是什么东西
桃子什么季节成熟 参苓白术散治什么病 湿疹吃什么中药 上海话十三点是什么意思 须知是什么意思
补办身份证需要带什么tiangongnft.com 尿失禁吃什么药最好gysmod.com 6月19日是什么日子hcv9jop3ns4r.cn 瓠子和什么相克hcv8jop4ns2r.cn 脖子变粗了是什么原因hcv9jop3ns1r.cn
为什么口臭hcv8jop9ns8r.cn kgs是什么单位hcv8jop8ns1r.cn 老人吃饭老是噎着是什么原因hcv7jop9ns9r.cn 磷高有什么症状和危害hcv9jop2ns5r.cn 颈动脉强回声斑块是什么意思hcv7jop9ns0r.cn
小孩腮腺炎吃什么药hcv8jop8ns6r.cn 眼压高吃什么药adwl56.com 神昏谵语是什么意思hcv9jop4ns3r.cn 什么口红好hcv8jop1ns5r.cn 为什么老是打喷嚏hcv8jop4ns6r.cn
石骨症是什么病hcv9jop1ns0r.cn 严惩不贷是什么意思hcv8jop6ns7r.cn 心五行属性是什么hcv9jop2ns7r.cn 中国信什么教hcv8jop0ns0r.cn 什么情况挂全科门诊hcv8jop0ns9r.cn
百度