VPN Options for AWS Access
Site-to-Site VPN, Client VPN, VPN CloudHub and self-managed VPN appliances. Which to choose for offices, remote users and multi-site links.
Exam tasks: 3.3 (secure hybrid and multi-cloud connectivity with Site-to-Site VPN, Direct Connect and MACsec)
The decision: who or what is connecting (a network, a person, or a workload calling an AWS API), does the path need encryption, and can you give access to one application instead of a whole network?
Four ways to give people or sites encrypted access to a VPC. The exam asks which one fits a stated user population.
Which one to use
Gateway and interface endpoints for AWS APIs are covered on VPC network controls.
| Option | Use when | Notes |
|---|---|---|
| Site-to-Site VPN | Connect an office or data center network to a VPC | IPsec. Two tunnels per connection. Customer gateway device on your side. Target on AWS is a virtual private gateway or a transit gateway. Users away from the office cannot connect |
| Client VPN | Individual users connect from anywhere | Managed, OpenVPN-based, TLS. No servers to run |
| VPN CloudHub | Link several sites to each other through AWS | Hub and spoke. One customer gateway per site, each with a unique BGP ASN |
| Software VPN on EC2 | You need a specific appliance and full control | You patch and scale it. Marketplace or open source |
| Direct Connect | Dedicated private line, not encrypted by default | See Direct Connect encryption |
Site-to-Site VPN facts
- Each connection has two tunnels for high availability. A standard tunnel supports up to 1.25 Gbps. Large bandwidth tunnels reach 5 Gbps and exist for transit gateway or Cloud WAN attachments.
- Supports IKEv2, NAT traversal, AES-256 and SHA-2.
- A connection carries IPv4 or IPv6, not both. IPv6 on a virtual private gateway is not supported.
- Use non-overlapping CIDR blocks between networks.
More on Site-to-Site VPN
- Tunnels end on a customer gateway device and a virtual private gateway or transit gateway. Configure both tunnels.
- Authentication uses pre-shared keys (store them in Secrets Manager) or certificates from AWS Private CA. Restrict IKE and IPsec to IKEv2, AES-GCM and strong DH groups in the tunnel options.
- Beyond 5 Gbps, use ECMP across several connections on a transit gateway with BGP.
- Accelerated VPN enters the AWS network at the nearest edge location through Global Accelerator, for distant sites.
- Watch the
TunnelStateCloudWatch metric and enable tunnel logs for IKE and DPD troubleshooting.
Client VPN facts
| Item | What to remember |
|---|---|
| Authentication | Active Directory, mutual certificate, or federated SAML |
| Authorization rules | Restrict each network to an AD or IdP group. None exist by default, so users see nothing until you add rules |
| Network | Associate the endpoint with a subnet (or attach to a transit gateway). Security groups apply. Client traffic is source-NATed to the endpoint interface for IPv4 |
| Ports | 443 (default) or 1194, TCP or UDP |
| Logging | Connection logs to CloudWatch Logs |
| Device posture | Can require a healthy device through trust providers such as CrowdStrike, Jamf and JumpCloud |
Exam signal
"Employees anywhere, least operational work": Client VPN. "Branch offices over IPsec": Site-to-Site VPN. "Connect many on-premises sites through AWS": CloudHub. "Zero trust application access without a VPN": Verified Access.
More on Client VPN
- Combine certificate plus AD or SAML for two factors.
- Split tunnel sends only VPC routes through the VPN. Full tunnel sends everything, which you need if all user traffic must pass your egress inspection.
- A client connect handler (Lambda) can reject connections based on posture or time.
Related
-
VPC network controls for endpoints and endpoint policies.
Further reading
VPC Flow Logs and Traffic Mirroring
Metadata logging versus full packet capture in a VPC, what flow logs miss, and how to tell NACL denies from security group denies.
Direct Connect Encryption
Direct Connect carries traffic unencrypted by default. IPsec VPN over public or transit VIFs and MACsec are the two ways to encrypt it.