Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn pfSense 2.4
Learn pfSense 2.4

Learn pfSense 2.4: Get up and running with Pfsense and all the core concepts to build firewall and routing solutions

eBook
AU$14.99 AU$53.99
Paperback
AU$67.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learn pfSense 2.4

Installing pfSense

As computer networks grow in size and complexity, there is an increasing role for applications that enable us to interconnect networks and filter network traffic. pfSense is one such application. This book endeavors to enable relative newcomers to the world of computer networking to utilize pfSense in building their own networks. In fact, by the end of this chapter, even a pfSense neophyte should be able to determine where to deploy pfSense within a network, which hardware to select, and how to install pfSense—everything that is needed to get a pfSense firewall/router up and running for the first time.

We assume that most readers of this book will be using pfSense on a home network or a small office/home office (SOHO) network, and we have tailored the content accordingly. Fundamental networking concepts will be described in some detail, as well as the...

Technical requirements

To follow along with this chapter, you will need a PC that's capable of running pfSense. The specifications for such a PC will be discussed in detail in the section regarding hardware sizing guidelines, but in brief, you will need a PC with a 64-bit, AES-NI-capable processor, 1 GB of RAM, and 1 GB of storage. You may also run pfSense in a virtual machine if your PC meets these requirements.

Networking fundamentals

Computer networking can be defined as an interconnection between two or more computers that allows the computers to share resources. This definition describes both the minimum requirement of having a network—at a minimum, there must be a physical means of connecting the computers—and the objective of networking, which is to share resources (examples include files, computational power, and many others).

The seven-layer OSI model

At this point, we will introduce a conceptual model that will hopefully clarify a number of basic networking concepts—the Open Systems Interconnect (OSI) reference model. This model was created by the International Organization for Standards (ISO) in 1978...

Typical pfSense deployment scenarios

Once you have decided to add a pfSense system to your network, you need to consider how it is going to be deployed on your network. pfSense is suitable for a variety of networks, from small to large ones, and can be employed in a variety of deployment scenarios. In this section, we will cover the following possible uses for pfSense:

  • Perimeter firewall
  • Router
  • Switch
  • Wireless router/wireless access point

As this book is aimed at beginner pfSense users, we will mainly focus on the first two items, as these are the most common uses of a pfSense device. We will, however, briefly discuss the latter two items.

The most common way to add pfSense to your network is to use it as a perimeter firewall. In this scenario, your internet connection is connected to one port on the pfSense system, and your local network is connected to another port on the...

Hardware requirements and sizing guidelines

Once you have decided where to deploy pfSense on your network, you should have a clearer idea of what your hardware requirements are. As a minimum, you will need a CPU, motherboard, memory (RAM), some form of disk storage, and at least two network interfaces (unless you are opting for a router on a stick setup, in which case you only need one network interface). You may also need one or more optional interfaces.

Minimum requirements

The starting point for our discussion on hardware requirements is pfSense's minimum specifications. As of January 2016, the minimum hardware requirements are as follows (these specifications are from the official pfSense site, https://www.pfsense...

Installing pfSense

You will also want to download the MD5 checksum file in order to verify the integrity of the downloaded image. Verifying the integrity of downloads serves two purposes:

  • It ensures that the download completed
  • It safeguards against a party maliciously tampering with the images

In order to safeguard against the latter, however, be sure to download the checksum from a different mirror site than the site from which you downloaded the image. This provides an additional measure of security should an individual mirror site be compromised. Windows has several utilities for displaying MD5 hashes for a file. Under BSD and Linux, generating the MD5 hash is as easy as typing the following command:

md5 pfSense-LiveCD-2.4.3-RELEASE-amd64.iso

This command will generate the MD5 checksum for the 64-bit Live CD version for pfSense 2.4.3. Compare the resulting hash with the contents...

Initial pfSense configuration

If the installation was successful, you should see a screen similar to the one shown in the following screenshot:

The console menu in pfSense 2.4.3

Some of the initial configuration must be done at the console, while some aspects of the configuration, such as VLAN and DHCP setup, can be done from either the console or the web GUI. Configuration takes place in two phases. Some configuration must be done at the console, including interface configuration and interface IP address assignment. Some configuration steps, such as VLAN and DHCP setup, can be done both at the console and within the web GUI. On initial bootup, pfSense will automatically configure the WAN and LAN interfaces, according to the following parameters:

  • Network interfaces will be assigned to device IDs em0, em1, and so on
  • The WAN interface will be assigned to em0, and the LAN interface...

Summary

In this chapter, we began by discussing networking basics using the seven-layer OSI model as a point of departure. Although not an exhaustive tutorial on networking, the first section should help provide a basic idea of where pfSense fits into the structure of a typical network. We also covered typical pfSense deployment scenarios as well as the hardware requirements and sizing guidelines. We also covered how to download and install pfSense and how to perform basic system configuration using both the console and the Setup Wizard in the web GUI. Finally, we covered some additional setup options, and how to enable SSH login.

In the next chapter, we will cover how to complete pfSense configuration, including how to add interfaces, how to set up pfSense as a DHCP server, how to set up VLANs, and how to back up and restore your system.

...

Questions

  1. Identify all seven layers of the seven-layer OSI model of networking.
  2. (a) On what layer does the IP portion of the TCP/IP protocol suite reside? (b) On what layer does TCP reside?
  3. Identify the ranges of the Class A, B, and C private networks.
  4. Identify the three types of IPv4 addresses.
  5. A desktop system has the following specifications. Can the current version of pfSense be installed onto it?
    • Pentium 4 1.8 GHz; 32-bit processor
    • 2 GB RAM
    • 250 GB IDE drive
    • DVD-ROM optical drive
  6. Identify the file system options that are available when installing pfSense.
  7. Under what circumstances is it possible to login to the pfSense console through the WAN port? Assume that SSH login has not yet been enabled.
  8. If you configured both the WAN and LAN interfaces from the console, but you did not set up a DHCP server on the LAN interface, what additional step must be done if you want access...

Further reading

  • Hunt, C. (2002). TCP/IP network administration (3rd ed.). Sebastopol, CA: OReilly. Chapter 1, Overview of TCP/IP, provides a good summary of the seven-layer OSI model and the TCP/IP protocol architecture.
  • Kurose, James F. and Ross, Keith W. (2000). Computer Networking: A Top-Down Approach Featuring the Internet. Boston: Addison Wesley. This book is organized around the seven-layer OSI model, so it is good supplemental reading for the part of this chapter which discusses that model.
  • Y. Rekhter; B. Moskowitz; D. Karrenberg; G. J. de Groot; E. Lear (February 1996). Address Allocation for Private Internets (https://tools.ietf.org/html/rfc1918). Network Working Group IETF. This is the IETF's RFC defining private networks.
Left arrow icon Right arrow icon

Key benefits

  • Build firewall and routing solutions with PfSense.
  • Learn how to create captive portals, how to connect Pfsense to your HTTPS environment and so on.
  • Practical approach towards building firewall solutions for your organization

Description

As computer networks become ubiquitous, it has become increasingly important to both secure and optimize our networks. pfSense, an open-source router/firewall, provides an easy, cost-effective way of achieving this – and this book explains how to install and configure pfSense in such a way that even a networking beginner can successfully deploy and use pfSense. This book begins by covering networking fundamentals, deployment scenarios, and hardware sizing guidelines, as well as how to install pfSense. The book then covers configuration of basic services such as DHCP, DNS, and captive portal and VLAN configuration. Careful consideration is given to the core firewall functionality of pfSense, and how to set up firewall rules and traffic shaping. Finally, the book covers the basics of VPNs, multi-WAN setups, routing and bridging, and how to perform diagnostics and troubleshooting on a network.

Who is this book for?

This book is towards any network security professionals who want to get introduced to the world of firewalls and network configurations using Pfsense. No knowledge of PfSense is required

What you will learn

  • Install pfSense
  • Configure additional interfaces, and enable and configure DHCP
  • Understand Captive portal
  • Understand firewalls and NAT, and traffic shaping
  • Learn in detail about VPNs
  • Understand Multi-WAN
  • Learn about routing and bridging in detail
  • Understand the basics of diagnostics and troubleshooting networks

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 31, 2018
Length: 346 pages
Edition : 1st
Language : English
ISBN-13 : 9781789349009
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 31, 2018
Length: 346 pages
Edition : 1st
Language : English
ISBN-13 : 9781789349009
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 189.97
Network Security with pfSense
AU$45.99
Learn pfSense 2.4
AU$67.99
Mastering pfSense
AU$75.99
Total AU$ 189.97 Stars icon
Banner background image

Table of Contents

13 Chapters
Getting Started with pfSense Chevron down icon Chevron up icon
Installing pfSense Chevron down icon Chevron up icon
Configuring pfSense Chevron down icon Chevron up icon
Captive Portal Chevron down icon Chevron up icon
Additional pfSense Services Chevron down icon Chevron up icon
Firewall and NAT Chevron down icon Chevron up icon
Traffic Shaping Chevron down icon Chevron up icon
Virtual Private Networks Chevron down icon Chevron up icon
Multiple WANs Chevron down icon Chevron up icon
Routing and Bridging Chevron down icon Chevron up icon
Diagnostics and Troubleshooting Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(1 Ratings)
5 star 0%
4 star 0%
3 star 100%
2 star 0%
1 star 0%
SwedishMike Apr 08, 2019
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This is a decent introduction to pfSense and I fully realise that an introductory book can't cover everything. It covers the basics like installation and initial configuration.There are some things that I think could have been done differently - like for example using 'block a website' as a firewall example feels a bit weird. Maybe showing how to block allow different ports outbound for different hosts could have been a better example - or possibly a second example.One thing I definitely think is missing is talking about logs on the device. Including how to get logs off the device onto a syslog server and/or something like ELK or Splunk.If you have experience of firewalls this book might not be for you - if you're starting on your journey with pfSense it will probably make sense. Pun intended.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.