Lesson 4 of 4 Hybrid Connectivity and Zero-Trust Access

Controlling Remote Network Access with AWS Client VPN

This lesson explains how AWS Client VPN provides a managed, OpenVPN-based VPN with authentication and per-group authorisation rules, for remote users who need network-level access to many resources or protocols.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish mutual certificate, Active Directory and SAML authentication.
  • Restrict what users reach with authorisation rules and security groups.
  • Explain how connection logging provides an audit trail.

Authentication

Client VPN authenticates users in three ways, which can be combined. Mutual certificate authentication requires each device or user to present a certificate issued by a trusted certificate authority, which ties access to managed devices. Active Directory authentication checks directory credentials through AWS Directory Service, so users sign in with their existing accounts. SAML federation provides single sign-on through an identity provider, including IAM Identity Center, which can enforce multi-factor authentication (MFA). The following table summarises the methods.

MethodUse
Mutual certificatesDevice or user certificates from a trusted CA
Active DirectoryDirectory credentials through AWS Directory Service
SAML federationSingle sign-on, including IAM Identity Center, with MFA from the identity provider
Match the pairs

Client VPN authentication

Exam skills 3.3.2 · 4.1.1

Match each Client VPN authentication method with its use.

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

Controlling what users reach

Connecting to a VPN should not give a user access to the whole network. AWS Client VPN applies several layers of control after a user authenticates with Active Directory, a SAML identity provider or mutual certificate authentication. Authorisation rules decide which network ranges each group can reach, security groups filter traffic from the endpoint, and a client connect handler can apply custom checks, such as device posture, before the connection is accepted. Split tunnelling decides which traffic passes through the VPN at all. The following list describes these controls.

  • Authorisation rules allow each group to reach only specific network ranges.
  • Security groups on the endpoint's network associations limit traffic further.
  • Split tunnelling sends only AWS-bound traffic through the VPN.
  • A client connect handler, a Lambda function, can check device posture before allowing a connection.

The following diagram shows the network range each group is authorised to reach through a Client VPN endpoint.

Authorisation rules on a Client VPN endpoint with SAML sign-in. Engineers are authorised for the development VPC, 10.20.0.0/16, and only database administrators for the database subnets, 10.30.8.0/22. Split tunnelling keeps internet traffic off the VPN and connection logging records each session.
The scenario is illustrative.
Scenario questions

Limiting what a VPN user reaches

Exam skills 3.3.2 · 5.1.2

Choose the Client VPN control for each requirement.

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

Logging

An audit trail for remote access must show who connected and what they accessed. Connection logging to CloudWatch Logs records each connection attempt, with the user, the time, the result and the IP address assigned to the client. VPC Flow Logs record traffic from that assigned address to resources in the VPC. Correlating the two, by matching the assigned address and time, shows which user reached which resources, which is the evidence investigators and auditors need. Neither log alone answers the question.

Put in order

Which user reached which resource?

Exam skills 3.3.2 · 2.2.2

Arrange the investigation that ties a Client VPN user to the resources they reached.

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

Different network access for different groups

Engineers connecting through Client VPN with SAML sign-in should reach the development VPC, and only database administrators should reach the database subnets. Authorisation rules grant each group its own ranges:

aws ec2 authorize-client-vpn-ingress --client-vpn-endpoint-id cvpn-endpoint-0abc \
  --target-network-cidr 10.20.0.0/16 --access-group-id engineers-group-id \
  --description "Engineers: development VPC"
aws ec2 authorize-client-vpn-ingress --client-vpn-endpoint-id cvpn-endpoint-0abc \
  --target-network-cidr 10.30.8.0/22 --access-group-id dba-group-id \
  --description "DBAs: database subnets"

Split tunnelling keeps internet traffic off the VPN, connection logging records each user's session, and VPC Flow Logs show what each assigned address reached. If the requirement were access to a single web application with device checks, Verified Access would be the better choice.

Check yourself

What does split tunnelling do in Client VPN?

Show answer

It sends only AWS-bound traffic through the VPN; other traffic uses the user's own connection.

Exam Tips

Remember for the exam

  • For remote network access with SAML sign-in, use Client VPN.
  • To restrict which networks each Client VPN group can reach, use authorisation rules.
  • Split tunnelling sends only AWS-bound traffic through the VPN.
  • A client connect handler can check device posture.
  • Client VPN places users on the network; Verified Access gives per-application access.