Chapter 2. PF Configuration Basics
In this chapter, we’ll create a very simple setup with PF. We’ll begin with the simplest configuration possible: a single machine configured to communicate with a single network. This network could very well be the Internet.
Your two main tools for configuring PF are your favorite text editor and the pfctl
command-line administration tool. PF configurations, usually stored in /etc/pf.conf, are called rule sets because each line in the configuration file is a rule that helps determine what the packet-filtering subsystem should do with the network traffic it sees. In ordinary, day-to-day administration, you edit your ...
Get The Book of PF, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.