Skip to content

daviduhden/openbsd-hardening-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

OpenBSD Hardening Script

Overview

This script automates the hardening of an OpenBSD workstation based on various guides from Solène Rapenne. Any contribution is highly appreciated.

Features

  • Installs essential packages: anacron, tor, torsocks, and clamav.
  • Configures user settings to enhance security.
  • Sets up a hardened firewall configuration.
  • Enables and configures the Tor service.
  • Configures the system to use a onion (Tor) mirror for updating the system and installing/updating packages.
  • Disables USB ports (Only use this if you have a PS/2 keyboard and mouse).
  • Configures ClamAV antivirus and freshclam updater.
  • Applies system configuration changes for memory allocation hardening.
  • Sets up anacron for periodic tasks.
  • Makes shell environment files immutable using chflags.

Requirements

Usage

  1. Clone the repository:

    git clone https://github.com/daviduhden/openbsd-hardening-script.git
    cd openbsd-hardening-script
  2. Make the script executable:

    chmod +x hardening.ksh
  3. Run the script:

    ksh hardening.ksh
  4. Follow the interactive prompts to apply the desired configurations.

About

Hardening Script for OpenBSD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages