Deploy the ASA Virtual on IBM Cloud

Overview

This guide outlines the deployment of the ASA Virtual (ASAv) on IBM Cloud. It covers the necessary steps to configure your Virtual Private Cloud (VPC) environment and deploy the ASA virtual instance to act as a security gateway, providing traffic inspection and policy enforcement between your network segments.

This solution leverages IBM Cloud’s infrastructure to provide robust security capabilities in a routed, IPv4-based environment. The following sections provide the prerequisites, deployment workflow, and troubleshooting guidance required to successfully integrate ASA virtual into your IBM Cloud architecture.

Licensing ASA Virtual on IBM Cloud

In this release, only BYOL (Bring Your Own License) is supported. ASA virtual (ASAv) will support a feature-based licensing model, and Smart Licensing will function as is within the IBM Cloud environment. Existing licensing procedures apply.

Minimum license tier supported: Base / Essentials


Note


ASA virtual operates in evaluation mode until a valid license is applied. For production use, a valid Bring Your Own License (BYOL) must be applied to enable full functionality and performance.


Plan ASA Virtual deployment on IBM Cloud

Before beginning, review the requirements and limitations to ensure a successful deployment.

Ensure that all resources, including the VPC, subnets, security groups, SSH key, and profile, match the intended deployment region and zone.

Supported and unsupported features

  • Supported: Routed mode, IPv4 addressing, UEFI mode.

  • Unsupported: IPv6 addressing, High Availability (HA), Clustering, Auto-scale, Transparent mode, SR-IOV, BIOS mode.

Supported instances and requirements

IBM Cloud instances use the KVM hypervisor. The following compute profiles are supported:

Profile name

vCPU/Memory(RAM)

vNICs

Suggested performance tier

Version

cx3d-2x5

2/5 GB

5

ASAv5/ASAv10

9.24.10 and later

cx4d-2x4

2/4 GB

5

ASAv5/ASAv10

9.24.10 and later

cx3d-4x10

4/10 GB

5

ASAv30

9.24.10 and later

cx4d-4x8

4/8 GB

5

ASAv30

9.24.10 and later

cx3d-8x20

8/20 GB

5

ASAv50

9.24.10 and later

cx4d-8x16

8/16 GB

5

ASAv50

9.24.10 and later

cx3d-16x40

16/40 GB

5

ASAv100

9.24.10 and later

cx4d-16x32

16/32 GB

5

ASAv100

9.24.10 and later


Note


  • 4th generation profiles (cx4) are available in the Dallas (us-south) region.

  • Maximum of five interfaces are supported on each ASA Virtual instance.


Prerequisites

  • Account: IBM Cloud VPC account with appropriate permissions.

  • Infrastructure: Configure VPC, subnets, access control lists, and resource groups.

Deployment workflow

  1. Search for 'Cisco Secure Firewall ASA Virtual' in the IBM cloud catalog search bar and select it.

  2. Review deployment target, delivery method, and product version.

  3. Network Setup: Configure VPC, subnets, and security groups.

  4. Instance Launch: Create the virtual server instance with Day-0 configuration.

  5. Management: Assign a floating IP address and configure via CLI or ASDM.

Sample topologies

ASA Virtual Deployment with Inside and Outside Cloud Routing Tables

This topology illustrates ASA Virtual acting as a security gateway, providing traffic inspection and policy enforcement between two distinct network segments. The IP addresses shown are from Cisco-designated documentation blocks and are used for illustration only.

Topology overview

  • Core components: An ASA Virtual instance is positioned between an Inside Network (209.165.200.224/27) and an Outside Network (209.165.201.0/27). The Inside Ubuntu host uses 209.165.200.251, and the Outside Ubuntu host uses 209.165.201.27.

  • Interfaces and management: The ASA Virtual inside interface, Gig 0/0, uses 209.165.200.244, and its outside interface, Gig 0/1, uses 209.165.201.24. The diagram shows a floating IP of 209.165.202.153 associated with the management interface, Mgmt 0/0.

  • Inside-to-outside traffic: The Inside Ubuntu host (209.165.200.251) sends traffic destined for the outside subnet. The inside network’s cloud routing table specifies destination 209.165.201.0/27 with next hop 209.165.200.244, directing this traffic through the ASA Virtual inside interface for forwarding to the outside network.

  • Outside-to-inside traffic: The Outside Ubuntu host (209.165.201.27) sends traffic destined for the inside subnet. The outside network’s cloud routing table specifies destination 209.165.200.224/27 with next hop 209.165.201.24, directing this traffic through the ASA Virtual outside interface for forwarding to the inside network. This route also supports return traffic for connections initiated by the inside host.

ASA Virtual Deployment with Source PAT to an Outside Private Network

This topology illustrates ASA Virtual forwarding traffic between two subnets using a cloud route and Source PAT. The IP addresses shown are from Cisco-designated documentation blocks and are used for illustration only. The outside private network uses RFC 1918 private addresses.

Topology overview

  • Core components: An ASA Virtual instance is positioned between an Inside Network (209.165.200.224/27) and an Outside private network (10.0.4.0/24). The Inside Ubuntu host uses 209.165.200.231, and the Outside Ubuntu host uses 10.0.4.27.

  • Interfaces and management: The ASA Virtual inside interface, Gig 0/0, uses 209.165.200.244, and its outside interface, Gig 0/1, uses 10.0.4.4. The management interface, Mgmt 0/0, uses 209.165.202.153.

  • Inside-to-outside traffic with PAT: The Inside Ubuntu host (209.165.200.231) sends traffic destined for the outside subnet. The inside network’s cloud routing table specifies destination 10.0.4.0/24 with next hop 209.165.200.244, directing this traffic through the ASA Virtual. Source PAT translates the host’s source address to the ASA outside interface address: 209.165.200.231 → 10.0.4.4.

  • Return traffic: Replies from the Outside Ubuntu host (10.0.4.27) are addressed to the translated address, 10.0.4.4. ASA Virtual uses the existing connection and PAT state to reverse the translation and forward the replies to the Inside Ubuntu host (209.165.200.231).

Prepare the IBM Cloud environment

Create a resource group

A resource group in IBM Cloud is a logical container used to organize, manage, and control access to cloud resources. IBM Cloud automatically provides a default resource group. You can also create and configure your own resource groups as required.

Procedure


Step 1

In the IBM Cloud console, choose Manage > Account.

Step 2

In the Account window, choose Account resources > Resource groups.

Step 3

Click Create.

Step 4

Enter a Name for your resource group.

Step 5

Click Create.


Create VPC

Procedure


Step 1

From the IBM Cloud navigation (hamburger) menu, choose Infrastructure > Network > VPCs.

Step 2

In the Virtual private clouds window, click Create +.

Step 3

Choose the Region.

Step 4

Enter a Name.

Step 5

Choose a Resource group.

Step 6

Click Create virtual private cloud. By default, the Create a default prefix for each zone checkbox is checked. This ensures that a default address prefix is created for each zone.


Create subnets

Add subnets for management, inside, and outside interfaces.

Procedure


Step 1

From the IBM Cloud navigation menu, choose Infrastructure > Network > Subnets.

Step 2

In the Subnets for VPC window, click Create +.

Step 3

Choose a Location.

Step 4

Enter a Name.

Step 5

Choose a Resource group.

Step 6

Choose a Virtual private cloud.

Step 7

Under IP address range selection, choose the Address prefix and the number of Total IP addresses required.

Step 8

Enter an IP range.

Step 9

Click Create subnet. Similarly, create the other two subnets.


Create access control list

Access control lists (ACLs) are filters that allow or deny specific incoming or outgoing traffic in a Virtual Private Cloud (VPC).

By default, all traffic is allowed to enter or exit your network. Rules with lower numbers are evaluated first and override rules with higher numbers.

Configure network ACLs to allow TCP port 22 for SSH access and TCP port 443 for HTTPS management access.

Each subnet can be attached to only one ACL. However, each ACL can be attached to multiple subnets.


Note


  • Scope ACL rules to only the minimum required traffic necessary for your specific network topology. This practice helps reduce the attack surface and limits potential exposure to unauthorized access or malicious traffic.

  • To enable access to the IMDS server from the ASA virtual, ensure that you configure an explicit security group rule on the eth0 subnet to permit outbound traffic to 169.254.169.254 (metadata-server).


Procedure


Step 1

From the IBM Cloud navigation menu, choose Infrastructure > Network > Access control lists.

Step 2

Click Create +.

Step 3

In the Access control list for VPC window, choose a Location.

Step 4

Enter a Name.

Step 5

Choose a Resource group.

Step 6

Choose a Virtual private cloud.

Step 7

Under Rules, click Create + to create inbound or outbound rules.

Step 8

Choose the options as per your requirement and click Create.


(Optional) Create Secrets Manager

Procedure


Step 1

In the IBM Cloud console, search for Secrets Manager and select it.

Step 2

In the Secrets Manager window, choose the Location.

Step 3

Click Create.

Step 4

From the IBM Cloud navigation menu, choose Resource list > Security.

Step 5

Click the Secrets Manager instance that you created.

Step 6

Click Manage secrets.

Step 7

Click Add.

Step 8

Click Other secret type.

Step 9

Enter a Name.

Step 10

Click Next.

Step 11

In the Enter data field, enter the day-0 configuration. You can also find the sample day-0 configuration on GitHub. Ensure that you replace the sample hostname, password, SSH public key, and any other required placeholders in the day-0 configuration before using it.

Sample day-0 configuration:

ASA Version 9.x.x
!
interface management0/0
 management-only
 nameif management
 security-level 100
 ip address dhcp setroute
 no shutdown
!
interface G0/0
 nameif inside
 ip address dhcp setroute
 no shutdown
!
interface G0/1
 nameif outside
 ip address dhcp setroute
 no shutdown
!
crypto key generate rsa modulus 2048 noconfirm
ssh 0 0 management
ssh timeout 60
ssh version 2
!
username admin password E28@2OiUrhx! privilege 15
enable password <password> level 15
username admin attributes
service-type admin
aaa authentication ssh console LOCAL
!
dns domain-lookup management
dns server-group DefaultDNS
 name-server x.x.x.x

Step 12

Click Next.

Step 13

Click Add.


Deploy the ASA Virtual

Procedure


Step 1

In the IBM Cloud console, search for 'Cisco Secure Firewall ASA Virtual' in the search bar and select it.

Step 2

Review deployment target, delivery method, and product version.

Step 3

Under Review access requirements, review the IAM roles that are needed to create an ASA virtual instance.

Step 4

Under Configure your workspace:

  1. Enter a unique Name.

  2. Choose a Location.

  3. Choose the Resource group that you created.

Step 5

Under Set the input variables, enter the required input variables.

  1. asav_image_version : The selected ASA virtual image version is displayed.

  2. data_security_group_1_id : Enter the security group ID for the data interface 1 in the selected VPC.

  3. data_security_group_2_id : Enter the security group ID for the data interface 2 in the selected VPC.

  4. data_subnet_1_id : Select the subnet for GigabitEthernet0/0.

  5. data_subnet_2_id : Select the subnet for GigabitEthernet0/1.

  6. instance_profile : Select a profile supported by the ASA virtual image.

  7. management_security_group_id : Enter a management security group ID in the selected VPC. Restrict access to approved sources.

  8. management_subnet_id : Select the subnet for Management0/0.

  9. resource_name_prefix : Enter a unique prefix using 1–35 lowercase letters, digits, or hyphens. Start with a letter and avoid consecutive or trailing hyphens.

  10. region : Select the region containing the existing VPC and subnets. The ASA virtual image must be available in this region.

  11. resource_group_name : Select the resource group for the ASA virtual instance, interfaces, boot volume, and optional floating IP.

  12. vpc_id : Select an existing VPC in the deployment region. Reselect it if the region changes.

  13. ssh_key_id : Select a VPC SSH key registered in the deployment region. Reselect it if the region changes.

Step 6

Under Optional input variables, enter the input variables as per your requirements. Some variables will have default values, which you can use or modify.

  1. create_management_floating_ip : Enable this to create a public IP address for management. Restrict access to approved sources in the management security group.

  2. tags : Enter a JSON array of nonempty strings to tag the ASA virtual instance and optional floating IP.

  3. user_data : Optional raw ASA virtual startup configuration. If you want to select the secret that you created earlier, click Select from Secrets Manager, select the Secrets Manager instance that you created earlier, and then select the Secret group and Secret. When you select these parameters, Secret configured is displayed. If you want to enter the start-up configuration now, turn off Use a secret? and click the Secure value edit icon to display the window in which you can enter the configuration.

    A sample day-0 configuration is given below. You can also find the sample day-0 configuration on GitHub. Ensure that you replace the sample hostname, password, SSH public key, and any other required placeholders in the day-0 configuration before using it.

    
    ASA Version 9.x.x
    !
    interface management0/0
     management-only
     nameif management
     security-level 100
     ip address dhcp setroute
     no shutdown
    !
    interface G0/0
     nameif inside
     ip address dhcp setroute
     no shutdown
    !
    interface G0/1
     nameif outside
     ip address dhcp setroute
     no shutdown
    !
    crypto key generate rsa modulus 2048 noconfirm
    ssh 0 0 management
    ssh timeout 60
    ssh version 2
    !
    username admin password E28@2OiUrhx! privilege 15
    enable password <password> level 15
    username admin attributes
    service-type admin
    aaa authentication ssh console LOCAL
    !
    dns domain-lookup management
    dns server-group DefaultDNS
     name-server x.x.x.x

Step 7

Under Select a pricing plan, click See pricing details to review the pricing details.

Step 8

Click Install.

Step 9

In the Jobs tab, Terraform commands successful is displayed after the deployment is complete.

Step 10

Click the Resources tab to verify that the ASA virtual instance is up and to view the resources that are created. If you do not see any resources in this window, click the Refresh icon to refresh the page and display the resources.

Step 11

Verification: Connect via SSH or the IBM Cloud Serial Console to verify the boot sequence. Connecting via the VNC console is not supported.

  1. To connect via the serial console, from the navigation menu, choose Infrastructure > Compute > Virtual server instances.

  2. Then, click the ellipsis icon next to the virtual server instance that you created.

  3. Click Open serial console. Then, log in using the credentials provided in the day-0 configuration.


Create a floating IP address

Create a floating IP address to provide public SSH access to the ASA virtual instance. A Floating IP (FIP) address is a public IPv4 address that you can dynamically associate with a resource inside a VPC. A floating IP has these characteristics.
  • It is a public, internet-routable IPv4 address.

  • It is not permanently tied to a VM or NIC.

  • Can be attached or detached at any time.

  • Located in the VPC networking layer.

  • One floating IP address per network interface.

Procedure


Step 1

From the IBM Cloud navigation menu, choose Infrastructure > Compute > Virtual server instances.

Step 2

Click the instance Name that you created.

Step 3

In the Networking tab, click the Actions ellipsis icon in the eth0 management interface row.

Step 4

Click Edit floating IPs.

Step 5

Click Attach.

Step 6

Click Reserve new floating IP.

Step 7

Enter a Name and choose the Resource group that you created.

Step 8

Click Reserve. The floating IP address is now attached to the management interface. You can use this floating IP address for SSH access to the ASA virtual instance.


Troubleshooting

  • View boot logs: Use the IBM Cloud serial console to view boot logs.

    1. Navigate to Virtual Server Instances in the IBM Cloud console.

    2. Select the target instance.

    3. Choose Action > Open Serial Console.

  • Connectivity issues: If SSH fails, verify the Floating IP address assignment and ensure security groups permit port 22.

  • Unable to create ASA Virtual instance.

    • Possible reason: IBM Cloud VPC quota exceeded or insufficient resources in selected zone.

      Solution: Check the VPC quotas and ensure the selected zone has sufficient resources for the chosen compute profile.

    • Possible Reason: Invalid Day-0 configuration.

      Solution: Verify that the Day-0 configuration is in cleartext CLI format.

    • Possible Reason: Security group or network configuration issues.

      Solution: Ensure that the security groups allow required traffic and that the subnets are properly configured.

  • Unable to establish SSH connection to ASAv instance.

    • Possible reason: Device may not be fully ready.

      Solution: Check the serial console in IBM Cloud to verify boot sequence completion.

  • Possible reason: Floating IP address not assigned or not reachable.

    Solution: Verify the floating IP address is assigned to the management interface and is reachable from your network.

  • Possible reason: Security group blocking SSH traffic.

    Solution: Ensure that the security group attached to the management interface allows inbound TCP port 22.