Skip to main content
Version: v46

Setting Up Hosts

This article describes manually setting up hosts and connection targets on them. For information about importing hosts automatically using cloud host tags or the host-deployment script, see Script-Based Certificate-Authentication Setup.

Connection targets offer the following benefits:

  • To see and connect to known targets, PrivX users can go to the Connections page and select Search from known hosts. PrivX users only see the connection targets they are authorized to access.
  • Connection targets support authentication methods other than user-provided passwords. For more information on the configurations required for additional authentication methods, see Supported Authentication Methods.
  • Administrators can audit connections and view recordings when auditing is enabled for the host.
  • PrivX can periodically check the status of known targets and indicate when targets are unreachable. Settings related to status checks are under the Service health check section on Administration → Settings→Host Store.

Adding Hosts​

Add a host to PrivX and specify how users can connect to it, which roles can access it, and which target accounts they can use.

tip

All known targets must have unique machine IDs. If you need to add cloned machines to PrivX, make sure that each machine has a unique ID and regenerate it if necessary.

To add a connection target to PrivX:

  1. In Administration → Hosts, click Add Host.

  2. Enter the required host information and complete any optional fields relevant to your configuration.

    FieldDescription
    NameEnter a descriptive name for the host.
    Instance ID[Optional] Enter an ID that uniquely identifies the host.
    AddressesEnter the host addresses. Separate multiple addresses with commas. For connections through PrivX Extenders, see Proxying Connections.
    Access GroupSelect the access group that determines the scope of host-management permissions. For more information, see Access Groups.
    Tags[Optional] Use Add Tag to categorize and group hosts.
    User Message[Optional] Enter additional host information visible to users.
    Comment[Optional] Enter a description of the host.
  3. Under Options, configure the following features as needed:

    • To record connections for auditing, enable Session recording. For prerequisites, resource planning, and recording settings, see Session Recording.
    • To rotate stored passwords for target accounts, enable Rotate account passwords. Also enable password rotation for the applicable accounts and configure the rotation settings. For prerequisites and instructions, see Rotating Stored Passwords.
  4. Under Services, configure the services used to access the host. Follow the instructions for the applicable target type:

  5. Under Accounts, specify which PrivX roles can access the host and which target accounts they can use. Follow the account instructions for the target type. For an explanation of account types, see Account Types.

  6. Save the host configuration.

Proxying Connections​

Use PrivX Extenders to relay connections to target hosts that PrivX Servers cannot access directly. To proxy connections to the host through Extenders, in the host settings, add either of the following to the host Address:

  • Extender name: Connections to the host are proxied through the named Extender.
  • Routing prefix: Connections to the host are proxied through an Extender HA cluster.

The following examples show the Address syntax for IPv4 and IPv6:

exampleextender/192.0.2.100
exampleextender/2001:DB8::64

Save your host changes. PrivX proxies subsequent connections through the specified PrivX Extender. For more information about PrivX-Extender requirements and setup, see PrivX Extender and Setting Up PrivX Components respectively.

Connection Justification​

You can require users to provide a justification before connecting to a host service. For example, the justification can contain a ticket number or a short description of the purpose of the connection. Connection justification is supported for SSH, RDP, VNC, and Web services. It applies to browser-based and supported native-client connections.

tip

For SSH services, you can also enable connection justification with the host-deployment-script option --enable-justification. For hosts imported from a host directory, use the privx-justify-conn host tag.

To enable connection justification in PrivX Web UI:

  1. Configure the text displayed to users. In Administration → Settings → Global → Global Settings, select Edit for Connection Common, and enter the prompt in Connection justification prompt. The prompt can contain a maximum of 250 characters and applies to all SSH, RDP, VNC, and Web services.
  2. Require justification for a host service. In Administration → Hosts while adding or editing host, under Services → Additional Settings select the Justification checkbox.

When justification is enabled, service details display Require justification: Yes and PrivX prompts the user before connecting to the target. The user cannot continue without providing a justification. The justification cannot be empty. For connections through the PrivX Web UI, the user has approximately 1 minute to provide a justification. If the user does not respond, PrivX terminates the connection attempt and displays Unable to connect. This timeout does not apply to native-client connections.

caution

Connection justification applies to all SSH connection types, including command execution and SCP and SFTP file transfers. Because justification requires user input, enabling it can prevent automated scripts from connecting.

For an established connection, PrivX displays the user-provided justification in the connection details under Monitoring → Connections. If PrivX terminates the connection before it is established because the user did not provide a valid justification, the connection does not appear on the Connections page. To determine why the connection was rejected, check the Connection-rejected event under Monitoring → Events.

To find connections by their justification, use the Justification search criterion. For example, (Justification=deliver hotfix for TICKET-1234). You can combine the Justification criterion with other criteria. For example, (Type=RDP)(Justification=deliver hotfix for TICKET-1234). Only the Justification criterion searches the justification text.

When defining a justification convention, use distinctive values such as ticket numbers, project codes, or other markers that can be found reliably. Justification searches have the following limitations:

  • Searches match complete words, not parts of words.
  • All specified words must occur in the justification. Adding more words narrows the results.
  • Searches omit punctuation and common words such as a, an, and the.
  • Searches are optimized for English. In some cases, a search can match variants of a word. For example, a search for needs can also match need.

Account Types​

Select an account type to define how PrivX resolves the target account:

  • Explicit: Grants access to a specified target account. Use this account type for web targets.
  • Directory: Allow access to the users' Windows username or Linux username. For PrivX directory users, these values default to their userPrincipalName and sAMAccountName attributes, respectively.
  • User-defined: Prompts the user to enter the target-account username. Unlike manual connections, this account type restricts the connection to the configured host.
note

If the username provided for a User-defined account matches another account entry, PrivX uses the matching entry with the highest-priority authentication method. Otherwise, PrivX prompts the user for a password. For more information about the preference order of authentication methods, see Supported Authentication Methods.

For example:

  • In the following scenario, a host has two account entries:
    • Explicit: Members of Example Role 01 can access alice with certificate authentication.
    • User-defined: Members of any role can enter a target-account username and authenticate with a user-provided passphrase.
  • If a member of Example Role 01 selects the User-defined account and enters alice, PrivX matches the Explicit account and uses certificate authentication as the higher-priority method than user-provided password authentication.

Automatic Account and Home Directory for Directory Users​

To let directory users access target hosts with their personal accounts, configure the hosts to recognize the directory accounts and create home directories when users first log in.

Before you continue, configure personal-account access in one of the following ways:

  • Deploy the host with the host-deployment script and specify the --personal-account-roles option.
  • Add a Directory account to the host in PrivX.

Then complete the configuration for the target operating system: