Lesson 4 of 5 VPC Connectivity and Hybrid Networking

Providing Remote User Access with AWS Client VPN

This lesson explains how AWS Client VPN, a managed remote-access VPN, lets individual users connect securely to VPCs and on-premises networks from their own devices.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how Client VPN works.
  • Explain how authentication and authorisation rules control Client VPN access.
  • Describe how users reach other networks through the associated VPC.

How Client VPN works

AWS Client VPN provides managed remote access to a VPC for individual users, such as employees working from home. It is a managed endpoint based on OpenVPN, associated with subnets in a VPC, that scales automatically with the number of users. Users connect with the AWS-provided client or any OpenVPN-compatible client.

Users authenticate with Active Directory, with SAML 2.0 federation through an identity provider such as Okta or Microsoft Entra ID, or with mutual certificate authentication. Authorisation rules then control which networks each group of users can reach. Client VPN is charged per hour for each subnet association and per hour for each connected user.

The following diagram shows a user's path into the VPC.

How AWS Client VPN works. Remote users connect with an OpenVPN-compatible client to a managed endpoint and authenticate with Active Directory, SAML 2.0 federation or mutual certificates. The endpoint is associated with subnets in a VPC, and authorisation rules decide which networks each group of users can reach.
The group and CIDR in the rule are illustrative. Authentication decides who may connect; authorisation rules decide what they can reach.

Controlling access

AWS Client VPN gives individual users, such as remote employees, an encrypted connection from their own devices to a VPC, authenticated through Active Directory, a SAML identity provider or certificates. Several controls decide what connected users can reach.

Authorisation rules allow each user group to reach only particular networks, such as giving developers access to the development VPC but not production. Security groups on the endpoint's network interfaces control which resources the VPN traffic can reach. Split tunnelling sends only traffic destined for AWS through the VPN, while other traffic, such as general web browsing, uses the user's own internet connection, which reduces cost and load. A client connect handler is a Lambda function that approves or rejects each connection, for example by checking the device's compliance. The following table summarises the controls.

ControlEffect
Authorisation rulesAllow each user group to reach only particular networks
Security groupsApplied to the endpoint's network interfaces
Split tunnellingSends only AWS-bound traffic through the VPN, while other traffic uses the user's own internet connection
Client connect handlerA Lambda function that approves or rejects each connection
Match the pairs

Client VPN controls

Exam skills 1.2.4

Match each requirement with the Client VPN control that meets it.

Log in to try this activity Interactive activities are free with an account.

Reaching other networks

Through the associated VPC, users can reach peered VPCs, transit gateway attachments and on-premises networks connected by VPN or Direct Connect, given routes and authorisation rules for each destination.

Worked example

Remote access for contractors

Contractors working from home need access to a test environment in one VPC, but not to production or on-premises networks, and must sign in with the company's identity provider.

RequirementClient VPN setting
Sign in with the corporate IdPSAML 2.0 federated authentication
Reach only the test VPCAn authorisation rule for the contractors' group to the test CIDR only
Keep their own internet traffic off the VPNSplit tunnelling
Audit connectionsConnection logging to CloudWatch Logs

Employees in another group receive broader authorisation rules on the same endpoint, so one Client VPN serves both.

Check yourself

What is the difference between Client VPN and Site-to-Site VPN?

Show answer

Client VPN connects individual users' devices with a VPN client. Site-to-Site VPN connects a whole network, such as an office, through its customer gateway device.

Exam Tips

Remember for the exam

  • When remote workers need access to VPC resources, use Client VPN.
  • To send only VPC-bound traffic over Client VPN, use split tunnelling.
  • To let different user groups reach different networks, use Client VPN authorisation rules.
  • For remote users signing in with the corporate identity provider, use Client VPN with SAML authentication.