systems:media_server:secure_the_server:harden_linux_kernel_configuration_parameters
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
systems:media_server:secure_the_server:harden_linux_kernel_configuration_parameters [2025/05/31 12:11] – peter | systems:media_server:secure_the_server:harden_linux_kernel_configuration_parameters [2025/05/31 16:07] (current) – peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
The Linux kernel is flexible, and the way it works can be modified on the fly by dynamically changing some of its parameters using the **sysctl** command. | The Linux kernel is flexible, and the way it works can be modified on the fly by dynamically changing some of its parameters using the **sysctl** command. | ||
- | * **sysctl** | + | * **sysctl** allows the viewing |
- | * Changes take effect immediately, | + | |
* The parameters available are those listed under /proc/sys/. | * The parameters available are those listed under /proc/sys/. | ||
+ | * Changes take effect immediately. | ||
+ | * The related **/ | ||
<WRAP alert> | <WRAP alert> | ||
**IMPORTANT NOTE: | **IMPORTANT NOTE: | ||
</ | </ | ||
- | |||
---- | ---- | ||
- | ====== Make a backup of the existing / | + | ===== Make a backup of the existing / |
<code bash> | <code bash> | ||
Line 22: | Line 22: | ||
---- | ---- | ||
- | ====== Modify the sysctl file ====== | + | ===== Modify the sysctl file ===== |
Add the following entries to the bottom of the **/ | Add the following entries to the bottom of the **/ | ||
Line 64: | Line 64: | ||
kernel.panic = 60 | kernel.panic = 60 | ||
kernel.sysrq = 0 | kernel.sysrq = 0 | ||
+ | |||
# File System Security | # File System Security | ||
Line 73: | Line 74: | ||
# Additional Security Measures | # Additional Security Measures | ||
+ | # | ||
+ | # | ||
kernel.core_uses_pid = 1 | kernel.core_uses_pid = 1 | ||
kernel.panic_on_unrecovered_nmi = 1 | kernel.panic_on_unrecovered_nmi = 1 | ||
Line 84: | Line 87: | ||
---- | ---- | ||
- | ====== Activate the kernel settings that have been modified | + | ===== Activate the kernel settings that have been modified ===== |
This reloads the sysctl parameters: | This reloads the sysctl parameters: | ||
Line 93: | Line 96: | ||
---- | ---- | ||
- | |||
- |
systems/media_server/secure_the_server/harden_linux_kernel_configuration_parameters.1748693489.txt.gz · Last modified: 2025/05/31 12:11 by peter