RHEL9-CIS/templates/etc/sysctl.d/60-netipv6_sysctl.conf.j2
Kristian da0734c3a8 Revert "Merge 'devel' of kris9854/RHEL9-CIS-fix into devel"
This reverts commit d4471a3016, reversing
changes made to d6ca36a91f.
2022-09-26 19:10:53 +02:00

21 lines
No EOL
566 B
Django/Jinja

# 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 %}