How to Configure a Site-to-Site IPsec VPN to the Microsoft Azure VPN Gateway Print

  • 0

You can configure your Barracuda NextGen Firewall X-Series to connect to the IPsec VPN gateway service in the Microsoft Azure cloud.


Before you Begin

  • Create and configure a Microsoft Azure static VPN Gateway for your virtual network.
  • You will need the following information:
    • VPN Gateway
    • External IP address for the X-Series Firewall
    • Remote and local networks.

Step 1.Create a Network in the Microsoft Azure cloud

Create a virtual Network in the Microsoft Azure cloud. Choose subnets which are not present in your local networks to avoid IP address conflicts.

  1. Log into your Microsoft Azure Management Portal (
  2. In the left pane click NETWORKS.
  3. In the bottom left corner click + NEW.
  4. Click CUSTOM CREATE. The create a virtual network windows opens.
  5. Enter the Name for the network.
  6. Select a Location. E.g., West Europe
  7. Click NEXT AzureNextArrow.png.
  8. (optional) Enter or select a DNS server. 
  9. In the right panel enable Configure site-to-site VPN.
  10. Select Specify a New Local Network from the LOCAL NETWORK drop down.
  11. Click NextAzureNextArrow.png.
  12. Enter a NAME for your local on-premises network.
  13. Enter the VPN DEVICE IP ADDRESS. This is the external IP address of the X-Series Firewall running the VPN service.
  14. In the ADDRESS SPACE section enter the on-premise network(s). E.g.,
  • Click NextAzureNextArrow.png.
  • In the Virtual Network Address Spaces section click add subnet:
    • Subnet – Enter a name for the subnet. 
    • Starting IP – Enter the first IP of the IP Range for the subnet. E.g.,
    • CIDR(ADDRESS COUNT) – Selectthe subnet mask from the list. E.g., /24 for 256 IP addresses
  • Click add gateway subnet:
    • Starting IP – Enter the first IP for the gateway subnet. E.g., 
    • CIDR (ADDRESS COUNT) – Select the subnet mask from the list. E.g., /29 for 8 IP addresses
  1. Click OK AzureOK.png.

The Azure Virtual Network you have just created is now listed in the NETWORK menu in the Azure management interface.

Step 2. Create a VPN Gateway for the Microsoft Azure Network

Create the Azure VPN Gateway.

  1. Log into your Microsoft Azure Management Portal (
  2. In the left pane click NETWORKS.
  3. Click on the Network previously created in Step 1.
  4. in the top menu click on DASHBOARD.
  5. In the bottom pane, click CREATE GATEWAY.
  6. Select Static Routing from the list. Creating the gateway will take a couple of minutes.

When the color of the gateway turns blue, the gateway has been successfully created. The Gateway IP is now displayed below the VPN Gateway image.


Step 3. Configure IPsec Site-to-Site VPN on the X-Series Firewall

Create a active IPsec VPN connection on the X-Series Firewall.

  1. Go to the Site-to-Site page (VPN > Site-to-Site)

  2. If your are using a dynamic address (DHCP, xDSL, 3G) to connect to the Internet, or if you are behind a NAT enable Use Dynamic IPs in the GLOBAL SERVER SETTINGS section and click Save. The VPN service restarts.
  3. In the Site-to-Site IPsec Tunnels section click on Add.
  4. Enter the Name for the IPsec VPN. E.g.,
  • AzureVPNGateway
  • Configure the Phase 1 and Phase 2 encyption settings:
    • Phase 1:
      • Encryption – AES
      • Hash Method – SHA
      • DH Group – Group 2
      • Lifetime – 28800
    • Phase 2:
      • Encryption – AES
      • Hash Method – SHA256
      • Lifetime – 3600
      • Perfect Forward Secrecy – No
    • Local End – Active
    • Local Address – Dynamic or static if you are using a static WAN connection.
    • Local Networks – Enter your on-premise subnet(s). E.g.,

    • Remote Gateway – Enter the IP for the GATEWAY IPADDRESS  listed on the DASHBOARD of your Azure network. E.g.,
  • 137.117203.108
  • Remote Networks – Enter the remote VPC subnet. E.g., 
    • Authentication – Select Shared Passphrase.
    • Passphrase – Enter the Shared Key generated by your Azure VPN Gateway. To view the shared key go to the DASHBOARD of your Azure network and click on the Manage Key icon in the bottom pane.
    • Enable Aggressive – No.
  1. Click Save.

Step 4. Create a Access Rule

If you do not have the VPN-SITE-2-SITE access rule you must create an access rule to allow traffic to allow traffic from your local network to the Azure subnet.

  1. Go to the FIREWALL > Firewall Rules page.

  2. Add a Access Rule:
    • Type – Select ALLOW.
    • Source – Enter your local network(s) or select a network object containing only your local network(s). E.g., 
  • Destination – Enter the remote subnet in the Azure Network. E.g., 
    • Network Services – Select Any.
    • Connection – Select No SNAT
  1. Click Save
  2. Place the firewall rule so no rule matches the VPN traffic above it.
  3. Click Save.

Your X-Series Firewall will now automatically connect to the Azure VPN Gateway.


Was this answer helpful?

« Back