About Location Context Policy⁠

Location Context Policy can be used to allow or block connections to CloudConnexa based on the IP address of the connecting device. The policy can be configured to block or allow connections based on whether the device's IP address matches a range of IP addresses or a country. The device's country is determined by using IP address geolocation, which refers to locating a device's geographic area based on its IP address.

Location Context policies are often used to enhance security and comply with regulations.

The Location Matching Logic⁠

Here are the high-level steps that CloudConnexa performs to enforce the Location Context policy:

  1. When a device attempts to connect to your WPC, CloudConnexa checks to see if a Location Context policy is associated with the User Group of which the device's user is a member.

  2. Given that there is an associated Location Context policy, CloudConnexa will carry out the enforcement steps in the order that follows:

    1. If a configured range of IP addresses or subnets is present, try to match the device's IP address with the list in the IP Address or Subnet of the Device matches option. If a match exists, CloudConnexa will allow or reject the connection as per the configured action. Otherwise, it will check to see if there is a country match.

    2. Suppose a configured list of countries is present. In that case, CloudConnexa will geolocate the device based on its IP address and try to match the geolocated country with the configured list in the Country matches option. If a match exists, CloudConnexa will allow or reject the connection as per the configured action. Otherwise, it will carry out the block/allow action configured for the IP Address & Country failed to match option.

Policy Configuration Examples⁠

Below is the policy configuration section of a Location Context policy that allows only connections from the Benelux region for a user group.

Below are screenshots of the Location Context Policies section with some example policies.

Adding a Location Context Policy⁠

To add a new Location Context policy, follow the steps below:

  1. Navigate to Users > Location Context.

  2. Click Add Policy.

  3. Provide a Name for the policy and, optionally, a Description.

  4. Add the User Groups for which this policy should apply in the Apply To section.

  5. Configure the Block/Allow action for IP Address range matches, Country matches, and the action that must occur when the device's IP address does not match a configured IP address or Country.

  6. Click Add Policy.

Editing an Existing Location Context Policy⁠

To edit an existing policy, follow the steps below:

  1. Navigate to Users > Location Context.

  2. Click the pencil icon icon to edit one of the listed policies.

  3. Make the required edits.

  4. Click Update Policy.

Deleting an Existing Location Context Policy⁠

To delete an existing policy, follow the steps below:

  1. Navigate to Users > Location Context.

  2. Click on the Name of the policy.

  3. Click on the trash icon icon present in the top right corner.

  4. Click Delete in the confirmation dialog.

Location Context Policy FAQ⁠

© 2026 OpenVPN Inc. | OpenVPN is a registered trademark of OpenVPN, Inc. | CloudConnexa is a registered trademark of OpenVPN, Inc.