# Configure Load Balancing when Using Cloud Guard WAF as a Reverse Proxy

CloudGuard WAF can now act as a **reverse proxy with load balancing**, allowing you to distribute incoming traffic across multiple upstream servers. This improves availability, scalability, and fault tolerance of your applications.

### Prerequisites

* You already have a CloudGuard WAF asset configured in **reverse proxy mode**.
* Your backend applications are reachable from the WAF.

### **Instructions:**

#### Step 1 – Open Your Asset

1. Go to the **Assets** page in the CloudGuard WAF portal.
2. Select the asset you want to configure.
3. Enable load balancing

<figure><img src="/files/chXQuWh3DowP7mDXO8nh" alt=""><figcaption></figcaption></figure>

#### Step 2 – Configure Upstreams

1. Click on the "Load balancer upstream setting.
2. Choose the Load Balancing Algoritm
   * Currently only "Round Robin" is supported
3. Provide the URL for each backend server
   * Make sure to include protocol and port if needed

<figure><img src="/files/JYgQ79pOhhw3pq3QBeHz" alt=""><figcaption></figcaption></figure>

#### Step 3  - Configure **Health Check** settings

provide the following details:

* Path (Defaults to /)
* Port (Defaults to 80)
* Timeout setting (Defaults to 5s)
* Interval setting (Defaults to 5s)
* Healthy threshold (Defaults to 5)
* Unhealthy threshold (Defaults to 5)
* Expected status code  (Defaults to 200)

<figure><img src="/files/bmc8rjXCgal5afCy9K8P" alt="" width="193"><figcaption></figcaption></figure>

#### Step 4 - Save and Enforce


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://waf-doc.inext.checkpoint.com/how-to/configure-load-balancing-when-using-cloud-guard-waf-as-a-reverse-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
