Creating a firewall rule

This recipe describes how to create a firewall rule.

Getting ready

As an example, we will create a firewall rule to allow the web traffic forwarded in by the NAT port forward rule we created in the previous recipe. If you've been following along, you'll know that the previous recipe automatically created the firewall rule we need, but instead we could have specified None for Filter Rule Association and used this recipe to create the rule ourselves.

How to do it...

  1. Browse to Firewall | Rules.
  2. Select the WAN tab.
  3. Click the "plus" button to create a new firewall rule.
  4. Specify the WAN Interface.
  5. Specify the TCP Protocol.
  6. Specify any as the Source.
  7. Specify any as the Source Port Range.
  8. Specify Webserver1 as our Destination.
  9. Specify HTTP ...

Get pfSense 2 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.