-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9277 from yuumasato/new_sysctl_ipv4_forwarding_rule
New sysctl ipv4 forwarding rule
- Loading branch information
Showing
7 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...rk-kernel/network_host_and_router_parameters/sysctl_net_ipv4_conf_all_forwarding/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
documentation_complete: true | ||
|
||
prodtype: rhel8 | ||
|
||
title: 'Disable Kernel Parameter for IPv4 Forwarding on all IPv4 Interfaces' | ||
|
||
description: '{{{ describe_sysctl_option_value(sysctl="net.ipv4.conf.all.forwarding", value="0") }}}' | ||
|
||
rationale: |- | ||
IP forwarding permits the kernel to forward packets from one network | ||
interface to another. The ability to forward packets between two networks is | ||
only appropriate for systems acting as routers. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel8: CCE-86220-1 | ||
|
||
references: | ||
disa: CCI-000366 | ||
nist: CM-6(b) | ||
srg: SRG-OS-000480-GPOS-00227 | ||
stigid@rhel8: RHEL-08-040259 | ||
|
||
ocil_clause: 'IP forwarding value is "1" and the system is not router' | ||
|
||
ocil: |- | ||
{{{ ocil_sysctl_option_value(sysctl="net.ipv4.conf.all.forwarding", value="0") }}} | ||
The ability to forward packets is only appropriate for routers. | ||
fixtext: |- | ||
Configure {{{ full_name }}} to not allow packet forwarding unless the system is a router with the following commands: | ||
{{{ fixtext_sysctl(sysctl="net.ipv4.conf.all.forwarding", value="0") | indent(4) }}} | ||
srg_requirement: '{{{ full_name }}} must not perform packet forwarding unless the system is a router.' | ||
|
||
platform: machine | ||
|
||
template: | ||
name: sysctl | ||
vars: | ||
sysctlvar: net.ipv4.conf.all.forwarding | ||
datatype: int | ||
|
17 changes: 17 additions & 0 deletions
17
...k-kernel/network_host_and_router_parameters/sysctl_net_ipv4_conf_all_forwarding_value.var
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
documentation_complete: true | ||
|
||
title: net.ipv4.conf.all.forwarding | ||
|
||
description: 'Toggle IPv4 Forwarding' | ||
|
||
type: number | ||
|
||
operator: equals | ||
|
||
interactive: false | ||
|
||
options: | ||
default: "0" | ||
disabled: "0" | ||
enabled: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,7 +168,6 @@ CCE-86216-9 | |
CCE-86217-7 | ||
CCE-86218-5 | ||
CCE-86219-3 | ||
CCE-86220-1 | ||
CCE-86221-9 | ||
CCE-86222-7 | ||
CCE-86223-5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters