Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
pfSense 2.x Cookbook

You're reading from   pfSense 2.x Cookbook Manage and maintain your network using pfSense

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher
ISBN-13 9781789806427
Length 298 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
David Zientara David Zientara
Author Profile Icon David Zientara
David Zientara
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Initial Configuration FREE CHAPTER 2. Essential Services 3. Firewall and NAT 4. Additional Services 5. Virtual Private Networking 6. Traffic Shaping 7. Redundancy, Load Balancing, and Failover 8. Routing and Bridging 9. Services and Maintenance 10. Backing Up and Restoring pfSense 11. Determining Hardware Requirements 12. Other Books You May Enjoy

Creating a firewall rule


This recipe describes how to create a firewall rule. We will create a firewall rule on the LAN interface to block the website http://appleinsider.com/ (207.58.150.178).

How to do it...

  1. Navigate to Firewall | Rules.
  2. Since we want to create a rule that applies to the LAN interface, click on the LAN tab:
  1. The table on the page will list all the current rules for the LAN interface. There will be twoAddbuttons below the table. Since we want to create a rule that will be appended to the top of the table, click on theAddbutton with the up arrow.
  1. Set the action in the Action drop-down menu to Block:
  1. You can leaveInterfaceset toLAN, Address Family set toIPv4, and Protocol set toTCP.
  2. In Destination, select Single host or alias in the drop-down menu and enter207.58.150.178in the adjacent text field:
  1. In theExtra Optionssection, enter a description in theDescriptiontext field.
  2. When you are done, click on the Save button.
  3. Click on the Apply Changes button to reload the firewall rules.

How...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image