NatsuMacTool is a simple script written in Bash to automatically set a random MAC address for the primary network interface upon system startup in Linux.
- Automatically sets a random MAC address for the primary network interface upon system startup.
- Enhances privacy and security by periodically changing the MAC address.
- Easy to use and configure.
- Bash
- NetworkManager (nmcli command)
- Clone this repository or download the
NatsuMacTool.shscript. - Make the script executable by running:
chmod +x NatsuMacTool.sh - Run the script with sudo privileges:
sudo ./NatsuMacTool.sh - (Optional) Make the script run automatically on system startup by following these steps:
- Open the
rc.localfile for editing with sudo privileges:sudo nano /etc/rc.local - Add the following line before the line
exit 0:Replace/bin/bash /path/to/NatsuMacTool.sh/path/to/NatsuMacTool.shwith the full path to your script file. - Save the changes and exit the editor.
- Make sure that
rc.localis executable by running:sudo chmod +x /etc/rc.local - Reboot your system to apply the changes:
sudo reboot
- Open the
This project is licensed under the MIT License - see the LICENSE file for details.
