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 an alias

This recipe describes how to use, create, edit, and delete aliases. Aliases provide a degree of separation between our rules and values that may change in the future (for example, IP addresses, ports, and so on). It's best to use aliases whenever possible.

How to do it...

  1. Browse to Firewall | Aliases.
  2. Click the "plus" button to add a new alias.
  3. Add a Name for the alias.
  4. Add an optional Description.
  5. Select an alias Type and finish the configuration based on that selection.

    See the following There's more section for details on each alias type (Hosts, Networks, Ports, OpenVPN Users, URL, and URL Table).

    How to do it...
  6. Save the changes.
  7. Apply changes, if ...

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