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

Create a rule for TCP or UDP traffic

  1. In control panel from the top menu, press Products and select Cloud servers.

  2. Go to the section Balancers → tab Balancers.

  3. Open the balancer page.

  4. Click Create a 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 mask /32. 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 has been created.

    If the field is absent, the balancer network is turned off traffic filtering (port security).

  8. Select a target group or create a new target group suitably protocol.

  9. Optional: change connection settings To do this, open the block Advanced rule settings 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.