This is an archive of past FreeBSD releases; it's part of the FreeBSD Documentation Archive.


Chapter 25 Firewalls

Table of Contents
25.1 Introduction
25.2 Firewall Concepts
25.3 Firewall Packages
25.4 The OpenBSD Packet Filter (PF) and ALTQ
25.5 The IPFILTER (IPF) Firewall
25.6 IPFW
Contributed by Joseph J. Barbish. Converted to SGML and updated by Brad Davis.

25.1 Introduction

Firewalls make it possible to filter incoming and outgoing traffic that flows through your system. A firewall can use one or more sets of “rules” to inspect the network packets as they come in or go out of your network connections and either allows the traffic through or blocks it. The rules of a firewall can inspect one or more characteristics of the packets, including but not limited to the protocol type, the source or destination host address, and the source or destination port.

Firewalls can greatly enhance the security of a host or a network. They can be used to do one or more of the following things:

After reading this chapter, you will know:

Before reading this chapter, you should:

This, and other documents, can be downloaded from

For questions about FreeBSD, read the documentation before contacting <>.
For questions about this documentation, e-mail <>.