Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Application Load Balancer
  • Getting started
    • All tutorials
    • Setting up virtual hosting
    • Creating an L7 load balancer with a Smart Web Security profile through an Application Load Balancer ingress controller
    • Integrating an L7 load balancer with CDN and Object Storage
    • Blue-green and canary deployment of service versions
    • Writing load balancer logs to PostgreSQL
    • Deploying and load testing a scalable gRPC service in Yandex Managed Service for Kubernetes
    • Setting up the Gateway API in Yandex Managed Service for Kubernetes
    • Configuring an L7 Application Load Balancer via an ingress controller
    • Configuring L7 Application Load Balancer logging via an ingress controller
    • Performing health checks on Managed Service for Kubernetes cluster applications via an L7 Application Load Balancer
    • Implementing a secure high-availability network infrastructure with a dedicated DMZ using the next-generation firewall
      • Overview
      • Management console
      • Terraform
    • Deploying a web application on BareMetal servers with an L7 load balancer and Smart Web Security protection
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes

In this article:

  • Get your cloud ready
  • Required paid resources
  • Set up your infrastructure
  • Create a security profile
  • Associate the security profile with the virtual host
  • Configure DNS
  • Test the security profile
  • How to delete the resources you created
  1. Tutorials
  2. Creating an L7 Application Load Balancer with a Smart Web Security profile
  3. Management console

Creating an L7 load balancer in Application Load Balancer with a Yandex Smart Web Security profile from the management console

Written by
Yandex Cloud
Updated at September 3, 2025
  • Get your cloud ready
    • Required paid resources
  • Set up your infrastructure
  • Create a security profile
  • Associate the security profile with the virtual host
  • Configure DNS
  • Test the security profile
  • How to delete the resources you created

To create an L7 load balancer with a Smart Web Security profile from the Yandex Cloud management console:

  1. Get your cloud ready.
  2. Set up your infrastructure.
  3. Create a security profile.
  4. Associate the security profile with a virtual host.
  5. Configure DNS.
  6. Test the security profile.

If you no longer need the resources you created, delete them.

Get your cloud readyGet your cloud ready

Sign up for Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or create a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure.

Learn more about clouds and folders here.

Required paid resourcesRequired paid resources

The infrastructure support costs for an L7 load balancer with a Smart Web Security profile include:

  • Fee for continuously running VMs (see Yandex Compute Cloud pricing).
  • Fee for using an L7 load balancer’s computing resources (see Application Load Balancer pricing).
  • Fee for requests processed by security profile rules (see Yandex Smart Web Security pricing).

Set up your infrastructureSet up your infrastructure

Deploy an Application Load Balancer infrastructure and a VM with a test web server.

Create the following resources:

  • VM named test-vm1 with a test web server.
  • Target group named test-target-group.
  • Backend group named test-backend-group.
  • HTTP router named test-http-router with a virtual host named test-virtual-host.
  • L7 load balancer named test-load-balancer.

Save the public IP address of the L7 load balancer: you will need it to test your security profile.

Tip

To ensure availability of your service at high load, set up autoscaling for your L7 load balancer.

Create a security profileCreate a security profile

The security profile is the central Smart Web Security component that includes a set of rules, each containing conditions for filtering user requests arriving to the resource being protected.

To create a security profile:

Management console
  1. In the management console, select the folder where you want to create a profile.

  2. In the list of services, select Smart Web Security.

  3. Click Create profile and select From a preset template.

    A preset profile includes:

    • Basic default rule enabled for all traffic with the Deny action type.
    • Smart protection rule enabled for all traffic with the Full protection action type.

    Tip

    Creating a pre-configured profile with full Smart Protection is preferable. This will ensure the highest level of security for your resource.

  4. Enter a name for the profile, e.g., test-sp1.

  5. In the Action for the default base rule field, select Deny. Therefore, if no other rules are set, all traffic to the protected resource will be denied.

  6. Click Add rule.

  7. In the rule creation window:

    1. Enter a name for the rule, e.g., test-rule1.

    2. Set the rule priority, e.g., 999800. The rule will have higher priority than the preset ones.

      Note

      The smaller the value, the higher is the rule priority. The priorities for preconfigured rules are as follows:

      • Basic default rule: 1000000.
      • Smart Protection rule providing full protection: 999900.
    3. Select the Base rule type.

    4. Select the Allow action.

      The rule will describe conditions under which requests will be routed to the test application backend.

    5. In the Conditions field, select IP.

    6. In the IP conditions field that appears, select Matches or belongs to range and set the public IP address of the device from which you are going to send requests to the L7 load balancer, e.g., 158.160.100.200.

    7. Click Add.

      The rule you created will appear under Security rules in the table.

  8. Click Create.

Associate the security profile with the virtual hostAssociate the security profile with the virtual host

Management console
  1. In the management console, select the folder where you want to associate a security profile with an Application Load Balancer virtual host.

  2. In the list of services, select Smart Web Security.

  3. Select the test-sp1 profile.

  4. Click Connect to host.

  5. In the window that opens, select:

    • Load balancer test-load-balancer.
    • HTTP router test-http-router.
    • Virtual host test-virtual-host.
  6. Click Connect.

    You will see the associated virtual host under Connected hosts.

Configure DNSConfigure DNS

  1. Add a resource A record to your domain's public DNS zone, with values specified as follows:

    • Record name: Your domain's address, ending with a dot. Example: example.com. or my.first.example.com..
    • Value: L7 load balancer IP address. To learn the IP address, follow Getting information about an L7 load balancer.

    This record will redirect the requests you get at your domain to the L7 load balancer's IP address.

    Note

    If your domain is delegated to Yandex Cloud DNS, create a resource record according to this guide. Otherwise, use your domain name registrar's personal account. If you have any questions, refer to the relevant documentation or contact the registrar's support service.

  2. In your server settings, block all connections except those for Yandex Cloud IP addresses.

Test the security profileTest the security profile

  1. Open the terminal on the device whose IP address you specified in the allow rule.

  2. Send a request to the test application backend:

    curl --verbose <public_IP_address_of_L7_load_balancer>
    

    This command should list the contents of the directory with your test web server.

  3. Repeat the request from a different IP address. As a result, you should see a message about a failure to establish a connection to the server.

Note

Smart protection rules are usually not tested. Such tests would add the properties of suspicious requests, e.g., IP addresses, to a blacklist.

How to delete the resources you createdHow to delete the resources you created

To stop paying for the resources you created:

  1. Delete the security profile.
  2. Delete the L7 load balancer.
  3. Delete the HTTP router.
  4. Delete the backend group.
  5. Delete the target group.
  6. Delete the VM.
  7. Delete the DNS zone if created in Yandex Cloud DNS.

See alsoSee also

  • Creating an L7 load balancer in Application Load Balancer with a Yandex Smart Web Security profile through Terraform

Was the article helpful?

Previous
Overview
Next
Terraform
© 2025 Direct Cursus Technology L.L.C.