It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

How to Deploy a CloudGen Firewall in AWS via AWS Console

  • Last updated on

The Barracuda CloudGen Firewall secures and connects the services running in your AWS virtual private cloud (VPC). The firewall monitors and secures all traffic between subnets to and from the Internet. It also connects your cloud resources either to your on-premises networks with site-to-site VPN, or to your remote users with client-to-site VPN and SSL VPN. After the deployment, the Instance ID is the root password set to log in via Barracuda Firewall Admin. Logging in via SSH is only possible through the certificate file set during the last deployment step.

aws_vpc_single.png

Step 1. Create an IAM Role for the Firewall

Create an IAM role for your firewall instance. Verify that all the required IAM policies are attached to the role.

For step-by-step instructions, see How to Create an IAM Role for a CloudGen Firewall in AWS.

Step 2. Select the AWS Data Center

  1. Log into the AWS console.
  2. In the upper right, click on the data center location, and select the data center you want to deploy to from the list.
    select_region.png

The selected data center location is now displayed in the AWS console.

Step 3. Create an Elastic IP

Create an elastic IP address. This is the public IP address that will be used for your firewall instance.

  1. Log into the AWS console.
  2. Click Services and search for EC2.
  3. Select EC2.
    select_ec2.png
  4. The EC2 Resources window opens. In the Network & Security section of the left menu, select Elastic IPs.
    select_eip.png
  5. Click Allocate Elastic IP address.
    allocate_ip.png
  6. On the Allocate Elastic IP address page, keep the default settings and click Allocate to allocate a new IP address. 

A random unassigned elastic IP gets generated and displayed in the Elastic IP addresses table. Copy the Allocation ID for future use.

Step 4. Create VPC

Use the VPC wizard to create a VPC with one public and one private subnet. The firewall will be deployed in the public subnet. If needed, you can add additional subnets after the deployment.

  1. Log into the AWS console.
  2. Click Services and search for VPC.
  3. Select VPC.
  4. Click Create VPC
    create_vpc.png
  5. The VPC configuration window opens. Select VPC and more and customize the following details:
    • Auto-generate – (optional) Specify a name tag to be added to all resources. Otherwise, disable this checkbox.
    • IPv4 CIDR block – Enter a /16 CIDR block that does not overlap with any of your other networks.
    • Number of Availability Zones (AZ) – Select 1, and select which availability zone the VPC is created in.
    • NAT gateways ($) – Select None
    • (optional) Set Enable DNS hostnames to NO to only use IP addresses to access your VPC. 
  6. In the Preview section:
    • VPC Name – Enter a name for your VPC. 
    • Public subnet – Enter the /24 subnet used for the firewall instance.
    • Private subnet – Enter the /24 subnet used for the instances protected by the firewall.
      vpc_wiz.png

      You can add more subnets and functionalities later.
  7. Click Create VPC.
    create_vpc_dns.png

The VPC is now listed in the Your VPCs list.

vpc_list.png

Step 5. Check the NAT Gateway

Since the Barracuda CloudGen Firewall already includes NAT gateway functionality, make sure that no NAT gateway instance is pesent for your VPC. If a NAT gateway was automatically created during the VPC configuration, you must delete it.

Do do so, complete the following steps:

  1. Log into the AWS console.
  2. Click Services and select VPC.
  3. In the Virtual private cloud section of the left menu, click NAT gateways.
  4. (optional) Enter the VPC ID in the search bar.
  5. Right-click the NAT gateway created for your VPC and click Delete NAT gateway.
    del_nat.png
  6. Confirm the deletion.

The elastic IP address associated with the NAT gateway is released automatically and is now free to use for the firewall instance.

Step 6. Deploy the CloudGen Firewall Instance

You can deploy the CloudGen Firewall instance in two different ways from the AWS Marketplace: BYOL and hourly. The firewall instance is deployed into the public subnet and can be configured to use either a single network interface or one network interface per subnet. The number of network interfaces is limited by the instance size.

  1. Log into the AWS console.
  2. Click Services and select EC2.
  3. In the Create Instance section, click Launch Instance.
    launch_inst.png
  4. Click Browse more AMIs, and search the AWS Marketplace for Barracuda .
  5. Click Select next to the image type you want to deploy: BYOL or PAYG.
    browse_image.png
  6. Select the Instance Type. If you are deploying a BYOL image, verify that the number of CPU cores of the instance matches your license.
  7. Click Continue.
  8. Configure the Instance Details:
    • In the Name and tags field, enter a name for your instance. A tag consists of a key and an optional value (name). To tag your instance, click Add new tag and define values for it.
    • Scroll down and select the Instance type.
    • Key pair (Login) – From the drop-down list, select an existing key pair name or click Create new key pair and create a key pair.

       The certificate is valid only for SSH logins with the root user. For Barracuda Firewall Admin, the Instance ID is the default password.

    • Network settings – Expand this section and edit the configuration:
      • Network / VPC – Select the VPC created in Step 2.
      • Subnet – Select the public subnet. 
      • Auto-assign public IP – Select Disabled to use the subnet setting.
      • Firewall (security groups) – Select and existing security group or create a new one.
      • (optional) Click Add security group rule and add rules, e.g., for ICMP and HTTP
        • For ICMP
          • Type – Select All ICMP
          • Source type – Select Anywhere.
        • For HTTP
          • Type – Select HTTP
          • Source type – Select Anywhere.
    • Configure storage – (optional) Expand this section and change the volume type as needed.
    • Advance details – Expand this section and edit the configuration:
      • IAM instance profile – Select the IAM role created in Step 1.
      • Configure advanced settings according to your requirements. For details, click Info next to a paramenter and refer to the help box on the right.
    • Summary (HA only) > Number of instances – To deploy two instances to create an HA cluster, enter 2. For stand-alone deployments, deploy one instance.
  9. Click Review commands and check your entries.
  10. Click Launch instance

On the Launch Status page, locate and copy the Instance IDs. This is the default password used to log in via Barracuda Firewall Admin.

aws_deploy_16.png

Step 7. Disable Source/Destination Check for the Network Interface

For the interface to be allowed to forward traffic with a destination IP address that is different from the IP addresses assigned to the network interfaces, you must disable the source/destination check.

  1. Log into the AWS console.
  2. Click Services and select EC2.
  3. In the Network & Security section of the left, click Network Interfaces.
  4. (optional) Filter the list using the Instance ID.
  5. Right-click on the network interface, and select Change source/dest. check. You can also do this by selecting the entry and expanding the Actions menu.
    change_if_check.png
  6. Set the sounce/destination check to disabled.
  7. Click Save.

The source/destination check is now disabled for the network interface connected to the firewall instance. 

Step 8. Associate the Elastic IP with the Firewall

Use the Elastic IP (EIP) as the public IP address for the firewall network interface connected to the public subnet.

  1. Stay in the Network Interfaces window.
  2. (optional) Filter the list using the Instance ID.
  3. Locate the network interface connected to the public subnet, and copy the Network interface ID.
    copy_id.png
  4. In the Network & Security section of the left menu, click Elastic IPs.
  5. Select the EIP created in Step 2, expand the Actions list, and select Associate Elastic IP address.
    ass_eip.png
  6. Select Network interface, select the the Network interface ID, and click Associate.

ass_nic.png

Traffic to the EIP is now automatically forwarded to the network interface attached to the public subnet of the VPC.

Step 9. Adjust the Routing Tables

Adjust the routing table for the private subnets to use the firewall instance as the default gateway. Instances will always use the first IP address of the subnet as the default gateway. The AWS cloud fabric then internally reroutes the traffic to the configured network interface or instance.The route table attached to the public subnet does not need to be changed.

  1. Log into the AWS console.
  2. Click Services and select VPC
  3. In the Virtual private cloud section of the left menu, click Route tables.
  4. (optional) Filter the list using the VPC ID.
  5. Select the route table that is not associated with the public subnet.
  6. In the lower half of the page, click on the Subnet associations tab.
  7. Click Edit subnet associations.
    edit_ass.png
  8. Select the private subnet and click Save associations.

    If you are deploying with multiple network interfaces, you must create a route table for each private network. If you are using one network interface, associate all private subnets with this route table.

  9. Click the Routes tab.
  10. Click Edit routes.
    edit_rt.png
  11. Depending on whether you are using single or multiple network interfaces:
    1. Single NIC – Enter the Instance ID of the firewall in the Target column of the route with the Destination 0.0.0.0/0.
    2. Multiple NICs – Enter the network interface ID of the network interface associated with this subnet in the Target column of the route with the Destination 0.0.0.0/0.
  12. Click Save changes:

You now have a default route with the Status Active and the target set to the correct firewall network interface. 

rt_active.png

Step 10. Create a Security Group

Create a security group for the private networks that allow all traffic from the security group assigned to the firewall.

  1. Log into the AWS console.
  2. Click Services and select VPC
  3. In the Security section of the left menu, click Security groups.
  4. Locate the security group created during the firewall deployment, and copy the Security group ID.
    copy_sg.png
  5. Click Create security group.
    • Security group name – Enter a name for the security group.
    • Description – Enter a description for the security group. 
    • VPC Select the VPC you created in Step 3 from the list.
  6. Click Create security group.
  7. In the lower half of the page, click on the Inbound rules tab.
  8. Click Edit inbound rules .
  9. Create a rule to allow traffic from the firewall security group:
    • Type – Select All traffic
    • Protocol – Select All
    • Source – Select Custom and enter the group ID of the security group assigned to your firewall.
      edit_ir.png
  10. Click Save rules.

When deploying Instances to one of the private subnets, use this security group. This will allow traffic to and from the firewall.

Step 11. (optional) Edit the Network ACLs

The Network ACLs created by the VPC wizard are configured by default to allow traffic through. If required, go Network ACLs to edit the network ACL assigned to your VPC.

Step 12. Log in via Barracuda Firewall Admin

Use Barracuda Firewall Admin to log into your firewall.

  1. Launch Barracuda Firewall Admin.
  2. Log into the firewall:
    • Select Firewall
    • IP Address / Name – Enter the elastic IP. 
    • Username – Enter root.
    • Password – Enter the Instance ID of the firewall instance created in Step 6.
  3. Click Sign in.
    aws_deploy_29.png
  4. Renew your password.
  5. The window for selecting how to manage the firewall is displayed.
  6. Click Manage via Barracuda Firewall Admin.
    aws_manage_via_ngadmin.png

Next Steps