Puppet Class: cis_security_hardening::rules::ip6tables_loopback
- Defined in:
- manifests/rules/ip6tables_loopback.pp
Summary
Ensure loopback traffic is configuredOverview
Configure the loopback interface to accept traffic. Configure all other interfaces to deny traffic to the loopback network (127.0.0.0/8).
Rationale: Loopback traffic is generated between processes on machine and is typically critical to operation of the system. The loopback interface is the only place that loopback network (127.0.0.0/8) traffic should be seen, all other interfaces should ignore traffic on this network as an anti-spoofing measure.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/rules/ip6tables_loopback.pp', line 21
class cis_security_hardening::rules::ip6tables_loopback (
Boolean $enforce = false,
) {
if $enforce and fact('network6') != undef {
firewall { '001-6 accept all incoming traffic to local interface':
chain => 'INPUT',
proto => 'all',
iniface => 'lo',
jump => 'ACCEPT',
protocol => 'ip6tables',
}
firewall { '002-6 accept all outgoing traffic to local interface':
chain => 'OUTPUT',
proto => 'all',
outiface => 'lo',
jump => 'ACCEPT',
protocol => 'ip6tables',
}
firewall { '003-6 drop all traffic to lo ::1':
chain => 'INPUT',
proto => 'all',
source => '::1',
jump => 'DROP',
protocol => 'ip6tables',
}
}
}
|