Skip to content
VpnHood!

Access keys: expiration and limits

Each of your users connects with an access key. Give a key an expiration date and it stops on that day; when the user renews, move the date and the same key works again, with nothing for them to change.

Where to find them

Select Access Keys in the project's menu. The list shows each key's support code, name, profile and group, when it was last used, and its traffic. Add creates keys: pick their profile, and give a name and how many under Count. Select a key's name to open it; there, Show Key shows the key to send its user.

VpnHood! MANAGER's Access Keys list: two keys, Private 1 and Public, each with its support code, profile, last use and traffic
The Access Keys list: select a name to open the key

Stop a key on a date

Open the key and select the pencil beside Expiration Date. Pick a date and select OK, and MANAGER saves it at once. The key connects until that day begins, at midnight in your computer's time zone. Then it stops: a device still connected is disconnected, and the app tells its user that the key has expired.

VpnHood! MANAGER's page of the access key Private 1, its Expiration Date marked
A key's page: its Expiration Date, changed with the pencil

A new key has no date and works until you give it one. If its Key Profile has a Lifetime, a key with no date gets one at its first connection: that many days later.

Turn it back on when they renew

When the user pays for another period, open their key and move Expiration Date to the new end. The key works again at once: the user just connects, with the same key in their app. Clear the date to let a key run with no end; under a profile with a Lifetime, it then gets a new date at its next connection.

To renew keys from your own shop or billing system, give it a bot with the Access Key Writer role, and have it change the key's expirationTime through MANAGER's API.

Stop a key at once

Select the pencil beside the key's Enabled and pick Disabled. The key stops connecting, and a device still connected is disconnected. To let it connect again, pick Enabled.

When its user tries to connect, the app says their access is locked. To show your own words instead, start the key's Description with #message, followed by the text, such as #message Your plan has ended. Renew it at example.com.

Traffic limits

A key whose profile's Availability is Private has two more settings, both in megabytes (MB): Max Cycle Traffic, its traffic in a month, counted again from the first of each month (UTC), and Max Total Traffic, its traffic over its whole life. Empty takes the profile's value, and 0 means no limit. A key that reaches a limit stops connecting until you raise it, or, for the monthly one, until the next month.

Next steps