Interview Prep/Linux/Firewalls, MAC & Compliance

Which sysctl settings belong in a security baseline?

IntermediateProductionFirewalls, MAC & Compliance
Answer
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
kernel.randomize_va_space = 2
kernel.kptr_restrict = 2
kernel.dmesg_restrict = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
fs.suid_dumpable = 0

Do not set ip_forward=0 on Kubernetes or Docker hosts.

All Linux questions Roadmap: Linux

More on Firewalls, MAC & Compliance