Connection limit

This help contains the following topics:

Configure global connection limits

Introduction

The connection limit feature enables the device to collect statistics and limit the number of established connections. It helps protect internal network resources and better allocate system resources.

Connection limit policies

The device supports both IPv4 and IPv6 connection limit policies. You can apply a configured connection limit policy globally or to an interface to limit the number of user connections.

The connection limit policy applied to an interface takes effect only on the specified connections on the interface. The connection limit policy applied globally takes effect on all the specified connections on the device.

Different connection limit policies can be applied to individual interfaces as well as globally on the device. In this case, the device matches connections against these policies in the order of the policy on the inbound interface, the global policy, and the policy on the outbound interface. New connections are limited as long as the number of connections reaches the smallest upper connection limit defined by these policies.

Connection limit rules

To use a connection limit policy, you need to add limit rules to the policy. Each rule defines a range of connections and the criteria for limiting the connections. Connections in the range will be limited based on the criteria. The following criteria are available:

Connections that do not match any limit rules are not limited.

In each connection limit rule, an ACL is used to define the connection range. Only the user connections that match the ACL are limited. In addition, the rule also uses the following filtering methods to further limit the connections:

You can select more than one filtering method, and the selected methods take effect at the same time. For example, if you specify both Destination IP and Service port, the user connections using the same service and destined to the same IP address are limited. If you do not specify any filtering methods in a limit rule, all user connections in the range are limited.

When a connection limit policy is applied, the device compares connections with all limit rules in the policy in ascending order of rule IDs. As a best practice, specify a smaller range and more filtering methods in a rule with a smaller ID.

vSystem support information

Support of non-default vSystems for this feature depends on the device model. This feature is available on the Web interface only if it is supported.

Restrictions and guidelines

Configure connection limit

Analysis

Configure connection limit as shown in Figure-1.

Figure-1 Connection limit configuration procedure

Prerequisites

Complete the following tasks before you configure this feature:

Configure interface-based connection limits

  1. Click the Policies tab.

  2. In the navigation pane, select Active Defense > Concurrent Connection Limit.

  3. Configure a connection limit policy. Select an interface from the Apply to list, enable Create rule, and click OK to open the page for configuring a connection limit rule.

    Figure-2 Configuring a connection limit policy

    Figure-3 Configuring a connection limit rule

    Table-1 Connection limit policy configuration items

    Item

    Description

    Policy number

    Enter a policy number in the range of 1 to 32. The policy number spaces for IPv4 and IPv6 are independent.

    IP version

    Select an IP version.

    Apply to

    Select the interfaces to apply the connection limit policy. A connection limit policy applied to an interface takes effect on connections on the interface. A connection limit policy applied globally takes effect on all connections on the device.

    Description

    Enter a description for the connection limit policy.

    Create rule

    Enable this option to create a connection limit rule.

    Rule ID

    Enter a rule ID.

    ACL

    Select an existing ACL or create an ACL.

    Connection establishment rate limit

    Enter the maximum connection establishment rate.

    Concurrent connection limits

    • Upper limit—Enter an upper limit. When the number of connections exceeds the upper limit, new connections cannot be established.

    • Lower limit—Enter a lower limit. When the number of connections falls below the lower limit, new connections can be established.

    Limit by

    Select a limit method:

    • Source IP—Limits connections from the same IP address.

    • Destination IP—Limits connections to the same IP address.

    • Service port—Limits connections with the same service port.

    Action on upper limit exceeding

    • Permit new connections.

    • Deny new connections.

    • Add to blacklist—This action is supported only for the Source IP limit method. This action does not take effect if the blacklist feature is not enabled. To enable the blacklist feature, access the Policies > Active Defense > Blacklist page.

    Create more rule

    Enable this option to create another connection limit rule.

  4. Click Apply.

    Figure-4 Connection limit policy list

Configure global connection limits

  1. Click the Policies tab.

  2. In the navigation pane, select Active Defense > Concurrent Connection Limit.

  3. Configure a connection limit policy. Select Global from the Apply to list, enable Create rule, and click OK to open the page for configuring a connection limit rule. For more information about parameters, see Table-1.

    Figure-5 Configuring a connection limit policy

    Figure-6 Configuring a connection limit rule

  4. Click Apply.

    Figure-7 Connection limit policy list