mirror of
https://github.com/imthenachoman/How-To-Secure-A-Linux-Server.git
synced 2025-12-06 17:22:53 +01:00
Update sysctl.md
This commit is contained in:
@@ -13,7 +13,7 @@ Documentation for **most** of these keys can be found at https://github.com/torv
|
||||
|`fs.protected_symlinks = 1`||[/sysctl/fs.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/fs.txt)|
|
||||
|`kernel.core_uses_pid = 1`||[/sysctl/kernel.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/kernel.txt)|
|
||||
|`kernel.ctrl-alt-del = 0`||[/sysctl/kernel.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/kernel.txt)|
|
||||
|`kernel.exec-shield = 1`|||
|
||||
|`kernel.exec-shield = 1`|this key is invalid on my Debian install||
|
||||
|`kernel.kptr_restrict = 2`||[/sysctl/kernel.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/kernel.txt)|
|
||||
|`kernel.pid_max = 65536`||[/sysctl/kernel.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/kernel.txt)|
|
||||
|`kernel.randomize_va_space = 2`||[/sysctl/kernel.txt](https://github.com/torvalds/linux/blob/master/Documentation/sysctl/kernel.txt)|
|
||||
@@ -92,6 +92,7 @@ Documentation for **most** of these keys can be found at https://github.com/torv
|
||||
|
||||
kernel.core_uses_pid = 1
|
||||
kernel.ctrl-alt-del = 0
|
||||
# this key is invalid on my Debian install
|
||||
kernel.exec-shield = 1
|
||||
kernel.kptr_restrict = 2
|
||||
kernel.pid_max = 65536
|
||||
@@ -122,10 +123,14 @@ Documentation for **most** of these keys can be found at https://github.com/torv
|
||||
|
||||
##
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
#
|
||||
# remember to change eth0 to your network interface
|
||||
#
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
##
|
||||
net.ipv4.conf.eth0.accept_redirects = 0
|
||||
net.ipv4.conf.eth0.accept_source_route = 0
|
||||
|
||||
Reference in New Issue
Block a user