Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g5ostxa/sysctl
Kernel params for linux systems
https://github.com/g5ostxa/sysctl
kernel linux security sysctl
Last synced: about 1 month ago
JSON representation
Kernel params for linux systems
- Host: GitHub
- URL: https://github.com/g5ostxa/sysctl
- Owner: g5ostXa
- License: gpl-3.0
- Created: 2024-10-14T02:06:57.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T08:08:57.000Z (about 1 month ago)
- Last Synced: 2024-11-29T08:36:34.889Z (about 1 month ago)
- Topics: kernel, linux, security, sysctl
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ⚙️ sysctl hardening
#### Usage:
- Clone the repository
```
$ git clone --depth 1 https://github.com/g5ostXa/sysctl.git
```
- Copy sysctl files to `/etc/sysctl.d/`
```
$ sudo cp -r sysctl/* /etc/sysctl.d/
```
- Give root permissions to the directory and all it's content
```
$ sudo chown -R root:root /etc/sysctl.d/; sudo chown -R root:root /etc/sysctl.d/*
```
To print current permissions, type the following code in your terminal
```
$ stat -c "%a %n" /etc/sysctl.d/*
```
If needed, change permissions to "600" for everything in `/etc/sysctl.d/`
```
$ sudo chmod 600 /etc/sysctl.d/*
```
- Finally, apply kernel parameters permanently
```
$ sudo sysctl --system
```