Skip to content

ShobanChiddarth/randomised_mac_linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Randomised MAC for Linux

Project created to enhance privacy of desktop linux by randomising the MAC address everytime the system is booted.

Requirements

  1. macchanger

    sudo apt install macchanger
  2. systemd (included in most of the popular distros)

    This automation tool was written with systemd as target. If you do not have systemd, you can use crontab.

Installation

  1. Clone this repo and cd into it

    git clone https://github.com/ShobanChiddarth/randomised_mac_linux.git
    cd randomised_mac_linux
  2. Make the script as executable

    chmod +x ./randomise_MACs.sh
  3. Copy the script into /usr/bin

    sudo cp randomise_MACs.sh /usr/bin/
  4. Copy the systemd service file into /etc/systemd/system

    sudo cp randomise_MACs.service /etc/systemd/system/
  5. Reload systemd

    sudo systemctl daemon-reload
  6. Enable the service to run on boot

    sudo systemctl enable randomise_MACs
  7. Note down the MAC addresses of alive network interfaces

    sudo ifconfig
  8. Start the systemd service right now to check if the MAC addresses are actually being changed

    sudo systemctl start randomise_MACs
  9. Run ifconfig again and compare the output with the previous run

    sudo ifconfig
  10. If it is different, it means the script is working and your MAC addresses will change on each boot.

About

Tool for automating MAC address randomisation in Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages