You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tasks/fix-cat2.yml
+49-2
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@
283
283
- name: "MEDIUM | RHEL-07-010240 | The Red Hat Enterprise Linux operating system must be configured so that passwords are restricted to a 24 hours/1 day minimum lifetime."
284
284
block:
285
285
- name: "MEDIUM | RHEL-07-010240 | AUDIT | Passwords must be restricted to a 24 hours/1 day minimum lifetime."
- name: "MEDIUM | RHEL-07-010260 | The Red Hat Enterprise Linux operating system must be configured so that existing passwords are restricted to a 60-day maximum lifetime."
311
311
block:
312
312
- name: "MEDIUM | RHEL-07-010260 | AUDIT | The Red Hat Enterprise Linux operating system must be configured so that existing passwords are restricted to a 60-day maximum lifetime."
- name: "MEDIUM | RHEL-07-040500 | PATCH | The Red Hat Enterprise Linux operating system must, for networked systems, synchronize clocks with a server that is synchronized to one of the redundant United States Naval Observatory (USNO) time servers, a time server designated for the appropriate DoD network (NIPRNet/SIPRNet), and/or the Global Positioning System (GPS)."
- name: "MEDIUM | RHEL-07-040611 | PATCH | The Red Hat Enterprise Linux operating system must use a reverse-path filter for IPv4 network traffic when possible on all interfaces."
2278
+
sysctl:
2279
+
name: net.ipv4.conf.all.rp_filter
2280
+
state: present
2281
+
value: 1
2282
+
sysctl_set: yes
2283
+
reload: "{{ rhel7stig_sysctl_reload }}"
2284
+
ignoreerrors: yes
2285
+
when: rhel_07_040611
2286
+
tags:
2287
+
- RHEL-07-040611
2288
+
- ipv4
2289
+
2290
+
- name: "MEDIUM | RHEL-07-040612 | PATCH | The Red Hat Enterprise Linux operating system must use a reverse-path filter for IPv4 network traffic when possible by default."
2291
+
sysctl:
2292
+
name: net.ipv4.conf.default.rp_filter
2293
+
state: present
2294
+
value: 1
2295
+
sysctl_set: yes
2296
+
reload: "{{ rhel7stig_sysctl_reload }}"
2297
+
ignoreerrors: yes
2298
+
when: rhel_07_040612
2299
+
tags:
2300
+
- RHEL-07-040612
2301
+
- ipv4
2302
+
2265
2303
- name: "MEDIUM | RHEL-07-040620 | PATCH | The Red Hat Enterprise Linux operating system must not forward Internet Protocol version 4 (IPv4) source-routed packets by default."
2266
2304
sysctl:
2267
2305
name: net.ipv4.conf.default.accept_source_route
@@ -2364,6 +2402,15 @@
2364
2402
changed_when: no
2365
2403
register: rhel_07_040680_rpm_audit
2366
2404
2405
+
- name: "MEDIUM | RHEL-07-040680 | AUDIT | Set inet_protocol = ipv4 so postfix can start"
2406
+
replace:
2407
+
path: /etc/postfix/main.cf
2408
+
regexp: '^inet_protocols = all$'
2409
+
replace: 'inet_protocols = ipv4'
2410
+
check_mode: no
2411
+
changed_when: no
2412
+
when: rhel_07_040680_rpm_audit.rc == 0
2413
+
2367
2414
- name: "MEDIUM | RHEL-07-040680 | AUDIT | The Red Hat Enterprise Linux operating system must be configured to prevent unrestricted mail relaying."
0 commit comments