From b104925e6923678dbe43e7d1e838fb6ec3c414e3 Mon Sep 17 00:00:00 2001 From: Mi Klo Date: Sun, 27 Jun 2021 09:47:47 +0000 Subject: [PATCH] wifi mac random config --- mx-linux/30-randomize-mac-address.conf | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 mx-linux/30-randomize-mac-address.conf diff --git a/mx-linux/30-randomize-mac-address.conf b/mx-linux/30-randomize-mac-address.conf new file mode 100644 index 0000000..1b2dec2 --- /dev/null +++ b/mx-linux/30-randomize-mac-address.conf @@ -0,0 +1,30 @@ + +# /etc/NetworkManager/conf.d/30-randomize-mac-address.conf + +# REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above) + +# Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/ + +# This randomize your MAC address for *new* connections + +# Be sure to change your existing (saved) connections in +# /etc/NetworkManager/system-connections/* + +# NOTE: To support captive-portals that rely on a consistent mac address, +# use `cloned-mac-address=stable` in /etc/NetworkManager/system-connections/[network name] + +[device-mac-randomization] +# "yes" is already the default for scanning +wifi.scan-rand-mac-address=yes + +[connection-mac-randomization] +ethernet.cloned-mac-address=stable +wifi.cloned-mac-address=random + +# The options are: +# +# - permanent: use the hardware MAC +# - 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. +# \ No newline at end of file