Rule ID
SV-289106r1318087_rule
Version
V1R1
CCIs
If the network does not provide safeguards against DoS attacks, network resources will be unavailable to users. Installation of content filtering gateways and application layer firewalls at key boundaries in the architecture mitigates the risk of DoS attacks. These attacks can be detected by matching observed communications traffic with patterns of known attacks and monitoring for anomalies in traffic volume, type, or protocol usage. Detection components that use signatures can detect known attacks by using known attack signatures. Signatures are usually obtained from and updated by the ALG component vendor. This requirement applies to the communications traffic functionality of the ALG as it pertains to handling communications traffic, rather than to the ALG device itself.
Verify the NetScaler Gateway protects against DoS attacks by employing Rate Limiting as a pattern recognition preprocessor. Method 1: GUI Verification 1. Log in to the NetScaler GUI. 2. Navigate to AppExpert >> Rate Limiting >> Selectors. 3. Verify a selector is configured with an expression to identify and categorize traffic patterns by type (e.g., CLIENT.IP.SRC). 4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers. 5. Verify an identifier is configured and linked to the selector identified in Step 3. 6. Navigate to AppExpert >> Responder >> Policies. 7. Review the "Expression" column in the policy list and verify a Responder policy exists that uses the "sys.check_limit" expression. 8. Navigate to Citrix Gateway >> Virtual Servers. 9. Select the active Gateway Virtual Server and select "Edit". 10. Verify the rate-limiting Responder policy is actively bound. Method 2: CLI Verification 1. Log in to the NetScaler CLI. 2. Run the following command to view configured traffic pattern selectors: show stream selector 3. Verify a selector is configured to recognize traffic patterns by type (e.g., Rule: CLIENT.IP.SRC). 4. Run the following command to view configured rate limits: show ns limitIdentifier 5. Verify a rate limit identifier is configured and linked to the selector. 6. Run the following command to view the rule expression of the specific rate-limiting policy: show responder policy <policy_name> 7. Verify the "Rule" output uses the "sys.check_limit" expression. 8. Run the following command to verify the virtual server bindings: show vpn vserver <gateway_vserver_name> 9. Verify the rate-limiting Responder policy is bound to the virtual server. If a Stream Selector is not configured to recognize traffic patterns, or if the associated rate-limiting Responder policy is not bound to the Gateway Virtual Server, this is a finding.
Configure the NetScaler Gateway to protect against DoS attacks by employing Rate Limiting as a pattern recognition preprocessor.
Method 1: GUI Configuration
1. Log in to the NetScaler GUI.
2. Navigate to AppExpert >> Rate Limiting >> Selectors and select "Add".
3. Enter a name for the selector and create an expression to identify traffic patterns (e.g., CLIENT.IP.SRC). Select "Create".
4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select "Add".
5. Enter a name for the identifier, choose the Selector created in Step 3, set the Threshold and Time Slice to organizationally defined limits, and select "Create".
6. Navigate to AppExpert >> Responder >> Policies and select "Add".
7. Enter a name for the policy, set the "Action" to "DROP", and in the expression box, enter "sys.check_limit" ("<limit_identifier_name>"). Select "Create".
8. Navigate to Citrix Gateway >> Virtual Servers, select the active Gateway Virtual Server, and select "Edit".
9. Bind the Responder policy created in Step 7.
10. Save the configuration.
Method 2: CLI Configuration
1. Log in to the NetScaler CLI.
2. Run the following command to create a Limit Selector to recognize traffic patterns by source IP:
add stream selector <limit_selector_name> "CLIENT.IP.SRC"
3. Run the following command to create a Limit Identifier, linking it to the selector created in Step 2 and applying organizationally defined limits:
add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>
4. Run the following command to create the Responder Policy that drops traffic, linking it to the identifier created in Step 3:
add responder policy <responder_policy_name> "sys.check_limit(\"<limit_identifier_name>\")" DROP
5. Run the following command to bind the Responder policy to the Gateway Virtual Server:
bind vpn vserver <gateway_vserver_name> -policy <responder_policy_name> -priority <priority_number> -gotoPriorityExpression END -type REQUEST
6. Run the following command to save the configuration:
save ns config