You're here: Basic Principles of Use > How Blacklists, Whitelists, and Graylists Are Processed

previous topic  next topic

How Blacklists, Whitelists, and Graylists Are Processed

When creating or modifying a ruleset, you’ll find various attributes that allow you to specify a blacklist, a whitelist, or a graylist. In order to achieve the desired behavior, you need to understand how Stingray Application Firewall processes these lists.

Expand /Collapse All Subsections

If there’s only a blacklist

If there’s only a blacklist but no whitelist and no graylist, a Stingray Application Firewall function only looks at the blacklist. If the value that’s to be checked matches a pattern on the blacklist, the function returns FALSE, else it returns TRUE.

If there’s only a whitelist

If there’s only a whitelist but no blacklist and no graylist, a Stingray Application Firewall function only looks at the whitelist. If the value that’s to be checked matches a pattern on the whitelist, the function returns TRUE, else it returns FALSE.

If there’s a blacklist and a whitelist

Step-1:
First, Stingray Application Firewall looks at the blacklist. If the value that’s to be checked matches a pattern on the blacklist, the function returns FALSE and exits. In this case, Stingray Application Firewall doesn’t take any further look at the whitelist.

Step-2:
If there has been no match with the blacklist, Stingray Application Firewall next looks at the whitelist. If the value that’s to be checked matches a pattern on the whitelist, the function returns TRUE, else it returns FALSE.

If there’s a blacklist, a whitelist, and a graylist

Step-1:
First, Stingray Application Firewall looks at the blacklist. If the value that’s to be checked matches a pattern on the blacklist, the function returns FALSE and exits. In this case, Stingray Application Firewall doesn’t take any further look at the graylist and at the whiltelist.

Step-2:
If there has been no match with the blacklist, Stingray Application Firewall next looks at the whitelist. If the value that’s to be checked matches a pattern on the whiltelist, the function returns TRUE and exits. In this case Stingray Application Firewall doesn’t take any further look at the graylist.

Step-3:
If there has been no match with the blacklist and no match with the whitelist, Stingray Application Firewall next also looks at the graylist. If the value that’s to be checked matches a pattern on the graylist, the function returns FALSE, else it returns TRUE.

 

Note:  It then depends on the specific handler or selector, how it interprets the function’s result “TRUE” or “FALSE”. See Handlers and Preconditions (Selectors).

©  Riverbed Technology, all rights reserved   previous topic  next topic