Discussion: Sanity checking externally-sourced aliases

Started by pfry, November 29, 2026, 08:00:40 PM

Previous topic - Next topic
I've been considering ways to sanity check externally-sourced aliases - URL address lists in particular. There have been a few times when RBLs/DNSBLs have failed or been shut down in a less-than-friendly fashion; I see that as a risk for any external data source. Trust should be limited.

The problem, of course, is how to sanity check an address list. A few simpler options:
  • Communication failure
  • Entropy (changes since last load)
  • Block size (mask)
  • Reserved blocks (against another alias)
Actions could be block (entire update), filter (individual element, if appropriate), and/or alert. Alert options could be (e.g.) e-mail and/or SNMP trap. Blocked or filtered updates could be released by an admin.

Provide a diff; the diff would be between the current alias and the latest update, as I don't see how retaining intermediates would be useful (enough to bother). A count could be included in an e-mail alert; optionally, the diff itself, perhaps with a size limit (so you don't get your geoip db e-mailed to you).

So: opinion? (Bad idea? Good idea? Got a better idea?)

I check them on a at least a quarterly basis. Bookmark the websites of each one and see the last update of the list. Some lists can be large too, you don't want them soaking up all the assigned memory to just one list.

I used to have several groups of URL aliases, but if they're in one single list, there is an opportunity for the parser to merge duplicate entries.

I do feed them into an alias group. In this group, is another list that has a ! before each entry.I found this out the hard way when a list from Firehol had non routable address blocks. An external list does have the potential to ruin your internal network. A sanitize list should have items like !127.0.0.0/8,!192.168.0.0/16 etc, all the CIDR address blocks that have no business in external lists. Having these will exclude against entries, like allow entries for DNS block lists