OpenBSD Course

Introduction

Welcome to the complete OpenBSD course, taking you from zero to hero. This course covers everything you need to know to install, configure, and secure OpenBSD on various hardware platforms.

Course Overview

OpenBSD is a free, secure, open-source Unix-like operating system focused on correctness, proactive security, and out-of-the-box usability. In this course we cover installation on different architectures, security hardening, web server setup, and PostgreSQL database configuration.

Start here: install OpenBSD on your architecture

Before installing OpenBSD, you need to understand the architecture compatibility.

Download the appropriate installation image from the official OpenBSD website.

Verify the checksum of the downloaded ISO to ensure integrity

sha256 -c SHA256

Then follow the chain from Install OpenBSD on Architecture through Prepare Installation Media and BIOS/UEFI Installation.

Lessons by chapter

Every lesson ends with a link to the next one, so you can read the course start to finish. The beginner guides dig deeper into one topic each.

Chapter 1: Installation
Architecture Compatibility
Prepare Installation Media
BIOS Installation
UEFI Installation
Disk Partitioning
Base System Installation
OpenBSD Architecture - Beginner Guide
OpenBSD Installation Media - Beginner Guide
OpenBSD Disk Partitioning - Beginner Guide
Chapter 2: System setup and services
Configure Network
Disable Firewall Temporarily
OpenSSH Server
Update System
Services Management
Services Management
Boot Process
System Upgrade
OpenBSD System Updates - Beginner Guide
Chapter 3: Users, shells and access
SSH Key Authentication
sudo vs doas
Users and Groups
User Management Advanced
Advanced doas Configuration
SSH Configuration
Advanced User Management
Shells
Environment Variables
Sudoers Configuration
/etc/fstab
Group Management
Password Security
Issue and Banner
PAM Configuration
User Security Settings
OpenBSD SSH Configuration - Beginner Guide
OpenBSD User Management - Beginner Guide
OpenBSD SSH Hardening - Beginner Guide
Chapter 4: PF firewall and network
PF Firewall Introduction
PF Advanced Rules
Firewall Configuration
Firewall Configuration
PF Logging and Monitoring
DHCP Server
PF Firewall Advanced
DNS Configuration
Hosts File
Network Statistics
Routing
Network Bridging
PF NAT Configuration
PF Suppression
OpenBSD PF Firewall - Beginner Guide
OpenBSD PF Logging and Monitoring - Beginner Guide
OpenBSD Firewall Configuration - Beginner Guide
Chapter 5: Security, VPN and TLS
Security Basics
SSL/TLS Certificate
Advanced SSL/TLS Configuration
SSH Hardening
FIPS 140-2
Audit System
Security Compliance
IPsec VPN
WireGuard VPN
TCP Wrappers
Intrusion Detection
Log Analysis
Certificate Management
Access Control Lists (ACLs)
Vulnerability Management
Security Audit Tools
Security Parameter Tuning
Chapter 6: Web, database and mail
PostgreSQL Introduction
Web Server Overview
Install Apache Web Server
Install Nginx Web Server
Database Setup
Install PHP
Install PHP
Install PHP
Mail Server
PHP and Web Stack
HTTP API
OpenBSD Web Server - Beginner Guide
OpenBSD PostgreSQL Database - Beginner Guide
Chapter 7: Disks, logging and backup
Resource Limits
System Logging
Disk Encryption
Swap and Memory
Kernel Parameters
Mounting Filesystems
UFS Filesystem
Softraid
Disk Management
Backup Strategies
Log Rotation
OpenBSD Backup Strategies - Beginner Guide
Chapter 8: Packages, devtools and cron
Custom Kernel compilation
Text Editors
Package Management
Cron Jobs
System Monitoring
GCC Compiler
Make Build System
Debugging
System Call Tracing
Advanced Cron
Advanced Backup
Kernel Update
OpenBSD Package Management - Beginner Guide
OpenBSD GCC Compiler - Beginner Guide
Chapter 9: Virtualization and closing
Window Managers
Virtual Machines
LXC Containers
Advanced Monitoring
SELinux (Ported)
Course Conclusion
Frequently Asked Questions
Virtualization Overview
Docker Containers
Kubernetes
Systemd Compatibility
OpenBSD Virtual Machines - Beginner Guide
OpenBSD Course Conclusion - Beginner Guide

How to use this course

Type every command, do not just read it. Practice each snippet on a test machine or a virtual machine before moving on - the course assumes your hands remember installation by the time firewall rules arrive.