From Funtoo
Jump to: navigation, search



We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

MAC changer is a program that will change an interfaces mac address.

# emerge net-analyzer/macchanger



to change an address you must completely disconnect from all networks on the interface

Show Vendor Codes

# macchanger -l

Generate a Random Address

# macchanger -r wlan0

Pretend To Be A Burned In Address

# macchanger -rb wlan0

Manually Assign an Address

# macchanger -m 11:22:33:44:55:66 wlan0

Revert All Changes

# macchanger -p wlan0

NetworkManager Autostart

The e flag will keep the vendor code, and b will pretend to be burned in resulting in random macs every interface up.

/etc/NetworkManager/dispatcher.d/pre-up.d/ (bash source code) - auto change mac address
macchanger -eb $1

The script must be executable:

# chmod +x /etc/NetworkManager/dispatcher.d/pre-up.d/

Restart NetworkManager:

# rc-service NetworkManager restart