Skip to main content
Skyhigh Security

Working with Rules and Rule Sets

A web security policy is implemented on Web Gateway, which includes various rules. When a situation arises where a rule applies, it performs an action. You can configure this policy by modifying its rules to adapt them to the needs of your organization.

To configure a web security policy, you modify its rules, dealing with them on different levels. A rule consists of various rule elements. It is included in a set of rules. So, when dealing with a rule, you are dealing with a complete rule, or with one or more of its elements, or with its rule set.

Access a rule set

Access a rule set on the user interface of Web Gateway to work with its rules and their elements.

Task

  1. Select Policy | Rule Sets.
    The Rule Sets tab appears showing the rule sets that are implemented in the navigation pane.
  2. Click the rule set that you want to access.
    A view of the rule set appears in the configuration pane.

You can now work with the rules and rule elements of the rule set.

Enable a rule set for cloud use

You can enable a rule set for cloud use.

Task

  1. Select Policy | Rule Sets.
  2. On the rule sets tree, navigate to the rule set you want to enable for cloud use and select it.
    A view of the rule set is shown in the configuration pane.
  3. Click Enable in cloud to make this rule set available for cloud use.
  4. Click Save Changes.

The rules in this rule set are now also used to filter traffic that occurs when cloud users access the web.

Configure a key rule element

Configure a key element of a web security rule.

NOTE: This task is a sample task that shows how to complete this configuration procedure.

A URL is entered into a URL whitelist. This whitelist is a key element of a rule in the default URL Filtering rule set.

When a request for access to a web object is received on Web Gateway, the rule lets the request skip URL filtering if the URL that is submitted with the request is on the whitelist. This reduces filtering effort and time for requests to access "allowed" web objects.

The URL entry in the sample is http://www.mcafee.com/*. Due to the wildcard element (*), all requests with URLs that match this entry, for example, http://www.mcafee.com/us/products/web-gateway.aspx, will skip URL filtering.

Task

  1. Select Policy | Rule Sets.
  2. On the rule sets tree, select the URL Filtering rule set.
    Key elements of the rules in this rule set appear in the configuration pane.
  3. Under Basic Filtering, click Edit next to URL Whitelist.
    The Edit List window opens.
  4. Enter a URL into the whitelist.
    1. Under List content, click the Add icon.
      The Add Wildcard Expression window opens.
    2. In the Wildcard Expression field, type http://www.mcafee.com/*.
    3. Click OK.
      The Add Wildcard Expression window closes, and the URL appears in the list of the Edit List window.
  5. Click OK.
    The Edit List window closes.
  6. Click Save Changes.

Configure a rule element in the complete rules view

The following is a sample task for configuring an element of a web security rule in the complete rules view.

A URL is entered into a URL whitelist. This whitelist is an element of a rule in the default URL Filtering rule set. The steps for accomplishing this are almost the same as for completing this task in the key elements view. Only the way the URL whitelist is accessed is different.

When a request for access to a web object is received on Web Gateway, a rule lets the request skip URL filtering if the URL that is submitted with the request is on the whitelist. This reduces filtering effort and time for requests to access "allowed" web objects.

The URL entry in the sample is http://www.mcafee.com/*. Due to the wildcard element (*), all requests with URLs that match this entry, for example, http://www.mcafee.com/us/products/web-gateway.aspx, will skip URL filtering.

Task

  1. Select Policy | Rule Sets.
  2. On the rule sets tree, select the URL Filtering rule set.
    Key elements of the rules in this rule set appear in the configuration pane.
  3. Click Unlock View to leave the key elements view.
    A message asks you to confirm that you want to leave the key elements view, and also warns you that you cannot return to this view.
  4. Click Yes.
    The complete rules view appears.
  5. In the rule Allow URLs that match in URL WhiteList, click URL WhiteList.
    The Edit List window opens.
  6. Enter a URL into the whitelist.
    1. Under List content, click the Add icon.
      The Add Wildcard Expression window opens.
    2. In the Wildcard Expression field, type, for example, http://www.mcafee.com/*.
    3. Click OK.
      The Add Wildcard Expression window closes, and the URL appears in the list of the Edit List window.
  7. Click OK.
    The Edit List window closes.
  8. Click Save Changes.

Import a rule set

You can import a rule set from the library into your rule set system.

Task

  1. Select Policy | Rule Sets.
  2. On the rule sets tree, navigate to the position where you want to insert the new rule set.
  3. From the Add drop-down list, select Rule Set from Library.
    A window with a list of the library rule sets opens.
  4. Select the rule set you want to import, for example, the Gateway Antimalware rule set.
    If conflicts arise when importing this rule set, they are displayed in the window.

IMPORTANT: Conflicts arise when a rule set uses configuration objects, such as lists or settings, that already exist in your rule set system.

  1. Use one of the following methods to solve conflicts:
    • Click Auto-Solve Conflicts and choose one of the following strategies for all conflicts:
      • Solve by referring to the existing objects — If rules of the imported rule set refer to objects existing in the appliance configuration under the same names, references are made to apply to these existing objects.
      • Solve by copying and renaming to suggested — If rules of the imported rule set refer to objects existing in the appliance configuration under the same names, these objects are also used, but are renamed, so as to avoid conflicts.
    • Click the listed conflicts one after another and solve them individually by choosing either of the two above strategies each time.
  2. Click OK.
    The rule set is inserted in the rule sets tree. It is enabled by default.
    List and settings that the rule set needs to perform its filtering job are implemented with the rule set and can be viewed on the lists and settings trees.
  3. If necessary, use the blue arrows above the rule sets tree, to move the rule set to where you want it to be.
  4. Click Save Changes.

Create a rule set

You can create a rule set and add it to your configuration.

Task

  1. Select Policy | Rule Sets.
  2. On the rule sets tree, navigate to the position where you want to insert the new rule set.
  3. Click Add above the rule sets tree.
    A drop-down list opens.
  4. Select Rule Set.
    The Add New Rule Set window opens.
  5. Configure the following general settings for the rule set:
    • Name — Name of the rule set
    • Enable — When selected, the rule set is enabled.
    • Enable in cloud — When selected, the rule set is also enabled for cloud use.
    • [Optional] Comment — Plain-text comment on the rule set
  6. In the Applies to section, configure the processing cycles. You can select only one cycle, or any combination of these three:
    • Requests — The rule set is processed when requests from the users of your network are received on the appliance.
    • Responses — The rule set is processed when responses from web servers are received.
    • Embedded objects — The rule set is processed for embedded objects sent with requests and responses.
  7. In the Apply this rule set section, configure when the rule set is applied:
    • Always — The rule set is always applied.
    • If the following criteria is matched — The rule set is applied if the criteria configured below is matched.
  8. In the Criteria section, click Add.
    The Add Criteria window opens.
  9. In the Property area, use the following items to configure a property:
    • Property — List for selecting a property (property types shown in brackets)
    • Search — Opens the Property Search window to let you search for a property.
    • Parameter — Opens the Property Parameters window for adding up to three parameters, see Step 10.
      The icon is grayed out if the property has no parameters.
    • Settings — List for selecting the settings of the module that delivers a value for the property (module names shown in brackets)
      The icon is grayed out if no settings are required for the property and (not needed) is added.
    • Add (String, Boolean, or numerical) Configure it in the Value area. Then click OK.
    • Edit — Opens the Edit Settings window for editing the selected settings.
      If no parameters need to be configured for the property, click OK and continue with Step 11.
  10. If you need to add property parameters:
    1. Click Parameter.
      The Property Parameters window opens.
    2.  Add as many parameters as needed.
      A parameter can be a:
      • Value (String, Boolean, or numerical) Configure it in the Value area. Then click OK.
      • Property — Follow the instructions for editing properties, beginning with Step 4.
  11. From the Operator list, select an operator.
  12. In the Parameter area, add a parameter (also known as operand).
    This can be a:
    • Value (String, Boolean, or numerical) — Configure it in the Value area.
    • Property — Follow the instructions for editing properties, beginning with Step 4.
  13. Click OK to close the Add Criteria window.
  14. [Optional] Click the Permissions tab and configure who is allowed to access the new rule set.
  15. Click OK. to close the Add New Rule Set window.
    The Add New Rule Set window closes and the rule set is inserted into your rule set system.
  16. Click Save Changes.

Restrict access to a rule set

To restrict access to a rule set, complete the following procedure.

Task

  1. Select Policy | Rule Sets (or Lists or Settings).
  2. On the tree structure, navigate to the position where you want to add the new item.
  3. Click Add above the tree structure.
    An Add window opens.
  4. Complete the steps for adding a new item. Then click the Permissions tab.
    Three modes of access can be configured: Read and Write, Read, and No Access.
  5. Click Add under the Read and Write pane.
    The Add Role or User window opens.
  6. Select a role or a user (or more than one of each type at once) from the list in the corresponding pane. Or type a wildcard expression as the name of a role or user in the Wildcard field.
  7. Add as many entries to the Read and Write list as needed.
    Use the Delete button under the pane to delete entries
  8. Fill the Read and No Access panes in the same way.
  9. Use the radio buttons under All other roles have to configure access for all roles and users that are not included in one of the lists on the tab.
  10. Click OK to close the window.
  11. Click Save Changes.

Restrict access to configuration items

When creating rule sets, lists, or settings, or working with existing ones, you can restrict access to them.

Task

  1. Select Policy | Rule Sets (or Lists or Settings).
  2. On the tree structure, navigate to the position where you want to add the new item.
  3. Click Add above the tree structure.
    An Add window opens.
  4. Complete the steps for adding a new item. Then click the Permissions tab.
    Three modes of access can be configured: Read and Write, Read, and No Access.
  5. Click Add under the Read and Write pane.
    The Add Role or User window opens.
  6. Select a role or a user (or more than one of each type at once) from the list in the corresponding pane. Or type a wildcard expression as the name of a role or user in the Wildcard field.
  7. Add as many entries to the Read and Write list as needed.
    Use the Delete button under the pane to delete entries 
  8. Fill the Read and No Access panes in the same way.
  9. Use the radio buttons under All other roles have to configure access for all roles and users that are not included in one of the lists on the tab.
  10. Click OK to close the window.
  11. Click Save Changes.
  • Was this article helpful?