From 5a95aa2d44a797770f84aae1f210492283d16cd6 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 5 Jun 2023 23:06:15 -0700 Subject: [PATCH] MAC address randomization Signed-off-by: Tommy --- Ubuntu-22.04-Desktop.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index 9e20c3b..dc9a6c5 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -58,3 +58,15 @@ apt purge -y gnome-calculator #Install packages that I use apt install -y gnome-console + +#Randomize MAC address +sudo bash -c 'cat > /etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF' +[device] +wifi.scan-rand-mac-address=yes +[connection] +wifi.cloned-mac-address=random +ethernet.cloned-mac-address=random +connection.stable-id=${CONNECTION}/${BOOT} +EOF + +sudo systemctl restart NetworkManager