aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/network/manager/macchanger.pp
blob: 3e0878f1986d22cfebb3f6e44d12ac5f342346af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# See https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html
#     https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/
#     https://fedoramagazine.org/randomize-mac-address-nm/
#     https://ofstack.com/Linux/29692/linux-uses-networkmanager-to-randomly-generate-your-mac-address.html
#     https://re00.home.blog/2019/10/10/random-mac-nm/
#     https://forums.kali.org/showthread.php?34221-Turning-off-Mac-address-randomization-in-Network-Manager-one-method
#     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879484
class nodo::subsystem::network::manager::macchanger inherits nodo::subsystem::network::manager {
  file { '/etc/NetworkManager/conf.d/00-macchanger.conf':
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => '0644',
    source  => 'puppet:///modules/nodo/etc/NetworkManager/conf.d/00-macchanger.conf',
    require => Package['network-manager'],
    notify  => Service['NetworkManager'],
  }
}