Editing Preconditions

By configuring paths, you can handle individual file types or subdirectories differently. Preconditions add another dimension to this flexibility by giving you the option to make the handling conditional. Only when all preconditions defined for a path are met, vWAF implements the handlers defined for the path.

Adding preconditions

  1. In the navigation area, select the application to which the path belongs to which you want to add a precondition.
  2. Activate the Ruleset Config | Path tab.
    This opens the list of paths that have been defined for the application.
  3. In the Action column, click the Edit icon of the path to which you want to add the precondition.

    You’re now in edit mode for this path.

    In the breadcrumbs line above the tabs you can always see which path you’re currently editing.

  4. Activate the Preconditions tab.

  5. From the selection list under Add Selector, select the precondition selector to be added.
    This selection list only contains the selectors that have not yet been added. For details on the individual selectors, see Preconditions (Selectors) in the reference section of this documentation.
  6. Click the Add button.

    The selector just added then appears with color emphasis on the list.

The selector initially inherits the attributes preset on the system. This is shown in the Inherited Attrs column (inherited attributes). To configure the selector in detail, you need to edit it.

Editing a precondition selector

  1. In the navigation area, select the application to which the path belongs whose precondition selector you want to edit.
  2. Activate the Ruleset Config | Path tab. This opens the list of paths that have been defined for the application.
  3. In the Path column, click the path whose precondition selector you want to edit. You’re now in edit mode for this path.
  4. Activate the Preconditions tab.
  5. In the Action column, click the relevant Edit icon.

    Now the attributes of the precondition selector are shown.

    In the Inheritance column you can see whether the values given under Value have been inherited (entry Inherited) or overwritten (entry Local). If an entry has been overwritten, an additional check box labeled reset values appears. If you activate this check-box, vWAF resets the value of the attribute back to its inherited value when you click Save. (This even applies if you’ve also changed the value in the Value column.)

    The Owner column shows the username of the administrator who made that setting. The BUILT-IN entry identifies the default values. The Last Commit column shows whether and when a setting has already been committed.

    For detailed information on the attributes of the individual selectors, see Preconditions (Selectors).

  6. Make the required settings, and then click the Save button.

Removing a precondition selector

  1. In the navigation area, select the application to which the path belongs whose precondition selector you want to remove.
  2. Activate the Ruleset Config | Path tab. This opens the list of paths that have been defined for the application.
  3. In the Path column, click the path whose precondition selector you want to remove. You’re now in edit mode for this path.
  4. Activate the Preconditions tab.
  5. In the Action column, click the relevant Delete icon for the precondition selector that you want to remove.