Load Balancing For Clustered Barracuda Web Application Firewall Instances in Amazon Web Services (AWS)
This guide walks you through the steps to load balance traffic across multiple instances of the Barracuda Web Application Firewall deployed in Amazon Web Services.
In this article
Step 1 - Deploy Multiple Barracuda Web Application Firewall Instances in Amazon Web Services
Step 2 - Set Up Load Balancing on the Barracuda Web Application Firewall Instances
Step 3 - Set Up a High Availability Environment with the Barracuda Web Application Firewall
Step 1 - Deploy Multiple Barracuda Web Application Firewall Instances in Amazon Web Services
Follow the steps in Deploy the Barracuda Web Application Firewall on Amazon Web Services to deploy multiple Barracuda Web Application Firewall instances. To license and configure your virtual machine, continue with Barracuda Web Application Firewall Deployment and Quick Start Guide for Amazon Web Services . In this example, there are two Barracuda Web Application Firewall instances where Barracuda-WAF1 is the first unit and Barracuda-WAF2 is the second unit.
Step 2 - Set Up Load Balancing on the Barracuda Web Application Firewall Instances
Load Balance the Service on Multiple Barracuda Web Application Firewall Instances Using the Application Load Balancer
Log into the Amazon EC2 Management Console.
From the EC2 dashboard, select Load Balancers under Load Balancing.
Click Create Load Balancer. The Select load balancer type page opens.
On the Select load balancer type page, click Create under Application Load Balancer.
On the Create Application Load Balancer page:
Basic Configuration
Load Balancer name - Enter a name for the load balancer.
Scheme - Select the scheme to route the client requests to the server.
Internet-facing: Routes client requests over the Internet.
Internal: Routes requests using the private IP addresses.
IP address type - Select the IP address type (IPv4 or dualstack) to communicate with the load balancer.
IPv4: Accepts only IPv4 traffic.
Dualstack: Accepts IPv4 and IPv6 traffic.
Network mapping
VPC – Select the VPC.
Mappings - Select the availability zones and subnets for the VPC load balancer.
Security groups
Security groups - Select an existing security group from the drop-down list and assign it to the load balancer, or choose Create new security group to create a new group.
Listeners and routing
Listener – Configure the following:
Protocol – Select the protocol (HTTP or HTTPS).
Port – Specify the port number.
Default action – Select an existing target group from the drop-down list, or click Create target group to register your targets (services). The load balancer routes the traffic to registered targets (services) using the port and protocol specified for the target group. See the section Create a Target Group.
Click Add Listener.
Tags (optional)
Specify a key and a value for the tag. Click Add tag to add tags.
Summary
Review your settings before creating the load balancer, and then click Create load balancer.
Create a Target Group
You must create a target group and register the Barracuda Web Application Firewall instances or IP addresses for which the traffic needs to be load balanced. The load balancer routes the traffic to the registered targets using the specified port and protocol. For detailed information, refer to the AWS documentation.
Log into the Amazon EC2 Management Console.
From the EC2 dashboard, select Target Groups under Load Balancing.
On the Target groups page, click Create target group.
On the Step 1 Specify group details page, configure the following:
Basic configuration
Choose a target type - If the Barracuda Web Application Firewall instances have created the service using the system IP address, select Instances. If the Barracuda Web Application Firewall instances have services with multiple IP addresses, select IP addresses.
Target group name - Specify a name for the target group.
Protocol - Select the protocol
Port - Specify the port number.
VPC - Select the VPC with the instances that need to be included in the target group.
IP address type - (Available only when the target type is IP addresses) Select the IP address type for the IP addresses. Note: The target group may include only the selected IP address type targets (services).
Protocol version - Select the protocol version.
Health checks – Modify the default settings as needed.
Tags (Optional) – Expand the tags section, and add the tags with key and value pair.
Click Next.
On the Register targets page, do the following:
If the target type is Instances:
Select the instances to which the traffic needs to be load balanced and click Include as pending below.
If the target type is IP addresses:
Select a network VPC from the list.
Specify the IP addresses. You can add up to five IP addresses at a time.
Specify the port number to route the traffic to specified IP addresses.
Click Include as pending below.
Review the targets and click Create target group.