4
0
Fork 0

tidy up sysctl templates

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-04-04 15:14:13 +01:00
parent 8b8aef291b
commit fef891dc1b
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB
5 changed files with 66 additions and 67 deletions

View file

@ -0,0 +1,21 @@
# Setting added via ansible CIS remediation playbook
# IPv6 Network sysctl
{% if rhel9cis_ipv6_required %}
{% if rhel9cis_rule_3_2_1 %}
net.ipv6.conf.all.forwarding = 0
{% endif %}
{% if rhel9cis_rule_3_3_1 %}
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
{% endif %}
{% if rhel9cis_rule_3_3_2 %}
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0
{% endif %}
{% if rhel9cis_rule_3_3_9 %}
# CIS 3.3.9
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
{% endif %}
{% endif %}