Mark's OpenBSD Router Guide

Turning a PC Engines ALIX.2D3 into an OpenBSD 4.8 home router


Table of Contents

1. Introduction
1.1. Purpose and target audience
1.2. Why OpenBSD?
1.3. OpenBSD installation type
1.4. Prerequisites
1.5. Conventions used in this document
2. ALIX Board Setup
2.1. Booting and connecting
2.2. BIOS configuration
2.3. CMOS clock battery
3. OpenBSD Installation
3.1. PXE server setup
3.1.1. Ubuntu packages
3.1.2. Network configuration & NAT
3.1.3. DHCP server
3.1.4. TFTP server
3.1.5. Serial console
3.2. PXE booting
3.3. The OpenBSD installer
3.3.1. Basic setup
3.3.2. Partitioning
3.3.3. Installation sets
4. Basic System Configuration
4.1. Adding a regular user
4.2. fstab
4.3. Email delivery for system notifications
4.4. Network interfaces
4.4.1. Internet interface configuration
4.4.2. LAN interface configuration
4.4.3. Hostnames
4.4.4. Bringing it all online
4.5. Secure Shell daemon
4.6. Network Time Protocol daemon
5. Getting Security Updates
5.1. OpenBSD source code
5.2. Release errata
5.3. Rebuilding the kernel
6. Ports and Packages
6.1. OpenBSD packages
6.2. OpenBSD ports
6.2.1. Installing the Ports Collection
6.2.2. Using ports
6.3. Some caveats
7. Internet Gateway
7.1. Sysctl and packet forwarding
7.2. Firewall
7.2.1. pf.conf
7.2.2. ftp-proxy
7.3. DHCP daemon
7.3.1. dhcpd.conf
7.3.2. Starting the daemon
7.4. BIND
7.4.1. named.conf
7.4.2. Zone master files
7.4.3. Starting BIND
A. Copyright Notice and License
B. TODO

List of Figures

1.1. An ALIX as an OpenBSD router

List of Tables

1.1. Installation specifics
3.1. OpenBSD disk slices