Professional Documents
Culture Documents
MASTERING PFSENSE 2 4 Master The Art of Managing Securing and Monitoring Your On Premises and Cloud Network Using The Powerful Pfsense 2 4 3 Zientara
MASTERING PFSENSE 2 4 Master The Art of Managing Securing and Monitoring Your On Premises and Cloud Network Using The Powerful Pfsense 2 4 3 Zientara
https://textbookfull.com/product/mastering-pfsense-master-the-
art-of-managing-securing-and-monitoring-your-on-premises-and-
cloud-network-using-the-powerful-pfsense-2-4-3-2nd-edition-david-
zientara/
https://textbookfull.com/product/network-analysis-using-
wireshark-2-cookbook-practical-recipes-to-analyze-and-secure-
your-network-using-wireshark-2-2nd-edition-nagendra-kumar-nainar/
https://textbookfull.com/product/chemistry-2-vce-units-3-4-1st-
edition-stokes/
https://textbookfull.com/product/proclus-commentary-on-plato-s-
timaeus-book-3-volume-4-proclus-on-the-world-soul-part-2-proclus/
Mastering Embedded Linux Programming Second Edition
Unleash the full potential of Embedded Linux with Linux
4 9 and Yocto Project 2 2 Morty Updates Chris Simmonds
https://textbookfull.com/product/mastering-embedded-linux-
programming-second-edition-unleash-the-full-potential-of-
embedded-linux-with-linux-4-9-and-yocto-project-2-2-morty-
updates-chris-simmonds/
https://textbookfull.com/product/introducing-bootstrap-4-create-
powerful-web-applications-using-bootstrap-4-5-second-edition-
jorg-krause-krause-jorg/
https://textbookfull.com/product/introducing-bootstrap-4-create-
powerful-web-applications-using-bootstrap-4-5-second-edition-
joerg-krause/
https://textbookfull.com/product/beginning-swift-master-the-
fundamentals-of-programming-in-swift-4-safari/
https://textbookfull.com/product/mastering-phpmyadmin-3-4-for-
effective-mysql-management-1st-edition-delisle-marc/
Mastering pfSense
Second Edition
David Zientara
BIRMINGHAM - MUMBAI
Mastering pfSense Second
Edition
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, without the prior written permission of the publisher, except in the case of brief
quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express or implied.
Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages
caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the
accuracy of this information.
ISBN 978-1-78899-317-3
www.packtpub.com
To my mother, Isabel Zientara, and to the memory of my father, Francis, for their constant encouragement
and support, and for always keeping me focused on what is important. To my siblings, who have always been
there when needed.
mapt.io
Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
To my parents and best friends. The love that stayed, the love I know. Thank you.
Packt is searching for authors
like you
If you're interested in becoming an author for Packt, please visit autho
rs.packtpub.com and apply today. We have worked with thousands of
developers and tech professionals, just like you, to help them share
their insight with the global tech community. You can make a
general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Table of Contents
Title Page
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
Preface
Conventions used
Get in touch
Reviews
Technical requirements
pfSense configuration
Summary
Questions
Further reading
Technical requirements
SSH login
DHCP
DNS
DNS resolver
General Settings
Access Lists
DNS forwarder
DDNS
DDNS updating
Captive portal
Implementing captive portal
RADIUS authentication
Other settings
SNMP
Summary
Questions
3. VLANs
Technical requirements
Basic VLAN concepts
Link aggregation
Add firewall rules for VLANs
Troubleshooting VLANs
General troubleshooting tips
Summary
Questions
An example network
Firewall fundamentals
Floating rules
Example rules
Technical requirements
NAT essentials
Outbound NAT
Example – filtering outbound NAT for a single network
1:1 NAT
Example – mapping a file server
Port forwarding
Example 1 – setting up DCC
Troubleshooting 
Summary
Questions
6. Traffic Shaping
Technical requirements
Traffic shaping essentials
Queuing policies
Priority queuing
Class-based queuing
Hierarchical Fair Service Curve
Configuring traffic shaping in pfSense
The Multiple LAN/WAN Configuration wizard
Questions
Further reading
7. Virtual Private Networks
Technical requirements
VPN fundamentals
IPsec
L2TP
OpenVPN
AES-NI
Choosing a VPN protocol
Configuring a VPN tunnel
IPsec 
L2TP
OpenVPN
OpenVPN server configuration
OpenVPN client configuration
Client-specific overrides
Server configuration with the wizard
OpenVPN Client Export Utility
Example – site-to-site OpenVPN configuration
Troubleshooting
Summary
Questions
8. Redundancy and High Availability
Technical requirements
Basic concepts
Server load balancing
Example – load balancer for a web server
Further reading
9. Multiple WANs
Technical requirements
Basic concepts
Third-party packages
Example – multi-WAN and CARP
Troubleshooting
Summary
Questions
10. Routing and Bridging
Technical requirements
Basic concepts
Bridging
Routing
Routing
Static routes
Quagga OSPF
FRRouting
Policy-based routing
Bridging
Bridging interfaces
Special issues
Bridging example
Troubleshooting
Summary
Questions
Basic considerations
Installing packages
Important packages
Squid
Issues with Squid
pfBlockerNG
ntopng
Nmap
HAProxy
Other packages
Snort
FRRouting
Zabbix
Summary
Questions
Further reading
Troubleshooting basics
Network loops
Routing issues
Port configuration
Black holes
Physical issues
Wireless issues
RADIUS issues
pfSense troubleshooting tools
System logs
Dashboard
Interfaces
Services
Monitoring
Traffic graphs
Firewall states
States
States summary
pfTop
tcpdump
tcpflow
traceroute
netstat
Troubleshooting scenarios
Questions
Assessments
Chapter 1 – Revisiting pfSense Basics
from the command line and the web GUI, and provides examples
showing how to configure some commercially available managed
switches.
tps://www.packtpub.com/sites/default/files/downloads/MasteringpfSenseSecondEdition_C
olorImages.pdf .
Conventions used
There are a number of text conventions used throughout this book.
Points to be Considered
Paddles
The best material for paddles is good selected spruce, and while
this material is not so heavy nor will stand hard knocks so well as
maple or birch, its lightness makes it the choice of many paddlers.
For rough work the maple paddle may be chosen, and while heavier
than spruce, it possesses greater elasticity, and this spring offsets to
a great extent the larger weight of material. Cedar, ash, and pine
make excellent paddles, and the Indians often fashion them from
these woods.
In selecting a single-blade paddle, it is well to remember that the
length will depend on the paddler’s height, for it is self-evident that a
tall man will require a longer paddle than a short person can
conveniently swing. Hence the usual rule is to pick out a paddle as
long as the paddler is tall, and is a sensible one to follow, although
there are exceptions. Personal preferences differ, and, also, a longer
paddle will be required when paddling from seats than when a
kneeling position is adopted. For general use, the stern paddle of
5¹⁄₂-ft. length will be long enough, while the bow paddle of 5 ft. will
probably suit the average man. Ladies, boys, and girls will need
shorter lengths.
The shape of the paddle blades varies somewhat, and while some
prefer a broad blade and others a narrow one, it is well to pick out
one of medium size. Large blades are tiresome for long trips, while
the narrow blade balances best in the hand, but affords less
resistance in the water. When picking out a spruce paddle, see that
there is plenty of wood at the juncture of the blade and shaft, for it is
at this point most paddles break. Spruce being a comparatively soft
wood, it will fur badly, and the blades should be fitted with copper
tips to prevent splitting. Maple paddles do not need this protection,
but most builders err in making them too thick and heavy. Pick out
the lightest and thinnest maple paddle that can be found, one that is
fashioned of straight-grained wood, and test it for elasticity before
making the purchase. A couple of coats of spar varnish will keep the
paddles in good shape, but as a varnished surface is hard on the
hands, most veteran canoeists varnish the blades and finish the
shafts with oil. An extra paddle will, of course, be carried on all long
trips.
Canoe Yoke Equipped with Adjustable Shoulder Pads, and the Pneumatic
Carrier That Serves Two Purposes
When the weight of the canoe does not exceed 65 lb., it is easily
carried by placing the paddle blades over the center thwart, the ends
under the next after thwart and lashing them securely in place; then
placing a sweater or coat over the shoulder to form a pad on which
to rest the paddles to carry the canoe in an inverted position.
However, when long portages must be undertaken the “neck yoke,”
or the pneumatic canoe yoke, may be used. The neck yoke is
fashioned from a block of pine, or other soft wood, to fit the curve of
the shoulders, and the ends fit in the grooves made in the gunwales;
or small pieces of wood may be screwed to the under side of the
gunwale to serve the same purpose. The pneumatic cushion, which
fits around the neck and is provided with straps to secure the
paddles in position, is well-liked by some canoeists, but the wood
neck yoke fits so well that it is hard to find a good substitute. A large
and heavy craft can be easily carried by two men by turning the craft
bottom side up and resting the weight on the back and shoulders. If
the man at the stern lets the gunwale rest on his shoulders and his
companion lower the front thwart to rest against his neck and
shoulders, both may carry a light pack of duffle and will have a clear
view of the trail ahead.
To Practice Batting for Baseball Playing
The material for the heads and the blades was glued up and
finished to the sizes given at A and B. The material was cut to gauge
lines on the band saw, the blades being a scant ¹⁄₈ in. in thickness,
and the stocks, ³⁄₈ in. Two of each were cut from each prepared
piece, first from one side and then from the other. They were then
faced off on both sides, and two more pieces cut. With careful
cutting, six blades and six stocks were made from each piece. This
left one side of each piece to be planed after sawing. The holes for
the screws were drilled with a small hand drill.
Stock and Blade Material for Making the Parts, and the Jig for Assembling
For assembling, a jig was made by nailing a piece of stock, ³⁄₈ in.
thick, to a straight drawing board. One end of the piece was planed
straight and true before it was fastened in place. Stops were
provided to locate the stock and hold the blade square with it.
Wedges were used to keep both stock and blade against the stops
while the screws were inserted. The wedges were not driven with a
hammer, but pushed in firmly with the fingers.
¶Insert a scratch awl in common hard soap for hardening, and it will
need no drawing after the plunge.
Paddling Your Own Canoe
by
Stillman Taylor
PART II—The Knack of
Handling the Paddle
The Stroke of the Paddle is Made with the Body Motionless, One Hand
Grasping the Shaft of the Paddle and the Other Holding It a Short Distance
above the Blade