Client authorization in AWS Client VPN
Client VPN supports two types of client authorization: security groups and network-based authorization (using authorization rules).
When a user authenticates to a Client VPN endpoint, they establish a VPN connection. That alone does not grant access to any network or resource. This applies to any user who can authenticate, including through a shared SAML IdP application. For information about how authentication works, see Client authentication in AWS Client VPN.
Client VPN denies all access by default. To control the networks and resources a connected user can reach, you must explicitly configure authorization to allow traffic and scope it to grant each group of users only the access it needs.
Where applicable, you can also authorize the connection itself. Configure an authorization policy to allow or deny connections based on user identity and device health. For setup instructions, see Device posture for AWS Client VPN.
Security groups
When you create a Client VPN endpoint, you can specify the security groups from a specific VPC to apply to the Client VPN endpoint. When you associate a subnet with a Client VPN endpoint, we automatically apply the VPC's default security group. You can change the security groups after you create the Client VPN endpoint. For more information, see Apply a security group to a target network in AWS Client VPN. The security groups are associated with the Client VPN network interfaces.
You can enable Client VPN users to access your applications in a VPC by adding a rule to your applications' security groups to allow traffic from the security group that was applied to the association.
Conversely, you can restrict access for Client VPN users by not specifying the security group that was applied to the association, or by removing the rule that references the Client VPN endpoint security group. The security group rules that you require might also depend on the kind of VPN access that you want to configure. For more information, see Scenarios and examples for Client VPN.
For more information about security groups, see Security groups for your VPC in the Amazon VPC User Guide.
Network-based authorization
Network-based authorization is implemented using authorization rules. For each network that you want to enable access, you must configure authorization rules that limit the users who have access. For a specified network, you configure the Active Directory group or the SAML-based IdP group that is allowed access. Only users who belong to the specified group can access the specified network. If you are not using Active Directory or SAML-based federated authentication, or you want to open access to all users, you can specify a rule that grants access to all clients. For more information, see AWS Client VPN authorization rules.
Authorization policy
You can define an authorization policy to control connections based on device health, user identity, and connection details. When an authorization policy is configured, Client VPN evaluates it when a device connects and again every 5 minutes for the life of the session. Sessions that no longer meet your requirements are disconnected. Authorization policies are written in the Cedar policy language and can evaluate device posture tokens, user identity, or both. For setup instructions, see Device posture for AWS Client VPN.