aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/network/manager
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-02 17:25:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-02 17:25:16 -0300
commit5f1dc34fb0cb9fc219eddee315d89260f591ef57 (patch)
treeff741a4530bf459edb5dc2f0631ce59600873f59 /manifests/subsystem/network/manager
parent85ec371c4a4d0556b4cfd992e4eaa6aa699c406b (diff)
downloadpuppet-nodo-5f1dc34fb0cb9fc219eddee315d89260f591ef57.tar.gz
puppet-nodo-5f1dc34fb0cb9fc219eddee315d89260f591ef57.tar.bz2
Some TPC changes
Diffstat (limited to 'manifests/subsystem/network/manager')
-rw-r--r--manifests/subsystem/network/manager/macchanger.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/subsystem/network/manager/macchanger.pp b/manifests/subsystem/network/manager/macchanger.pp
new file mode 100644
index 0000000..248ac7f
--- /dev/null
+++ b/manifests/subsystem/network/manager/macchanger.pp
@@ -0,0 +1,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['network-manager'],
+ }
+}