Book Image

pfSense 2 Cookbook

Book Image

pfSense 2 Cookbook

Overview of this book

pfSense is an open source distribution of FreeBSD-based firewall that provides a platform for flexible and powerful routing and firewalling. The versatility of pfSense presents us with a wide array of configuration options, which makes determining requirements a little more difficult and a lot more important, compared to other offerings. Through this book you will see that pfSense offers numerous alternatives to fit any environment's security needs. pfSense 2.0 Cookbook is the first and only book to explore all the features of pfSense, including those released in the latest 2.0 version. With the help of step-by-step instructions and detailed screenshots of the pfSense interface you will be able to configure every general and advanced feature from creating a firewall rule to configuring multi-WAN failover. Each recipe includes tips and offers advice on variations of the topic or references to other related recipes and additional information that can be found from other sources. pfSense 2.0 Cookbook covers the gamut of available features and functionality. The first three chapters will take you from a non-existent system to a basic pfSense firewall. The next chapter focuses on configuring any number of the VPN services available, a very important and sought-after feature for anyone implementing a firewall. The following two chapters describe how to configure the most advanced features available in pfSense; features that may only be relevant to the most experienced network admins. Chapter 7 is dedicated to understanding and configuring the "grab-bag" of features that are available in pfSense, but are often stand-alone options and unrelated to each other. The first appendix explains how to use the status monitoring tools available for many of the features. The second appendix wraps up with helping you to decide how and where pfSense may be incorporated into your system and what type of hardware is required based on your throughput needs.
Table of Contents (16 chapters)
pfSense 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Choosing a Form Factor


This recipe describes how to choose the best hardware configuration based on our firewall requirements.

Getting ready

It’s easiest to choose a form factor if we’ve already decided on the rest of our prerequisites:

  • Deployment scenario

  • Throughput requirements

  • Interface requirements

  • Image platform

How to do it…

Evaluate the different types of form factors:

  1. Small form: Energy-efficient, quiet (often silent), small foot print form factor.

  2. Desktop: Standard desktop hardware. Easily upgradable and most people will have an older machine lying around that’s perfectly suited for running pfSense.

  3. Server: Larger or more complex environments may require server class hardware.

Consider if any of our requirements require special hardware. In our case, we need moderate throughput and aren’t using any packages that require special hardware. Low-power consumption and silent operation is important to our small office, so we’re opting for small form factor.

How it works...

The choice of form factor has more to do with our environment than our pfSense installation. Every environment will vary and form factors will differ. Thanks to the vast variety of computer hardware on the market, any deployment of pfSense is possible on any type of form factor. While most standard platforms are installed on desktops, and most embedded platforms on appliances, there’s no reason they can’t be swapped if we’ve equipped our hardware properly.

There’s more...

There’s no reason we can’t use a laptop! If we have an old laptop lying around, it would probably make a great, although unusual, pfSense machine. The biggest obstacle we’d likely face is adding additional NICs, but a USB Ethernet Adapter ought to work, although they are never recommended for production systems.

Note

As with all open-source projects, it’s best to refer to the project’s hardware compatibility list before adding new hardware.

Installing the embedded platform on a desktop/server/laptop

Some people really enjoy the convenience of running a system from a compact flash card. Testing a new version of pfSense, or reverting back to a backup, is as easy as swapping CF cards. Most desktops don’t come with a CF card reader installed, but there are plenty of adapters to choose from:

Installing the standard platform on an appliance

Of all the different installation scenarios, installing the standard version on an appliance equipped with a hard drive can be the most challenging. Appliances are meant to be small, so if they’ve already fit a hard drive in there you can bet there won’t be an optical drive. Secondly, most appliances don’t have built-in video-out which means another means of connection (usually serial or USB) is required.

We’ll have to refer to our manufacturer’s documentation if we find ourselves in this situation. There isn’t much documentation available on the subject, but the pfSense guys have posted instructions on how to install the standard image on a Netgate Hamakua at http://doc.pfsense.org/index.php/Full_install_o n_Netgate_Hamakua.

See also