aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/network
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/network')
-rw-r--r--manifests/subsystem/network/macchanger.pp5
-rw-r--r--manifests/subsystem/network/manager.pp15
-rw-r--r--manifests/subsystem/network/manager/macchanger.pp18
-rw-r--r--manifests/subsystem/network/wicd.pp11
-rw-r--r--manifests/subsystem/network/wicd/macchanger.pp11
5 files changed, 60 insertions, 0 deletions
diff --git a/manifests/subsystem/network/macchanger.pp b/manifests/subsystem/network/macchanger.pp
new file mode 100644
index 0000000..f5e5438
--- /dev/null
+++ b/manifests/subsystem/network/macchanger.pp
@@ -0,0 +1,5 @@
+class nodo::subsystem::macchanger {
+ package { 'macchanger':
+ ensure => present,
+ }
+}
diff --git a/manifests/subsystem/network/manager.pp b/manifests/subsystem/network/manager.pp
new file mode 100644
index 0000000..3b7a7cf
--- /dev/null
+++ b/manifests/subsystem/network/manager.pp
@@ -0,0 +1,15 @@
+class nodo::subsystem::network::manager (
+ $ensure = 'installed',
+) {
+ package { [
+ 'network-manager',
+ 'nm-tray',
+ ]:
+ ensure => $ensure,
+ }
+
+ service { 'network-manager':
+ ensure => running,
+ require => Package['network-manager'],
+ }
+}
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'],
+ }
+}
diff --git a/manifests/subsystem/network/wicd.pp b/manifests/subsystem/network/wicd.pp
new file mode 100644
index 0000000..7f221f6
--- /dev/null
+++ b/manifests/subsystem/network/wicd.pp
@@ -0,0 +1,11 @@
+class nodo::subsystem::network::wicd (
+ $ensure = 'installed',
+) {
+ package { [
+ 'wicd',
+ 'wicd-curses',
+ #'wicd-gtk',
+ ]:
+ ensure => $ensure,
+ }
+}
diff --git a/manifests/subsystem/network/wicd/macchanger.pp b/manifests/subsystem/network/wicd/macchanger.pp
new file mode 100644
index 0000000..c5dafc3
--- /dev/null
+++ b/manifests/subsystem/network/wicd/macchanger.pp
@@ -0,0 +1,11 @@
+class nodo::subsystem::network::wicd::macchanger inherits nodo:subsystem::network::wicd {
+ include nodo::subsystem::macchanger
+
+ file { '/etc/wicd/scripts/preconnect/macchanger':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0755',
+ source => 'puppet:///modules/nodo/etc/wicd/macchanger',
+ }
+}