mirror of https://gitlab.com/curben/blog
post(caddy-nixos-2): disable sysrq
This commit is contained in:
parent
44b6006d56
commit
233b7696c4
|
@ -268,6 +268,8 @@ Based on [Ubuntu Wiki](https://wiki.ubuntu.com/ImprovedNetworking/KernelSecurity
|
||||||
|
|
||||||
## Network hardening and performance
|
## Network hardening and performance
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
|
# Disable magic SysRq key
|
||||||
|
"kernel.sysrq" = 0;
|
||||||
# Ignore ICMP broadcasts to avoid participating in Smurf attacks
|
# Ignore ICMP broadcasts to avoid participating in Smurf attacks
|
||||||
"net.ipv4.icmp_echo_ignore_broadcasts" = 1;
|
"net.ipv4.icmp_echo_ignore_broadcasts" = 1;
|
||||||
# Ignore bad ICMP errors
|
# Ignore bad ICMP errors
|
||||||
|
|
Loading…
Reference in New Issue