fix(system_baseline): refuse ICMP redirects on every interface
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:
1 parent
d88e5d237a
commit
74e574ee80
6 files changed
+163
-5
No files matched your search
@@ -110,7 +110,13 @@ system_baseline_profiles:
|
||||
- { name: "kernel.randomize_va_space", value: 2 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.log_martians", value: 1 }
|
||||
@@ -173,7 +179,13 @@ system_baseline_profiles:
|
||||
- { name: "net.ipv4.tcp_syncookies", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
|
||||
@@ -234,7 +246,13 @@ system_baseline_profiles:
|
||||
- { name: "kernel.randomize_va_space", value: 2 }
|
||||
- { name: "net.ipv4.conf.all.accept_source_route", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.all.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv4.conf.default.secure_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.all.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.default.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv6.conf.*.accept_redirects", value: 0 }
|
||||
- { name: "net.ipv4.icmp_echo_ignore_broadcasts", value: 1 }
|
||||
- { name: "net.ipv4.icmp_ignore_bogus_error_responses", value: 1 }
|
||||
- { name: "net.ipv4.conf.all.log_martians", value: 1 }
|
||||
|
||||
Reference in new issue
Block a user