Skip to Content
Asterrr's Handbook
3 · Infrastructure security

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.

Corporate officeVPCIPsec x2TLSCustomer gatewaydeviceVirtual privategatewayClient VPNendpointPrivateworkloadsRemote user
Offices use Site-to-Site VPN through a customer gateway device. Remote users reach a Client VPN endpoint. Both land in the VPC.
2
IPsec tunnels in every Site-to-Site VPN connection. Keep both up.
1.25 / 5 Gbps
Max per standard / large bandwidth VPN tunnel.

Which one to use

yesnonetwork (data center,other cloud)noyesyes, 10/100/400 Gbpsdedicatedyes, any speednopersonyesno, specific appsWhat needs to connect?Workload to AWS serviceAPIs?VPC endpoint +endpoint policyA whole network or aperson?Dedicated bandwidth andsteady latency?Site-to-Site VPNEncryption required on thelink?Direct Connect +MACsecIPsec VPN overDirect ConnectDirect ConnectNeeds network-level accessto many hosts?Client VPNVerified Access
Decision tree for choosing the connection

Gateway and interface endpoints for AWS APIs are covered on VPC network controls.

OptionUse whenNotes
Site-to-Site VPNConnect an office or data center network to a VPCIPsec. 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 VPNIndividual users connect from anywhereManaged, OpenVPN-based, TLS. No servers to run
VPN CloudHubLink several sites to each other through AWSHub and spoke. One customer gateway per site, each with a unique BGP ASN
Software VPN on EC2You need a specific appliance and full controlYou patch and scale it. Marketplace or open source
Direct ConnectDedicated private line, not encrypted by defaultSee 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 TunnelState CloudWatch metric and enable tunnel logs for IKE and DPD troubleshooting.

Client VPN facts

ItemWhat to remember
AuthenticationActive Directory, mutual certificate, or federated SAML
Authorization rulesRestrict each network to an AD or IdP group. None exist by default, so users see nothing until you add rules
NetworkAssociate 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
Ports443 (default) or 1194, TCP or UDP
LoggingConnection logs to CloudWatch Logs
Device postureCan 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.

Further reading

On this page