feature request: nested aliases
-
so, I find myself cleaning up my firewall rules, and given the amount of hosts needed for certain domains (HERE'S LOOKING AT YOU CLOUDFLARE) I have a lot of aliases that have hundreds, no joke, of entries, and given the fact that you cannot combine host IP aliases with say domain name aliases, I end up having multiple double rules for the same thing, like steam_domains and steam_hosts for ip addresses and domain names accordingly. if there was an ability to add nested aliases, that would help clean up the rule clutter for both myself and plenty of others I'm sure... is there any possible chance this could be a thing that gets added?
-
Nested aliases like that are maybe not a thing but you can have a combination of IP and FQDN.
Also there is pfBocker which can do some neat things, although it seems you have to separate by IP-version. -
Not sure what you're missing but you can nest aliases now.
Aliases can contain other aliases of the same type, and aliases can contain a mix of IP addresses and FQDNs.
If it's not letting you nest then you maybe chose the wrong types (like one is Host and another is Network)
-
A tip here is that a Host can be expressed as a Network with a /32 mask.
/Bingo
-
@high_voltage We create individual aliases for things and then place them all into other aliases. For example, you can have "Compliance", "Remote Admin", and "Vendor IPs" in a group called "IPS Bypass". Then you reference IPS bypass as a Suricata Passlist. That way all three groups can be separated out and added to but Suricata only references the one. Restart it on the interface and it will load the new IPs. Nesting hasn't been an issue for us.
-
@bingo600 okay, THAT is a useful tidbit, thank you, and thank you guys for the replies, I look forward to testing this out again then later today after I fix my mess of a problem I somehow introduced myself last night!
once again, thank you guys for making this possible, all of you developers and everyone with the pfsense team, THANK YOU. love this software.