Skip to content

Commit

Permalink
added mac randomization
Browse files Browse the repository at this point in the history
  • Loading branch information
solidc0re authored Sep 8, 2023
1 parent 2c24e2d commit 0b5b9b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions solidcore-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,21 @@ fi
conf_msg "Firewalld updated so only outgoing connections are permitted"


# === MAC RANDOMIZATION ===

cat > /etc/NetworkManager/conf.d/00-solidcore.conf << EOF
[device]
wifi.scan-rand-mac-address=yes
[connection]
wifi.cloned-mac-address=random
ethernet.cloned-mac-address=random
EOF

# Restart NetworkManager
systemctl restart NetworkManager


# === HTTPS REPO CHECK ===

# Define an array of patterns to search for
Expand Down
1 change: 1 addition & 0 deletions solidcore-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ if [[ "$uninstall_response" =~ ^[Yy]$ ]]; then

files_to_delete=(
"/etc/modprobe.d/solidcore-blacklist.conf"
"/etc/NetworkManager/conf.d/00-solidcore.conf"
"/etc/profile.d/solidcore_umask.sh"
"/etc/solidcore/solidcore-firstboot.sh"
"/etc/solidcore/solidcore-secondboot.sh"
Expand Down

0 comments on commit 0b5b9b2

Please sign in to comment.