Skip to main content

Create a rule for TCP or UDP traffic

Last update:
  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Go to the Load Balancers section → Load Balancers tab.

  3. Open the load balancer page.

  4. Click Create Rule.

  5. Select the traffic reception protocol — TCP or UDP.

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

  7. Optional: enter the allowed CIDRs from which the load 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 empty, the load balancer will accept traffic from any IP address. You can specify allowed IP addresses in the rule after creating it.

    If the field is missing, traffic filtering (port security) is disabled in the load balancer 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 load balancer — specify the connection timeout and the maximum number of connections;
    • for requests from the load balancer to servers — specify the connection timeout, inactivity timeout, and TCP packet waiting timeout.
  10. Click Create.