Rule ID
SV-289078r1318557_rule
Version
V1R1
CCIs
DoS events can occur due to a variety of internal and external causes, such as an attack by an adversary or a lack of planning to support organizational needs with respect to capacity and bandwidth. Such attacks can occur across a wide range of network protocols (e.g., IPv4, IPv6). A variety of technologies are available to limit or eliminate the origination and effects of DoS events. For example, boundary protection devices can filter certain types of packets to protect system components on internal networks from being directly affected by or the source of DoS attacks. Employing increased network capacity and bandwidth combined with service redundancy also reduces the susceptibility to DoS events.
Verify the NetScaler Gateway employs organization-defined controls by type of DoS (e.g., rate limiting based on source IP address) to achieve the DoS objective. 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 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 that 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 selectors: show stream selector 3. Verify a selector is configured to categorize traffic by type. 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 identify traffic by type, 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 employ organization-defined controls by type of DoS (e.g., rate limiting based on source IP address) to achieve the DoS objective.
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 (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 identify traffic 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