Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
REST API to Manage Multi-IP on Azure and AWS Cloud Deployments
Published Sep 26, 2023

REST API to Manage Multi-IP on Azure and AWS Cloud Deployments

Sep 26, 2023
Subscribe

This article provides information on how to enable multi-IP for the Barracuda Web Application Firewall instances deployed on cloud platforms (Microsoft Azure, AWS) through REST API.

To Enable Multi-IP for Azure Instances

  1. Enable Azure Multi-IP with AD: (Username/ Password)

    curl http://<WAF IP>:<Port>/restapi/v3.2/system/azure-config -X PUT -u “<token>:” -H Content-Type:application/json
    -d’{“enable-multi-ip”:“Yes”,“azure-cloud-type”:“Azure Public Cloud”, “subscription-id”:“<Subscription ID>“,
    “user-id”:“XXX@cudazure.onmicrosoft.com”, “user-password”:“XXXXXX”, “resource-group”:“<Resource Group Name>“, “login-choice”:“AD User/Password”}'

  2. Enable Azure Multi-IP with Azure service principals:

    curl http://<WAF IP>:<Port>/restapi/v3.2/system/azure-config -X PUT -u “<token>:” -H Content-Type:application/json
    -d’{“enable-multi-ip”:“Yes”,“azure-cloud-type”:“Azure Public Cloud”, “subscription-id”:“<Subscription ID>“,
    “client-id”:“<Client ID>“, “tenant-id”:“<Tenant ID>“, “secret-key”:“<Secret Key>“, “resource-group”:“<Resource Group Name>“,
    “login-choice”:“Service Principal”}'

  3. Create a service using the Allocate IP option:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json -d’{“name”:“testserv1",
    “type”:“HTTP”, “port”:“80", “cloud-ip-select”:“Allocate New IP”}'

  4. Create a service using the IP address:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json
    -d’{“name”:“testserv1”,“type”:“HTTP”,“port”:“80”, “cloud-ip-select”:“Enter IP Address”, “ip-address”:“10.8.6.10”}'

  5. Create a service using the system IP:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json
    -d’{“name”:“testserv1",“type”:“HTTP”,“port”:“80", “cloud-ip-select”:“System IP Address”}

The Barracuda Web Application Firewall instances deployed on Azure include the Azure Configuration tab under the BASIC tab. You can enable the Multi-IP address feature of Microsoft Azure through the web interface.

To Enable Multi-IP for AWS Instances

You can enable Multi-IP for the Barracuda Web Application Firewall instances deployed on AWS through REST API.

  1. Enable AWS Multi-IP:

    curl http://<WAF IP>:<Port>/restapi/v3.2/system -X PUT -u “<token>:” -H Content-Type:application/json
    -d’{“enable-multi-ip”: “Yes”}'

  2. Create a service using the Allocate IP option:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json -d’{“name”:“testserv1",
    “type”:“HTTP”, “port”:“80", “cloud-ip-select”:“Allocate New IP”}'

  3. Create a service using the IP address:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json
    -d’{“name”:“testserv1”,“type”:“HTTP”,“port”:“80”, “cloud-ip-select”:“Enter IP Address”, “ip-address”:“10.8.6.10”}'

  4. Create a service using the system IP:

    curl http://<WAF IP>:<Port>/restapi/v3.2/services -X POST -u “<token>:” -H Content-Type:application/json
    -d’{“name”:“testserv1",“type”:“HTTP”,“port”:“80", “cloud-ip-select”:“System IP Address”}

To enable the Multi-IP configuration through the web interface, go to the BASIC > IP Configuration page and set Enable Multi IP Configuration to Yes.


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Barracuda Web Application Firewall
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • What's New in the Barracuda Web Application Firewall
  • 30-Day Evaluation Guide - Barracuda Web Application Firewall
  • Getting Started
  • Deployment
  • Services
  • Securing HTTP/HTTPS Traffic
  • Advanced Bot Protection
  • Client-Side Protection
  • API Security
  • Advanced Security
  • IP Reputation-Based Filters
  • Tuning Security Rules
  • Barracuda Active Threat Intelligence
  • Access Control
  • Traffic Management
  • Configuring User-Defined Patterns
  • Logging, Reporting and Monitoring
  • High Availability
  • Networking
  • System Administration and Maintenance
  • Certificate Management
  • Centralized Management of the Barracuda Web Application Firewall
  • Attacks Description - Action Policy
  • REST API
    • REST API Version 1 (v1)
    • REST API Version 3 (v3)
    • How to Generate API Calls
    • File-Based Configuration Management for Barracuda Web Application Firewall
    • Using Postman for Barracuda Web Application Firewall APIs
    • How to Enable Dual-Factor Authentication for the Barracuda Web Application Firewall Web Interface Access
    • REST API to Manage Multi-IP on Azure and AWS Cloud Deployments
  • Common Web Application Attacks
  • How to Set Up Barracuda Cloud Control
  • End of Support and End of Life Information
  • Critical Vulnerabilities in Web Application
  • Barracuda Advanced Bot Protection Cloud Infrastructure Upgrade Information
  • Barracuda WAF 12.2 Firmware Hardened to Augment Security of Product Features

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 27, "requestCorrelationId": "69d4bed6ab514ef4a477291a7eae91e4"}