How do I create Alias of Aliases (nested aliases) in v2?
-
This link http://doc.pfsense.org/index.php/2.0_New_Features_and_Changes#Aliases speaks of nest aliases or aliases in aliases.
I'm running
2.0.2-RELEASE (i386)
built on Fri Dec 7 16:30:38 EST 2012
FreeBSD 8.1-RELEASE-p13but I cant find any way to create nested aliases in the aliases section. I just have Hosts, Networks, Ports, URL & URL Table.
Any suggestions?
-
well. You create a few aliases with something like IPs or networks or even URLs. You can also do this with ports.
Then in another alias, when it asks for a hostname, put an entry in for each of the aliases you just created. Like:Alias1
Host: 10.1.1.10/32Alias2
Host: 10.1.1.11/32Alias3
Host: 10.1.1.12/32Alias4
Host: 10.1.1.13/32Alias: NonStandardWebServer
Host: Alias1
Host: Alias4Alias: StandardWebServer
Host: Alias2
Host: Alias3Alias:SSLWebServers
host: Alias2
host: Alias3
host: Alias4Then you can create rules based on what you like port wise.
-
I think I need to add more info because when I tried using HOST(S) to nest the Aliases I get the error message
The alias(es): Alias1 Alias2 cannot be nested because they are not of the same type.
The Aliases I'm trying to nest are URL Tables if that matters and each URL Table Alias points to a txt file with a large number of IP Address'es or address ranges.
-
You can't nest URL table aliases, the nesting code can't include them the way it can other standard host/network aliases.
-
ok, thanks.