-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* issue #175 thanks to @rostskadat Signed-off-by: Mark Bolwell <[email protected]> * issue #200 thanks to @DianaMariaDDM Signed-off-by: Mark Bolwell <[email protected]> * updated Signed-off-by: Mark Bolwell <[email protected]> * updated name for mount options variables Signed-off-by: Mark Bolwell <[email protected]> --------- Signed-off-by: Mark Bolwell <[email protected]>
- Loading branch information
Showing
7 changed files
with
146 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -837,6 +837,35 @@ ubtu22cis_rsyslog_ansible_managed: true | |
## | ||
|
||
## Controls 5.2.4/5/13/14/15/18/20/21/22 -- various sshd settings | ||
ubtu22cis_sshd_default_log_level: "INFO" | ||
ubtu22cis_sshd_default_ciphers: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- aes256-ctr | ||
- aes192-ctr | ||
- aes128-ctr | ||
ubtu22cis_sshd_default_macs: | ||
- [email protected] | ||
- [email protected] | ||
- hmac-sha2-512 | ||
- hmac-sha2-256 | ||
ubtu22cis_sshd_default_kex_algorithms: | ||
- curve25519-sha256 | ||
- [email protected] | ||
- diffie-hellman-group14-sha256 | ||
- diffie-hellman-group16-sha512 | ||
- diffie-hellman-group18-sha512 | ||
- ecdh-sha2-nistp521 | ||
- ecdh-sha2-nistp384 | ||
- ecdh-sha2-nistp256 | ||
- diffie-hellman-group-exchange-sha256 | ||
ubtu22cis_sshd_default_max_auth_tries: 4 | ||
ubtu22cis_sshd_default_max_sessions: 8 | ||
ubtu22cis_sshd_default_login_grace_time: 60 | ||
ubtu22cis_sshd_default_client_alive_interval: 300 | ||
ubtu22cis_sshd_default_client_alive_count_max: 3 | ||
|
||
ubtu22cis_sshd: | ||
# This variable is used to control the verbosity of the logging produced by the SSH server. | ||
# The options for setting it are as follows: | ||
|
@@ -846,51 +875,32 @@ ubtu22cis_sshd: | |
# - `INFO`: logs informational messages in addition to errors; | ||
# - `VERBOSE`: logs a higher level of detail, including login attempts and key exchanges; | ||
# - `DEBUG`: generates very detailed debugging information including sensitive information. | ||
log_level: "INFO" | ||
log_level: "{{ubtu22cis_sshd_default_log_level}}" | ||
# This variable specifies the maximum number of authentication attempts that are | ||
# allowed for a single SSH session. | ||
max_auth_tries: 4 | ||
max_auth_tries: "{{ubtu22cis_sshd_default_max_auth_tries}}" | ||
# This variable specifies the encryption algorithms that can be used for securing | ||
# data transmission. | ||
ciphers: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- aes256-ctr | ||
- aes192-ctr | ||
- aes128-ctr | ||
ciphers: "{{ubtu22cis_sshd_default_ciphers}}" | ||
# This variable specifies a list of message authentication code algorithms (MACs) that are allowed for verifying | ||
# the integrity of data exchanged. | ||
macs: | ||
- [email protected] | ||
- [email protected] | ||
- hmac-sha2-512 | ||
- hmac-sha2-256 | ||
macs: "{{ubtu22cis_sshd_default_macs}}" | ||
# This variable is used to state the key exchange algorithms used to establish secure encryption | ||
# keys during the initial connection setup. | ||
kex_algorithms: | ||
- curve25519-sha256 | ||
- [email protected] | ||
- diffie-hellman-group14-sha256 | ||
- diffie-hellman-group16-sha512 | ||
- diffie-hellman-group18-sha512 | ||
- ecdh-sha2-nistp521 | ||
- ecdh-sha2-nistp384 | ||
- ecdh-sha2-nistp256 | ||
- diffie-hellman-group-exchange-sha256 | ||
kex_algorithms: "{{ubtu22cis_sshd_default_kex_algorithms}}" | ||
# This variable sets the time interval in seconds between sending "keep-alive" | ||
# messages from the server to the client. These types of messages are intended to | ||
# keep the connection alive and prevent it being terminated due to inactivity. | ||
client_alive_interval: 300 | ||
client_alive_interval: "{{ubtu22cis_sshd_default_client_alive_interval}}" | ||
# This variable sets the maximum number of unresponsive "keep-alive" messages | ||
# that can be sent from the server to the client before the connection is considered | ||
# inactive and thus, closed. | ||
client_alive_count_max: 3 | ||
client_alive_count_max: "{{ubtu22cis_sshd_default_client_alive_count_max}}" | ||
# This variable specifies the amount of seconds allowed for successful authentication to | ||
# the SSH server. | ||
login_grace_time: 60 | ||
login_grace_time: "{{ubtu22cis_sshd_default_login_grace_time}}" | ||
# This variables is used to set the maximum number of open sessions per connection. | ||
max_sessions: 8 | ||
max_sessions: "{{ubtu22cis_sshd_default_max_sessions}}" | ||
# This variable, if specified, configures a list of USER name patterns, separated by spaces, to allow SSH | ||
# access for users whose user name matches one of the patterns. This is done | ||
# by setting the value of `AllowUsers` option in `/etc/ssh/sshd_config` file. | ||
|
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
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