Advertisement
mdelatorre

NetworkManager MAC spoofing

Nov 22nd, 2017
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. NetworkManager MAC spoofing
  2. ----------------------------------------------------------------------
  3.  
  4. * Basic nmcli commands
  5.  
  6. + Show connections
  7.  
  8. $ nmcli con show
  9.  
  10. + Show network devices
  11.  
  12. $ nmcli dev status
  13.  
  14. + Bring-up interface
  15.  
  16. $ nmcli con up <profile>
  17.  
  18. + Bring-down interface
  19.  
  20. $ nmcli con down <profile>
  21.  
  22. + Show links
  23.  
  24. $ ip link show
  25.  
  26.  
  27. * Supported Modes
  28.  
  29. permanent: use the permanent MAC address of the device.
  30. preserve: don’t change the MAC address of the device upon activation.
  31. random: generate a randomized value upon each connect.
  32. stable: generate a stable, hashed MAC address.
  33. unset: this is the default value which allows
  34.  
  35. Examples:
  36.  
  37. + Change cloned mode
  38.  
  39. $ nmcli con modify <WiFi_profile> wifi.cloned-mac-address stable
  40.  
  41. $ nmcli con modify <Wired_profile> 802-3-ethernet.cloned-mac-address random
  42.  
  43. + Mask-setting to preserve OUI
  44.  
  45. $ nmcli con modify <profile> \
  46. 802-3-ethernet.genrate-mac-address-mask FF:FF:FF:00:00:00
  47.  
  48. + Mask-setting creating a burned-in address. Several OUI can follow.
  49.  
  50. $ nmcli con modify <profile> \
  51. 802-3-ethernet.generate-mac-address-mask \
  52. FF:FF:FF:00:00:00 00:50:E4:00:00:00 00:50:E5:00:00:00
  53.  
  54.  
  55. More info can be found at:
  56. https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/
  57. http://linuxizate.com/nmcli-configuracion-red-nmcli/
  58. https://developer.gnome.org/NetworkManager/stable/settings-802-3-ethernet.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement