Home > Store

Secure Architectures with OpenBSD

Register your product to gain access to bonus material or receive a coupon.

Secure Architectures with OpenBSD

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2004
  • Dimensions: 7" x 9-1/4"
  • Pages: 544
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-19366-0
  • ISBN-13: 978-0-321-19366-7

"This book works in tandem with the OpenBSD's manual pages. As a result, it will help many users grow and get the most from the system."—Theo de Raadt, OpenBSD project leader.

"The OpenBSD system intimidates many administrators who would benefit from using it. This book lets people start much higher up on the curve. Secure Architectures with OpenBSD not only presents the hows, but also shows some of the whys that only insiders know."Mike Frantzen, NFR Security

"Secure Architectures with OpenBSD explains all of the tasks an administrator has to know about to successfully maintain an OpenBSD server. It helps the reader save time by condensing the vast amount of information available in man pages into a compact form, reducing unneeded information, and explaining other things in much more detail and prose than a man page can afford."Daniel Hartmeier, the OpenBSD Project

"This book will become the de facto text for OpenBSD administration. Unix and BSD books abound, but none cover OpenBSD with the clarity and expertise of Palmer and Nazario. They explain the optimal way to configure and administer your OpenBSD machines, with a keen eye to security at all stages."Brian Hatch, coauthor of Hacking Exposed Linux and Building Linux Virtual Private Networks

Descended from BSD, OpenBSD is a popular choice for those who demand stability and security from their operating system. No code goes into OpenBSD without first undergoing a rigorous security check, making it a terrific choice for Web servers, VPNs, and firewalls.

Secure Architectures with OpenBSD is the insider's guide to building secure systems using OpenBSD. Written by Brandon Palmer and Jose Nazario, this book is a how-to for system and network administrators who need to move to a more secure operating system and a reference for seasoned OpenBSD users who want to fully exploit every feature of the system.

After getting readers started with OpenBSD, the authors explain system configuration and administration, then explore more exotic hardware and advanced topics. Every chapter of the book addresses the issue of security because security is integrated into almost every facet of OpenBSD. Examples appear throughout the book, and the authors provide source code and system details unavailable anywhere else. This goes well beyond the basics and gives readers information they will need long after they have installed the system.

Key topic coverage includes:
  • Installation and upgrade details
  • Basic system usage in OpenBSD versus other Unix systems
  • Third-party software via packages and the ports tree
  • SMTP services in OpenBSD
  • Web services with Apache
  • Using OpenBSD as a firewall
  • OpenBSD as a Kerberos V client and server
  • Use of Ipsec
  • Configuration and use of IPv6
  • Network intrusion detection

Secure Architectures with OpenBSD takes you inside OpenBSD, giving you the insights and expertise no system manual can provide. The companion Web site tracks advances and changes made to the operating system, and it contains updates to the book and working code samples.



Sample Content

Online Sample Chapters

Overview of OpenBSD

systrace in OpenBSD

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents



1. Introduction.

WhatWill This Book Cover?

Whom Is This Book For?

Book Syntax.

About the Authors.

Brandon Palmer.

Jose Nazario.

Contributing Authors.

Acknowledgments.

I. GETTING STARTED.

2. Overview of OpenBSD.

A Brief History of OpenBSD.

OpenBSD Security.

The OpenBSD Security Model.

The Audit.

Cryptography.

Proactive Security.

Which Applications Are and Are Not Secure?

Licensing.

The Feel of OpenBSD.

Filesystem Layout.

Security.

User Friendliness.

Packages and Ports.

Where Is OpenBSD Used?

3. Installation.

Supported Hardware.

System Preparation.

Getting the Files for Installation.

Selecting Boot Media.

Booting.

The Boot Configuration.

Creating a Serial Console.

Platform-Specific Information.

Boot Example.

Filesystem Partitioning.

A Private System.

A Multiuser System with Untrusted Users.

Server Partitioning.

Firewall.

Swap Space Allocation.

Partitioning Example.

Network Configuration.

Network Setup Example.

Base Software Set Installation.

Types of Installations.

Descriptions of the Installation Sets.

Installation Example.

Post-Installation.

Time Zone Information and Example.

After Reboot.

Customizing the Installation Process.

Creating Site-Specific Files.

Jumpstarting Installations.

Customized Installation Floppies.

Upgrading an Installation.

4. Basic Use.

General Filesystem Layout.

/bin and /sbin.

/usr/bin and /usr/sbin.

/var.

/tmp.

/usr/local.

/home.

/dev.

/sys.

/stand.

Start-up and Shutdown.

Logging In.

RC Scripts.

Default Processes.

Random PID Values.

Ports and Packages.

Networking in Brief.

APM: Automatic Power Management.

Mouse Control with wsmoused.

5. Basic Default Services.

inetd: The Super-Server.

The Use of TCPWrappers.

syslog: The Logging Service.

Electronic Mail with sendmail.

The Secure Shell Server sshd.

6. Online Help Resources.

Manual Pages.

Which Manual Page?

The Layout of the Manual.

Notable Manual Pages.

Added Sections.

Writing Your Own Manual Pages.

GNU Info Pages.

Converting Info to Manual Pages.

perldoc and Pod.

Package-Specific Documentation.

Other Sources.

7. X Window System.

Installation.

Quick Setup.

Troubleshooting Configuration.

xdm.

Window Managers.

Basic X Applications.

Remote Display.

X and Security.

II. SYSTEM CONFIGURATION AND ADMINISTRATION.

8. User Administration.

User Creation and Deletion.

Altering the Default New User Options.

vipw and Group Management.

Self Account Administration for Users.

User Limits with ulimit.

Process Accounting.

Privileged Users with sudo.

The sudoers File.

Logging with sudo.

Security of sudo.

Restricted Shells.

Restricting Users with systrace.

9. Networking.

Device Support.

Virtual Interface Drivers.

Kernel Messages.

Basic Setup.

Interface Media Options.

DNS Client Configuration.

DHCP.

Alias Addresses.

ARP: Address Resolution Protocol.

Diagnostic Information.

Routing.

Bridging.

PPP.

User Dial-up with PPP.

Listening Ports and Processes.

Troubleshooting.

10. inetd.

ftpd.

sftp.

telnetd.

shell.

fingerd.

identd.

comsat.

ntalkd.

popa3d.

Internal Services.

Kerberos Services.

RPC Services.

11. Other Installed Services.

tftpd.

rarpd/bootparamd.

The Remote Shell.

Time Services.

Mouse Services.

Printing.

dhcpd: The DHCP Server.

Requirements.

Configuration.

Starting dhcpd.

DHCP Leases.

Considerations to Note.

BOOTP Support.

12. Precompiled Third-Party Software: Packages.

An Overview of Packages.

Installation of Packages.

Local Installation Sources.

Network Installation Sources.

Options for Package Installation.

Uninstalling Packages.

Options for Uninstallation.

Upgrading Packages.

Information About Installed Packages.

Third-Party Software and Security.

13. The Ports Tree: Third-Party Software from Source.

Ports.

Getting the Ports Tree.

The Structure of the Ports Tree.

The Life Cycle of a Ports Build.

Building a Package from Ports.

Making Many Ports at Once.

Updating Specific Ports.

Troubleshooting.

14. Disks and Filesystems.

Disk Devices.

The Concatenated Disk Driver and RAIDFrame.

Filesystems.

New Filesystems.

Other Common Filesystems: ext2, msdos, iso9660.

Disk Quotas.

Soft Updates.

Other Tricks to Speed Up Access.

Disklabels.

Mounting Filesystems.

Pseudo-Disks with vnconfig.

Caring for Filesystems.

The Last Resort for Mistakes: scan ffs.

Listing Open Files and Devices.

15. Backup Utilities.

Introduction.

Devices.

Preliminaries.

Backup Strategies.

Data-Specific Options.

Authentication.

Available Tools.

cpio.

pax.

dump and restore.

tar.

Additional Tools from Ports and Packages.

Amanda.

GNU tar for Backups.

Backup Using rsync.

16. Housekeeping.

What Is Housekeeping?

Regular System Scripts.

Daily Checks.

Weekly Checks.

Monthly Checks.

Logfile Rotation.

Scheduling Facilities.

The cron System.

at.

Controlling Execution of at Jobs.

17. Mail Server Operations.

Introduction to Electronic Mail.

Overview of Electronic Mail in OpenBSD.

sendmail.

Virtual Hosting.

Security with STARTTLS.

Upgrading.

POP Server Administration.

IMAP Server Administration.

Mailing List Software.

E-mail Security.

MTA Security.

POP Security.

Message Security.

18. The Domain Name Services.

Introduction to DNS.

Configuring the Resolver.

The DNS Server named.

A Simple Caching-Only Nameserver.

DNS Security Issues.

Firewall Rules for DNS.

Upgrading named.

BIND8 and BIND9.

DJBDNS.

DNS Tools.

dig.

host.

nslookup.

nslint.

Resources.

Troubleshooting.

19. Web Servers with Apache.

Apache.

Quick Overview.

chroot.

SSL.

Using Dynamic Content in the chroot Environment.

Modules for Apache.

OtherWeb Servers.

Apache 2.0.x 19.4.2 thttpd.

MiscellaneousWeb Server Tools.

Squid.

mod load.

weblint.

analog.

20. OpenSSH.

Command-Line Use.

ssh.

scp.

ssh-keygen.

ssh-agent and ssh-add.

sshd.

Configuration.

Client Options.

Server Configuration Options.

Use in Other Packages.

Command Line.

Privilege Separation.

sftp.

III. ADVANCED FEATURES.

21. The OpenBSD Development Environment.

Introduction.

Editors.

Compilers and Languages.

Base Language Support.

Default Security Options.

Additional Languages from Ports.

Debuggers.

Additional Debugging Tools from Ports.

Tracing System Calls.

Additional Source Code Development Tools.

make.

automake.

Imake and xmkmf.

Libraries.

Shared Library and Object Tools.

Documentation.

22. Packet Filtering and NAT.

Introduction to Firewalls.

Introduction to PF.

The PF Configuration File.

Firewalls with PF.

Introduction to Network Address Translation.

NAT with PF.

Redirection.

Advanced PF Usage.

Tables.

Anchors.

Packet Scrubbing.

Rate Limiting.

Transparent Filtering.

Load Balancing.

Selective Filtering Based on the Operating System.

Logging with pflogd.

Examining the State Table with pfsync.

Determining Firewall Rules.

Opening Ports.

Authenticated Firewall Rules.

Firewall Performance Tuning.

23. NFS: The Network Filesystem.

Introduction to NFS.

NFS Client Configuration.

NFS Server Configuration.

Kernel Configuration.

Configuration of the Server.

NFS Security.

24. NIS and YP Services.

Introduction to NIS.

Client Setup.

Server Setup.

Security.

Resources.

25. Kerberos.

What Is Kerberos?

Why Use Kerberos?

Key Concepts in Kerberos.

Overall System Setup.

Clock Synchronization.

Build Support for Kerberos.

Client Setup.

Client Configuration.

Obtaining Tickets.

Kerberos Server Setup.

KDC Configuration.

keytab Creation.

Initialization Realm.

Controlling Access to the Administrative Server.

Starting the Kerberos Server.

Activating Kerberos V Services at Start-up.

Kerberizing Services.

Secure Shell.

telnet.

Windows 2000 and Kerberos V.

Security of the Kerberos Scheme.

Resources.

Troubleshooting.

26. Authentication Methods.

Authentication Overview.

passwd.

skey.

S/Key Setup.

Getting Passphrases.

sshd Setup and Usage with S/Key.

Additional Login Classes.

lchpass.

chpass.

Token-Based Authentication Methods.

Kerberos.

radius Method.

reject Method.

27. IPsec: Security at the IP Layer.

Introduction.

IPsec Basics.

Creating x509 Keys.

Setting Up IPsec.

Kernel Requirements.

Endpoint Setup.

Manual Configuration.

Automatic Configuration.

Testing/Debugging the Configuration.

tcpdump.

ipsecadm monitor.

/kern/ipsec.

/var/run/isakmpd.pcap.

/var/run/isakmpd.report.

netstat -nr.

Example VPN Configurations.

Transport: OpenBSDÐOpenBSD + Tunnel: NetÐNet.

Transport: None + Tunnel: NetÐNet.

Transport: OpenBSDÐOpenBSD + Tunnel: None.

Wireless Laptop to a Secure Gateway.

OpenBSDÐOpenBSD Through an OpenBSD PF NAT Firewall.

28. IPv6: IP Version 6.

How IPv6Works.

Special Addresses.

Tunnelling IPv4 and IPv6.

Kernel Setup.

Userland Setup.

Normal Use.

Manual Configuration.

Configuring a Router for IPv6.

Configuring a Host for IPv6 Automatically.

Getting on the IPv6 Network.

Freenet6.

IPv4 and IPv6 Proxying.

Some IPv6-Ready Applications.

Service Support for IPv6.

sendmail.

Secure Shell Daemon.

DNS.

Apache.

Routing Daemons.

DHCP Daemons.

IPsec with ISAKMP.

Kerberos V 400

Programming with IPv6.

IPv6 and Security.

Firewalling IPv6 with pf.

Resources.

Troubleshooting.

29. systrace.

Introduction.

Example Use.

Creating Policies.

Editing Policies.

The Benefit of a Local Caching Name Server.

Privilege Elevation with systrace.

Where to Use systrace.

System Coverage with systrace.

Additional Uses for systrace.

Software Testing.

IDS Logging.

Limitations of systrace.

Resources.

30. Network Intrusion Detection.

Introduction.

Snort.

Installation.

Configuration.

Loading New Rules.

Snort Add-Ons.

Integration with PF.

Other IDS Solutions.

Important Notes.

Resources.

31. Upgrading.

Upgrading an Installation.

CVS and Branches.

System Preparation.

Upgrading from Binary Sets.

Upgrading from Source.

Upgrading Configuration Files.

Using mergemaster.

Manual Merging.

Binary Format Changes and Upgrades.

32. Kernel Compilation.

Why Recompile a Kernel?

Why Not Reconfigure and Rebuild Your Kernel?

Where to Get the Source and How to Compile.

Information to Be Set in the Configuration Files.

Tweaking a Built Kernel.

Kernel-Userland Synchronization.

33. Bug Reports with OpenBSD.

Introduction.

Diagnosing a Problem.

Check with Others.

Develop a Solution.

The OpenBSD Bug Tracking System.

Reporting Bugs with sendbug.

IV. APPENDIXES.

A. CVS Basics.

How to Set Yourself Up for CVS.

CVS and the pserver.

Using CVS.

CVS and Tags.

Speeding Up CVS.

Choosing a Mirror.

Compression.

Ignoring Parts of the Tree.

Resources.

B. Applying Source Code Patches.

What Are Patches?

The Structure of a Patch.

Using the patch Tool.

Obtaining Patches for OpenBSD.

C. Tuning the Kernel with sysctl.

What Are Tunable Parameters?

Using sysctl.

Reading Variables.

Writing to Variables.

The Variable Hierarchy.

Filesystem Improvements.

D. Admesg Walkthrough.

What Does dmesg Give Us?

What Do the Messages Mean?

The Boot Messages.

E. Core File Evaluation.

Applications That Crashed.

Kernel Crash Dump Analysis.

Using ddb.

Post-Reboot Analysis.

Examining the Process Table.

F. Other OpenBSD Tools and Resources.

Web Pages.

Software Mirrors.

BSD-Specific Software.

Generic Software Sites.

Mailing Lists.

User Groups.

Newsgroups.

RFC Availability.

G. IPsec m4.
Index.

Index

Download the Index file related to this title.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020