58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
---
|
|
hardening_common_enabled: true
|
|
hardening_common_fail2ban_enabled: true
|
|
hardening_common_fail2ban_sshd_enabled: true
|
|
hardening_common_unattended_upgrades_enabled: true
|
|
hardening_common_debsecan_enabled: true
|
|
hardening_common_apparmor_enabled: true
|
|
hardening_common_journald_enabled: true
|
|
hardening_common_journald_system_max_use: 512M
|
|
hardening_common_journald_runtime_max_use: 128M
|
|
hardening_common_ssh_port: 22
|
|
hardening_common_ssh_allow_groups: []
|
|
hardening_common_ssh_listen_addresses: []
|
|
hardening_common_sysctl:
|
|
fs.protected_fifos: 2
|
|
fs.protected_hardlinks: 1
|
|
fs.protected_regular: 2
|
|
fs.protected_symlinks: 1
|
|
kernel.dmesg_restrict: 1
|
|
kernel.kptr_restrict: 2
|
|
kernel.randomize_va_space: 2
|
|
kernel.sysrq: 0
|
|
net.ipv4.conf.all.accept_redirects: 0
|
|
net.ipv4.conf.default.accept_redirects: 0
|
|
net.ipv4.conf.all.accept_source_route: 0
|
|
net.ipv4.conf.default.accept_source_route: 0
|
|
net.ipv4.conf.all.log_martians: 1
|
|
net.ipv4.conf.default.log_martians: 1
|
|
net.ipv4.conf.all.rp_filter: 1
|
|
net.ipv4.conf.default.rp_filter: 1
|
|
net.ipv4.conf.all.send_redirects: 0
|
|
net.ipv4.conf.default.send_redirects: 0
|
|
net.ipv4.icmp_echo_ignore_broadcasts: 1
|
|
net.ipv4.ip_forward: 0
|
|
net.ipv4.tcp_syncookies: 1
|
|
net.ipv6.conf.all.accept_redirects: 0
|
|
net.ipv6.conf.default.accept_redirects: 0
|
|
net.ipv6.conf.all.accept_source_route: 0
|
|
net.ipv6.conf.default.accept_source_route: 0
|
|
hardening_common_sshd_settings:
|
|
PasswordAuthentication: 'no'
|
|
PermitRootLogin: 'no'
|
|
KbdInteractiveAuthentication: 'no'
|
|
ChallengeResponseAuthentication: 'no'
|
|
PubkeyAuthentication: 'yes'
|
|
X11Forwarding: 'no'
|
|
MaxAuthTries: '3'
|
|
LoginGraceTime: '30'
|
|
AllowAgentForwarding: 'no'
|
|
AllowTcpForwarding: 'no'
|
|
TCPKeepAlive: 'no'
|
|
ClientAliveInterval: '300'
|
|
ClientAliveCountMax: '2'
|
|
MaxSessions: '10'
|
|
MaxStartups: '10:30:60'
|
|
Protocol: '2'
|
|
Port: '22'
|
|
UsePAM: 'yes'
|