fix(system_baseline): refuse ICMP redirects on every interface
Build / build (pull_request) Successful in 28s
Molecule / select (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 2m23s
Molecule / scenarios (pull_request) Successful in 10m38s
Molecule / Result (pull_request) Successful in 1s

With forwarding off the kernel accepts redirects when either `all` or the
interface's own value is 1, and over IPv6 only the interface's value counts.
The profiles now also set `default` and, with a wildcard, every existing
interface, over IPv4 and IPv6.

Refs #511

Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
Defame1297 committed 2026-12-03 17:44:02 +00:00
1 parent d88e5d237a
commit 74e574ee80
6 files changed
+163 -5

No files matched your search

@@ -0,0 +1,5 @@
---
security_fixes:
- >-
system_baseline - Every profile now refuses ICMP redirects on every interface, over IPv4 and IPv6. Before, only
``net.ipv4.conf.all`` was set, so a host that does not forward still accepted them on its interfaces.
@@ -0,0 +1,4 @@
---
minor_changes:
- >-
system_baseline - A name in ``system_baseline_sysctl_hardening`` may contain ``*``, which sets the key on every interface.