Skip to main content
Create a rule for TCP or UDP traffic

Create a rule for TCP or UDP traffic

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.

  2. Go to BalancersBalancers tab.

  3. Open the balancer page.

  4. Click Create Rule.

  5. Select the protocol for receiving traffic — TCP or UDP.

  6. For the selected protocol, the default port on which the balancer will listen to traffic will be automatically selected — change it if necessary.

  7. Optional: Enter the allowed CIDRs from which the balancer will accept traffic with the selected protocol and port. You can enter a subnet in CIDR format or a single IP address with a /32 mask. If you leave the field blank, the balancer will accept traffic from any IP addresses. You can specify the allowed IP addresses in the rule after the rule is created.

    If this field is absent, port security is disabled on the balancer's network.

  8. Select a target group or create a new target group with a suitable protocol.

  9. Optional: change the connection settings, to do this, open the Advanced Rule Settings block and specify:

    • for incoming requests to the balancer — specify the connection timeout and maximum connections;
    • for requests from the balancer to servers — specify the connection timeout, inactivity timeout and TCP packet waiting timeout.
  10. Click Create.