---
title: How to Configure a Vultr Load Balancer with a Virtual Private Cloud (VPC)
url: https://docs.vultr.com/how-to-configure-a-vultr-load-balancer-with-a-virtual-private-cloud-vpc
description: Learn how to set up and configure a Vultr Load Balancer with a Virtual Private Cloud (VPC) to enhance security and optimize network performance for your applications.
publish_date: 2022-05-20T00:00:00Z
last_updated: 2026-04-15T00:00:00.077250Z
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/38d9dd78a6a7a955.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Introduction

The Vultr Load Balancer is a fully-managed solution to distribute traffic across multiple back-end servers. In this guide, you'll learn how to distribute web traffic to multiple webservers via their [VPC](https://docs.vultr.com/how-to-create-a-vultr-virtual-private-cloud-vpc) interface.

If you are new to Vultr Load Balancers, we recommend reading the [Load Balancer Quickstart Guide](https://docs.vultr.com/vultr-load-balancers) first.

Vultr's Load Balancer has its own integrated firewall and supports VPCs, which means you can set up advanced configurations like this:

![Network Diagram](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/dc3aea05fc9b3877.png)

* The Web Servers listen to HTTP on the VPC.
* The Web Servers listen to SSH on the public network.
* The Vultr Firewall allows SSH to the public network.
* The Load Balancer Firewall allows HTTP traffic from Cloudflare.
* The Load Balancer distributes HTTP traffic to the web servers on the VPC.

For simplicity, this example uses HTTP, but you could expand this to any protocol. If you use HTTPS, you may want to configure SSL/TLS certificates on the Load Balancer.

Here's a step-by-step guide to creating a secure, load-balanced web cluster with a VPC.

## 1. Deploy Web Servers

Deploy three web servers in the same location, with VPC enabled. Configure the web servers to listen to HTTP on their VPC interfaces.

## 2. Deploy a Load Balancer

1. Navigate to [the Load Balancers section](https://console.vultr.com/loadbalancers/) of the Vultr Console.
1. Click the **blue plus icon** to deploy a load balancer.
1. Choose the same location as your web servers.
1. In **Load Balancer Configuration**, enter a label and leave the other options at default.

    ![Screenshot of Load Balancer Configuration section](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/1bcc9fefc03ced28.png)

1. Leave the default **Forwarding Rule** for HTTP at port 80.
1. Select your VPC.
1. In the Firewall Rules section, enter Port 80, and set the Source to `cloudflare`.

    ![Firewall Rules](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/d2795f6f092c1a09.png)

1. Choose HTTP and Port 80 for Health Checks.

    ![Health Checks](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/6f6b9e7358be88a1.png)

1. Click **Add Load Balancer**.

Wait for the Load Balancer to deploy.

## 3. Link the Load Balancer to the Web Servers

Click your [Load Balancer](https://console.vultr.com/loadbalancers/) to edit its configuration.

1. Click **Add Instance**.
1. Choose an instance from the drop-down.
1. Click **Attach Instance**.

    ![Add Instance](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/9da36b2e86609c5a.png)

1. Repeat steps 1 – 3 for each web server instance.
1. Click the Configuration tab.
1. Click Networking to review your configuration. The Load Balancer consumes three IP addresses from the VPC range for itself.

## 4. Deploy a Vultr Firewall

1. Navigate to the [Add Firewall Group](https://console.vultr.com/firewall/add/) page.
1. Give the firewall group a descriptive name and click **Add Firewall Group**.
1. Add an inbound IPv4 Rule that accepts SSH from anywhere.

    ![SSH Rule](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/dce485b31adf0141.png)

1. Click **Linked Instances** on the left menu.
1. Link each of the three instances to the firewall group.

    ![Linked Instances](https://assets.vultrdevrel.com/docs-main-doc-assets-1/1339/d8e83926a1b29166.png)

## 5. Final Steps

The Vultr configuration is complete, and you can SSH to your web servers, but you'll still need to configure DNS and add the Load Balancer's IP address at Cloudflare. See the [Cloudflare getting started guide](https://support.cloudflare.com/hc/en-us/articles/360027989951) to complete those steps.

After completing the Cloudflare setup, your webservers are secure and load-balanced. The Cloudflare CDN accelerates the delivery of your static assets, and the Vultr load balancer provides high availability.

## More Information

* If you are new to load-balancing network concepts, see the [*Vultr Load Balancer Quickstart Guide*](https://docs.vultr.com/vultr-load-balancers).
* For comprehensive documentation about the Load Balancer features, see the [*Load Balancer Feature Reference*](https://docs.vultr.com/vultr-load-balancer-feature-reference).
* The Vultr Load Balancer has its own integrated firewall; learn more in our article [*How to Use the Vultr Load Balancer Firewall*](https://docs.vultr.com/how-to-use-the-vultr-load-balancer-firewall).
* The Vultr Firewall can use a Load Balancer as an IP source. We explain more in [*How to Use the Vultr Firewall with a Vultr Load Balancer*](https://docs.vultr.com/how-to-use-the-vultr-firewall-with-a-vultr-load-balancer).
* Learn how to configure wildcard SSL on your load balancer in our guide *Use a Wildcard Let's Encrypt Certificate with Vultr Load Balancer*.
* See our [Load Balancer Feature Reference](https://docs.vultr.com/vultr-load-balancer-feature-reference#Forwarding_Rules) to learn about limits to the number of forwarding rules.
