Understand how to deploy a site-to-site (S2S) VPN tunnel from Amazon Web Services (AWS) to Cisco Secure Access.
Deploy a site-to-site (S2S) VPN tunnel from Amazon Web Services (AWS) to Cisco Secure Access. An AWS S2S VPN in Secure Access will support the following:
The S2S VPN topology depends on components configured in the following order. Components in the diagram are numbered by order of configuration.
For more detailed instructions, refer to Amazon Virtual Private Cloud Documentation. Please note that AWS may update their documentation without notice.
Limitations
-
Number of Primary Tunnels: Secure Access supports a maximum of two primary tunnels within an AWS Site-to-Site (S2S) VPN tunnel group. Cisco has not validated configurations involving more than two S2S tunnels from a single AWS transit gateway. Additionally, the Secure Access dashboard does not provide the capability to add IP addresses for more than two tunnels in an AWS network tunnel group.
-
Bandwidth per Tunnel: Each IPsec tunnel is limited to a maximum bandwidth of 1 Gbps. Given the two-tunnel limit, the total supported throughput for Secure Access in an AWS S2S VPN deployment is 2 Gbps.
Before you begin
Prerequisites include the following.
Procedure
Component 1: Create a VPC with two subnets in AWS—In your AWS dashboard, create a VPC with two subnets. Skip this step if you already have a VPC. For more information, refer to Create a VPC
-
Navigate to .
-
Resources to create: VPC only
-
IPv4 CIDR block: Choose IPv4 CIDR manual input and enter an IPv4 CIDR for your VPC.
-
Click Create VPC.
The AWS dashboard shows the new VPC details.
-
Navigate to .
-
Click Create subnet.
-
Choose your VPC ID or IP address.
The AWS dashboard shows the Create subnet menu.
-
Configure subnet 1 of 2.
- Enter a Subnet name that indicates the VPC and whether this is the first or second subnet.
- Choose an Availability Zone.
- Enter an IPv4 subnet CIDR block that is within the VPC CDIR range and does not overlap with the IPv4 range of other subnets in the VPC.
-
Click Add a subnet. Repeat the above steps to configure subnet 2 of 2 with a different availability zone for high availability.
-
Click Create subnet.
The AWS dashboard shows the new subnets.
-
Click Transit gateways in the left navigation menu of the AWS VPC dashboard.
The AWS dashboard shows the transit gateway configuration menu.
-
Create a transit gateway with an Amazon-side Autonomous System Number (ASN).
Note
The Amazon side ASN is required for dynamic routing supported by Border Gateway Protocol (BGP) sessions. This example uses 64519. The range is from 64512 to 65534 for 16-bit ASNs. We recommend entering an ASN that is not already in use by other transit gateways in your Amazon VPC.
-
Click Create transit gateway.
Once the gateway Status is Available, create a transit gateway attachment between the transit gateway and the VPC.
-
Click Transit gateway attachments in the left navigation menu of the AWS VPC dashboard.
-
Click Create transit gateway attachment.
-
Select the Transit gateway ID of the gateway you just created.
-
Select the VPC ID of the VPC you created for Component 1.
-
Click Create transit gateway attachment.
Component 3: Create two placeholder Customer Gateways in AWS—Create two customer gateways with S2S connections. For more information, refer to Get started with AWS Site-to-Site VPN, Step 1: Create a customer gateway and Step 5: Create a VPN connection.
Note
These gateways will act as temporary placeholders that provide outside IP addresses required by the Secure Access network tunnel group configuration in the next step. The network tunnel group will provide the Secure Access BGP ASN and public IP addresses for the Secure Access Peer IP address DCs that you will use to create two new customer gateways in AWS.
-
In the left navigation menu of the AWS VPC dashboard, navigate to and click Customer gateways.
-
Click Create customer gateway.
-
Repeat these steps to create a second customer gateway with a different placeholder IP address. This example uses 209.165.200.241.
Component 4: Create a Site-to-Site VPN connection for each customer gateway
-
In the left navigation menu of the AWS VPC dashboard, navigate to and click Site-to-Site VPN connections.
-
Click Create VPN connection and configure the following:
- Target gateway type: Transit gateway
- Select the virtual private gateway that you created earlier.
- Customer gateway: Existing
- Select the first customer gateway that you created earlier.
- Routing options: Dynamic
- : Enter a size /30 IPv4 block from the 169.254.0.0/24 range.
Note
AWS allows inside CIDR addresses in the 169.254.0.0/16 range in which the network address is the first 16 bits, with 65,536 IP addresses in the range 169.254.0.0 to 169.254.255.255. Secure Access utilizes the 169.254.0.0/24 subnet range for BGP peer addresses, refer to Secure Access BGP Configuration.
- : Enter a passphrase. You will enter this in the Secure Access network tunnel group in the next step.
- : Edit tunnel 1 options.
- : Restart.
- : Start.
-
Repeat these steps for Tunnel 2 options with a different size /30 IPv4 block from the 169.254.0.0/24 range. Refer to the note above about the difference in CIDR range requirements between AWS and Secure Access.
-
Click Create VPN connection.
-
Repeat these steps to create a second VPN connection.
- Select the second customer gateway that you created earlier.
- Inside IPv4 CIDR for tunnels 1 and 2 should match the inside IP addresses you entered for tunnels 1 and 2 in the first S2S connection.
Confirm that both S2S VPN connections have an available State.
-
: Set Device Type to AWS.
-
: Each AWS customer gateway that you created in the previous step will have two tunnels, and each tunnel will have an outside IP address.
- : Enter the outside IP address of tunnel 1 for AWS S2S VPN connection 1.
Note
To find this IP address in AWS, navigate to , click the VPN ID of VPN connection 1, then navigate to .
- : Enter the outside IP address of tunnel 2 for AWS S2S VPN connection 1.
- : Enter the outside IP address of tunnel 1 for AWS S2S VPN connection 2.
- : Enter the outside IP address of tunnel 2 for AWS S2S VPN connection 2.
- : Enter the pre-shared key that you created for the tunnels in AWS.
-
: Enter the Amazon-side Autonomous System Number (ASN) configured for the Transit Gateway in AWS.
-
: Copy or download the primary and secondary tunnel IDs, data center (DC) IP addresses, and passphrase (pre-shared key). This is the only time your passphrase will be displayed.
Component 6: Replace the placeholder customer gateways in AWS—Configure two more customer gateways in AWS to connect to the Secure Access DC IPs. These will replace the placeholder customer gateways that you created for Component 3.
Note
It is not possible to update the placeholder customer gateways. You must create new customer gateways with the DC IPs from Secure Access, then modify the VPN connection in AWS to target the new customer gateways.
Before you begin, you will need this information from Secure Access:
-
The DC IP addresses for the primary and secondary tunnel from Component 4. You can also find this information in Secure Access by navigating to and clicking the network tunnel group name for details.
-
The Peer (Secure Access) BGP AS number for the network tunnel group. Find this information in Secure Access by navigating to and clicking the network tunnel group name for details.
-
Create two customer gateways using the same procedure that you followed for Component 3:
- In AWS VPC dashboard, navigate to and click Customer gateways.
- Click Create customer gateway.
- BGP ASN: Enter the Peer (Secure Access) BGP AS from the Secure Access network tunnel group.
- IP address: Enter the DC IP address for the Secure Access primary tunnel.
- Click Create customer gateway.
- Repeat these steps to create a secondary customer gateway with the DC IP address for the Secure Access secondary tunnel.
-
Modify the VPN connection in AWS. For more information, refer to Modify AWS Site-to-Site VPN connection options.
- In the left navigation menu of the AWS VPC dashboard, navigate to and click Site-to-Site VPN connections.
- Click the VPN ID of the first connection. Navigate to .
- Change Target customer gateway to the primary tunnel customer gateway created to replace the placeholder gateway.
- Click Save changes.
- Repeat these steps for the second VPN connection and the secondary tunnel customer gateway.
- Delete the placeholder customer gateway.
Component 7: Verify tunnel status in AWS and Secure Access—In the left navigation menu of the AWS VPC dashboard, navigate to and click Site-to-Site VPN connections. Click the VPN ID of each VPN connection to confirm that the State is Available and that the Status of both tunnels is Up.
This example shows VPN connection 1 is Available and both tunnels are Up:
VPN connection 2 is also Available and both tunnels are Up.
Note that each tunnel has a unique Outside IP Address. Tunnel 1 has the same Inside IPv4 CIDR range for each VPN connection, and Tunnel 2 has the same Inside IPv4 CIDR range for each VPN connection.
-
In Secure Access, navigate to and click the name of the network tunnel group to review the connection status with AWS.
-
Verify the IP address values under in Secure Access. The ID of Tunnel Group 1 should match the Outside IP Address of VPN connection 1, Tunnel 1 in AWS. The ID of Tunnel Group 2 in Secure Access should match VPN connection 1, Tunnel 2 in AWS.
-
Verify the IP address values under in Secure Access. The tunnel group IDs should match the tunnel addresses of VPN connection 2 in AWS.
When the tunnel group IDs in the Secure Access primary and secondary tunnel hubs match the tunnel addresses of AWS VPN connections 1 and 2, this confirms that the tunnel connection has been established between AWS and Secure Access DCs.
Component 8: Modify subnet routing tables to send traffic to the AWS Transit Gateway—To send traffic from the AWS VPC to the AWS transit gateway, modify the routing table of each subnet to target the Transit gateway ID. For more information, refer to Change a subnet route table.
-
In AWS, navigate to .
- : Enter the value 0.0.0.0/0.
- : Transit Gateway, select your Transit Gateway ID.
- Click Save changes.
-
In Secure Access, navigate to .
- Click the name of the network tunnel group, then click a tunnel name to review Routing details.
- show routes advertised by Amazon to Secure Access via BGP.
- show routes advertised by Secure Access to Amazon via BGP.
This confirms that branch access to resources in your AWS VPC is now protected by the site-to-site (S2S) IPsec/IKEv2 VPN tunnel with Cisco Secure Access.
What to do next
For information about managing and monitoring your network tunnel group, refer to Manage Network Tunnel Groups.