You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,7 +13,7 @@ This repository hosts my hardened version of `sysctl.conf`. This configuration f
13
13
14
14
**Please review the configuration file carefully before applying it.** You are responsible for actions done to your own system. If you need some guidance understanding what each of the settings are for, [sysctl-explorer](https://sysctl-explorer.net/) might come in handy.
15
15
16
-
Please be careful that this `sysctl.conf` is **designed for endpoint hosts that do not act as a router**. If you would like to use this configuration file on a router, please go over the configuration file and make necessary changes.
16
+
Please be careful that this `sysctl.conf` is **designed for 64-bit endpoint hosts that do not act as a router**. If you would like to use this configuration file on a router, please go over the configuration file and make necessary changes.
17
17
18
18
## Usages
19
19
@@ -24,279 +24,28 @@ Please be careful that this `sysctl.conf` is **designed for endpoint hosts that
24
24
1. Run command `sudo sysctl -p` or reboot the system to apply the changes
# make sure the file has the correct ownership and permissions
40
+
sudo chown root:root /etc/sysctl.conf
41
+
sudo chmod 644 /etc/sysctl.conf
38
42
39
-
#remove the downloaded repository if you don't need it anymore
40
-
rm -rf ~/sysctl
43
+
#instruct sysctl to load settings from the configuration file into the live kernel
44
+
sudo sysctl -p
41
45
```
42
46
43
47
For convenience, I have pointed the URL `https://akas.io/sysctl` to the `sysctl.conf` file. You may therefore download the `sysctl.conf` file with the following command. However, be sure to check the integrity of the file after downloading it if you choose to download using this method.
44
48
45
49
```shell
46
50
curl -sSL akas.io/sysctl -o sysctl.conf
47
51
```
48
-
49
-
## `sysctl.conf` Content
50
-
51
-
```properties
52
-
# Name: K4YT3X Hardened sysctl Configuration
53
-
# Author: K4YT3X
54
-
# Contributors: IceCodeNew
55
-
# Date Created: October 5, 2020
56
-
# Last Updated: October 7, 2020
57
-
58
-
# Licensed under the GNU General Public License Version 3 (GNU GPL v3),
59
-
# available at: https://www.gnu.org/licenses/gpl-3.0.txt
60
-
# (C) 2020 K4YT3X
61
-
62
-
# Multiple sources have been consulted while writing this configuration
63
-
# file (e.g., nixCraft's sysctl.conf). Sources are not cited since this
64
-
# is not an academic document. Please refer to Linux documentations
65
-
# should you have any questions.
66
-
67
-
########## Kernel ##########
68
-
69
-
# enable ExecShield protection
70
-
# 2 enables ExecShield by default unless applications bits are set to disabled
0 commit comments