-
Notifications
You must be signed in to change notification settings - Fork 700
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 #12714 from ericeberry/u2404_518
Ubuntu 24.04 5.1.8 Ensure sshd DisableForwarding is enabled
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
linux_os/guide/services/ssh/ssh_server/sshd_disable_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,24 @@ | ||
documentation_complete: true | ||
|
||
title: 'Disable SSH Forwarding' | ||
|
||
description: |- | ||
The DisableForwarding parameter disables all forwarding features, | ||
rationale: |- | ||
Disable ssh forwarding unless there is an operational requirement to use it. | ||
Leaving port forwarding enabled can expose the organization to security risks. | ||
severity: medium | ||
|
||
ocil_clause: "The DisableForwarding option exists and is yes" | ||
|
||
ocil: |- | ||
{{{ ocil_sshd_option(default="yes", option="DisableForwarding", value="yes") }}} | ||
template: | ||
name: sshd_lineinfile | ||
vars: | ||
parameter: DisableForwarding | ||
value: 'yes' | ||
datatype: string |