Roger Fan

Notes

High School Notes
University Notes
Computer Networking
Computer Architecture
Operating System
Chapter 0
Chapter 1: Operating System Introduction
Chapter 2: OS Structure
Chapter 3: Process Concept
Chapter 4: Multithreaded Programming
Chapter 5: Process Scheduling
Chapter 6: Process Synchronization
Chapter 7: Deadlocks
Chapter 8: Memory Management
Chapter 9: Virtual Memory Management
Chapter 10: File System Interface
Chapter 11: File System Implementation
Chapter 12: Mass Storage System
Chapter 13: IO System
Discrete Math
Calculus
Calculus I
Calculus II
Linear Algebra
Probability
General Physics
General Education
Tech Notes
TMUX
SSH
Fail2ban
SSHD
UFW
DNS Bind9
Notes
Tech Notes
Fail2ban

Login Required

This note requires login to view the full content (310 lines total). Showing first 20 lines as preview. Please login to view the full content.

Login to unlock

Fail2ban

Created: 2025-11-30
Updated: 2025-11-30

Comprehensive Fail2ban configuration for intrusion prevention including filters, jails, and actions to protect SSH, web, and mail services

Login to unlock full content

Login Now
roger@roger.tw
roger@roger.tw
© 2026 Roger Fan. All rights reserved.

Architecture

Text
  ┌─────────────┐
  │  Log Files  │ (auth.log, nginx/error.log, mail.log, etc.)
  └──────┬──────┘
         │
         ├──► Fail2ban reads logs
         │
  ┌──────▼──────────┐
  │    FILTERS      │ (regex patterns to detect attacks)
  │  /etc/fail2ban/ │
  │    filter.d/    │
  └──────┬──────────┘
         │
         ├──► Matches patterns (failed login, bot, etc.)
         │
  ┌──────▼──────────┐