To simplify the management and maintenance of firewall rules, port forwarding rules, and many other pfSense settings, you can create aliases rather than specifying IP addresses, ports, ... hard-coded in different locations of the pfSense configuration.
To manage and create aliases on pfSense, go to: Firewall -> Aliases.
As you can see, on pfSense, you can create aliases for IP addresses (or hostnames), ports, as well as URLs.
To create an alias for an IP address or host name, go to the "IP" tab and click: Add.
On the "Firewall / Aliases / Edit" page that appears, specify:
Then, click "Save" to save this new alias.
Note: you can also create other types of aliases by selecting one of these options for the "Type" setting:
Source : Aliases | pfSense Documentation.
Click "Apply Changes" for pfSense to use this new alias.
Plain Text
The alias list has been changed. The changes must be applied for them to take effect.
The new "IP" type alias appears.
To create an alias for a port, go to the "Ports" tab and click: Add.
To create an alias for a port, for example, an unusual port number, specify:
Then, click Save.
Click: Apply Changes.
The new port alias appears.
If you want to see all port aliases (regardless of the type of alias created), go to the "All" tab.
For the example, we will create a rule in the pfSense firewall using the aliases created previously.
To do this, go to: Firewall -> Rules.
Go to the "LAN" tab and click: Add.
For the destination, select "Single host or alias" and start typing the name of an IP alias.
In our case, we type "web" and we see that pfSense offers us our alias "WebServerDMZ" as a destination.
Note: this alias corresponds to the local IP address "10.10.0.10" of our web server.
For the destination port, start typing the name of a port alias.
In our case, we type "web" and we see that pfSense offers us our alias "WebSecondPort" as the destination port.
Note: this alias corresponds to the port "8080" on which our web server would also listen.
Which gives in our case:
Click "Save" to save this rule.
Click "Apply Changes".
The rule appears with the name of the aliases selected when creating the rule.
Which means that modifying one of these aliases will dynamically impact the behavior of this rule in the pfSense firewall.
If you hover over the name of an alias, you will be able to see its value, as well as its description.
In addition, you can easily modify these aliases by clicking on their names.
Firewall 5/21/2025
Firewall 6/6/2025
Firewall 6/20/2025
Firewall 5/23/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment