Assigning Custom Rules to a Virtual Service
- Last Updated: May 13, 2025
- 2 minute read
- LoadMaster
- LoadMaster GA
- Documentation
Before you can assign a custom rule to a Virtual Service, the rule must first be installed on the LoadMaster. Refer to the Add a Custom Rule section for instructions on how to do this.
Custom rules can be assigned as needed to each individual Virtual Service. Follow the steps below to assign a custom rule to a Virtual Service:
- In the main menu of the LoadMaster WUI, select Virtual Services > View/Modify Services.
- Click Modify on the relevant Virtual Service.
- Expand the WAF section.
- Select Enabled.Note: A message is displayed next to the Enabled check box displaying how many WAF-enabled Virtual Services exist and it also displays the maximum number of WAF-enabled Virtual Services that can exist. If the maximum number of WAF-enabled Virtual Services has been reached, the Enabled check box becomes greyed out.
- Assign Custom Rules by selecting them in the Manage Rules section.
- To enable/disable the individual rules per ruleset, select/unselect the relevant check boxes.Rules can be filtered by entering a filter term in the Rule Filter text box.When you have a filter entered, you can do the following:
- Click Clear All to disable all rules for the selected ruleset.
- Click Set All to enable all rules for the selected ruleset.
- Click Reset to disable all rules and rulesets.
Note: There is a Run First check box available for custom rules. If the Run First check box is enabled for a custom rule, the rule will be run first, before the OWASP Core Rule Set (CRS). If the Run First check box is disabled for a custom rule, the custom rule runs after the CRS. The Run First check box is disabled by default. - When finished selecting the relevant rulesets and rules, click Apply.