mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 23:43:06 +00:00
Fix 3_3_7 and 5_2_20
This commit is contained in:
parent
3525cb6aab
commit
3f835628c0
2 changed files with 19 additions and 1 deletions
|
|
@ -565,7 +565,7 @@ rhel9cis_logrotate: "daily"
|
||||||
rhel9_cis_sshd_config_file: /etc/ssh/sshd_config
|
rhel9_cis_sshd_config_file: /etc/ssh/sshd_config
|
||||||
|
|
||||||
rhel9cis_sshd:
|
rhel9cis_sshd:
|
||||||
clientalivecountmax: 0
|
clientalivecountmax: 3
|
||||||
clientaliveinterval: 900
|
clientaliveinterval: 900
|
||||||
logingracetime: 60
|
logingracetime: 60
|
||||||
# WARNING: make sure you understand the precedence when working with these values!!
|
# WARNING: make sure you understand the precedence when working with these values!!
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,24 @@
|
||||||
- not system_is_container
|
- not system_is_container
|
||||||
- "'procps-ng' in ansible_facts.packages"
|
- "'procps-ng' in ansible_facts.packages"
|
||||||
|
|
||||||
|
- name: POST | Update usr sysctl
|
||||||
|
block:
|
||||||
|
- name: POST | Set default.rp_filter
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /usr/lib/sysctl.d/50-default.conf
|
||||||
|
regexp: '^net.ipv4.conf.default.rp_filter'
|
||||||
|
line: net.ipv4.conf.default.rp_filter = 1
|
||||||
|
|
||||||
|
- name: POST | Set ALL rp_filter
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /usr/lib/sysctl.d/50-default.conf
|
||||||
|
regexp: '^net.ipv4.conf.*.rp_filter'
|
||||||
|
line: net.ipv4.conf.*.rp_filter = 1
|
||||||
|
when:
|
||||||
|
- rhel9cis_sysctl_update
|
||||||
|
- not system_is_container
|
||||||
|
- "'procps-ng' in ansible_facts.packages"
|
||||||
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue