Skip to content

Commit 9527194

Browse files
author
Brent Clark
committed
Disable some network protocols that typically are not used.
1 parent 690b5c9 commit 9527194

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifests/modules.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class os_hardening::modules (
1212
Array $disable_filesystems =
1313
['cramfs','freevxfs','jffs2','hfs','hfsplus','squashfs','udf'],
14+
Array $disable_network_protocol = ['dccp','sctp','rds','tipc'],
1415
) {
1516

1617
# Disable unused filesystems (os-10)
@@ -22,5 +23,12 @@
2223
content => template('os_hardening/disable_fs.erb'),
2324
}
2425

26+
file { '/etc/modprobe.d/dev-sec-net-protocols.conf':
27+
ensure => file,
28+
owner => 'root',
29+
group => 'root',
30+
mode => '0440',
31+
content => template('os_hardening/disable_net_protocols.erb'),
32+
}
2533
}
2634

0 commit comments

Comments
 (0)