This help contains the following topics:
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.
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.
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
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.
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.
For devices supporting service modules, the connections are limited on a per-service module basis.
A connection limit policy takes effect only on new connections. It does not take effect on existing connections.
On an IRF fabric where session synchronization is enabled, connection limit policies applied to a subordinate device do not take effect on sessions switched from the master device.
An ACL can only be used once in a connection limit policy and can be used in multiple connection limit policies.
A connection limit policy cannot be applied to a loopback interface.
To configure the
The upper limit must be greater than the number of CPU cores on the device. As a best practice, set the upper limit to a value greater than 32.
Configure connection limit as shown in Figure-1.
Figure-1 Connection limit configuration procedure
Complete the following tasks before you configure this feature:
Assign IP addresses to interfaces on the
Configure routes on the
Create security zones on the
Add interfaces to security zones. You can add interfaces to a security zone on the
Configure security policies to permit the target traffic on the
Click the
In the navigation pane, select
Configure a connection limit policy. Select an interface from the
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 |
|
Limit by | Select a limit method:
|
Action on upper limit exceeding |
|
Create more rule | Enable this option to create another connection limit rule. |
Click
Figure-4 Connection limit policy list
Click the
In the navigation pane, select
Configure a connection limit policy. Select
Figure-5 Configuring a connection limit policy
Figure-6 Configuring a connection limit rule
Click
Figure-7 Connection limit policy list