Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New SLE 15 rule ensure_iptables_are_flushed #10107

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion controls/cis_sle15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,12 @@ controls:
levels:
- l1_server
- l1_workstation
status: manual # rule is missing
status: manual
notes: >-
The control cannot be automated,
and should be addressed manually.
rules:
- ensure_iptables_are_flushed

- id: 3.5.2.4
title: Ensure a table exists (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
documentation_complete: true

prodtype: sle15

title: 'Ensure iptables are flushed'

description: |-
nftables is a replacement for iptables, ip6tables, ebtables and arptables

rationale: |-
It is possible to mix iptables and nftables. However, this increases complexity
and also the chance to introduce errors. For simplicity flush out all iptables
rules, and ensure it is not loaded.

severity: medium

identifiers:
cce@sle15: CCE-92523-0

references:
cis@sle15: 3.5.2.3

ocil_clause: 'Your system is configured to use nftables, but iptables rules exist on it'

ocil: |-
To verify that on your system not iptables rules exist, and no rules will be returned
run the following command:
<pre>$ sudo iptables -L</pre>
and/or to verify that on your system not ip6tables rules exist, and no rules will be
returned run:
<pre>$ sudo ip6tables -L</pre>
To flush iptables run the following command:
<pre>$ sudo iptables -F</pre>
and/or to flush ip6tbales run:
<pre>$ sudo ip6tables -F</pre>
1 change: 0 additions & 1 deletion shared/references/cce-sle15-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ CCE-92519-8
CCE-92520-6
CCE-92521-4
CCE-92522-2
CCE-92523-0
CCE-92524-8
CCE-92525-5
CCE-92526-3
Expand Down