| 1 | = Firewall = |
| 2 | |
| 3 | pfSense firewall functions support traditional firewall, NAT, mark traffic flow, traffic shaping, scheduling based on time and even controlling based on IP reputation. |
| 4 | |
| 5 | == Aliases == |
| 6 | Here we can create recognizable names/ placeholders to resources like IP addresses, Port numbers. This is useful in creating multiple firewall rules against one resource as if you need to change the resource it is just a single location that we need to modify. |
| 7 | |
| 8 | The name of an alias can be entered instead of the host, network or port where indicated. The alias will be resolved according to the list defined. |
| 9 | If an alias cannot be resolved (e.g. because it was deleted), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped. |
| 10 | |
| 11 | **Create IP Alias** |
| 12 | |
| 13 | Go to Firewall > Aliases and click *+ Add* |
| 14 | |
| 15 | - Name: wwwserver |
| 16 | - Description: Web Server |
| 17 | - Type: Host(s) |
| 18 | - IP or FQDN: 10.XY.1.1 |
| 19 | and Save. If you click Add then it will allow you to add multiple IP addresses for a single name |
| 20 | |
| 21 | > you will have multiple options for type as Hosts, Ports, Networks, or Urls to IP lists, port list |
| 22 | |
| 23 | - Name: wwwport |
| 24 | - Description: Web Server HTTP & HTTPS ports |
| 25 | - Type: Port(s) |
| 26 | - Port: 80 |
| 27 | - Add Port |
| 28 | - Port: 443 |
| 29 | |
| 30 | and Save and Apply |
| 31 | |
| 32 | If you select **All**, you will find all aliases created. |
| 33 | |
| 34 | == Schedule == |
| 35 | Schedules act as placeholders for time ranges to be used in firewall rules. |
| 36 | |
| 37 | To create a schedule, Go to Firewall > Schedules > +Add |
| 38 | |
| 39 | - Schedule Name: Office_Hours |
| 40 | - Description: Normal Office hours |
| 41 | |
| 42 | == NAT == |
| 43 | |