O'Reilly logo

pfSense 2 Cookbook by Matt Williamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required