This script is designed to simplify the process of hardening your Linux system. Running this bash you'll not became magically invincible but this script will guide you to improve your system security.
- You should run this script as a superuser (root) to ensure proper permissions.
- Clone the repository or download the script to your Linux system.
- Make the script executable:
chmod +x hardening-script.sh
- Execute
./hardening-script.sh
The script will perform the following steps:
- Check if the script is run as root to ensure proper permissions.
- Check if your distro is using systemd.
- improve kernel, network and user space security tweaking some values inside your systemd config.
- Setup a basic firewall with UFW (optional).
- Disable CUPS & Bluetooth services (optional).
Happy hardening! 🦾