Client authorization - AWS Client VPN

Client authorization

Client VPN supports two types of client authorization: security groups and network-based authorization (using authorization rules).

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. 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.

To add a rule that allows traffic from the Client VPN endpoint security group
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Security Groups.

  3. Choose the security group that's associated with your resource or application, and choose Actions, Edit inbound rules.

  4. Choose Add rule.

  5. For Type, choose All traffic. Alternatively, you can restrict access to a specific type of traffic, for example, SSH.

    For Source, specify the ID of the security group that's associated with the target network (subnet) for the Client VPN endpoint.

  6. Choose Save rules.

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 AWS 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 Authorization rules.