Preparing for Deployment
This article describes the prerequisites of PrivX deployment.
System Requirements
This section describes the system requirements and specifications for PrivX-system components.
Mandatory Components
A PrivX deployment must include at least one PrivX Server for running PrivX services.
Other applications and users with access to PrivX hosts can gain potentially sensitive information from unprotected system memory. For best security we strongly recommend running PrivX on dedicated hosts.
Expected System Performance
A PrivX Server that satisfies or exceeds the production requirements (8 GB of memory) is expected to support:
100 000 PrivX users total, with 700 concurrent users.
Up to 1000 hosts added/deployed concurrently.
20 000 cloud hosts discovered in 2 minutes.
Up to 50 concurrent RDP connections for performing typical user operations. Graphically intensive sessions (including video streaming) may reduce the number of supported concurrent connections.
Expected memory usage for RDP sessions is 90 megabytes per connection. Adding multiple PrivX instances to HA setup will scale the number of concurrent users.
The PrivX microservice architecture supports multiprocessing and benefits from using multiple CPUs or multiple CPU cores.
Reserve enough space for the log data generated by PrivX. Also monitor the log-data growth periodically. In large deployments, PrivX may generate a considerable amount of log data over time. You may configure the PrivX machine to write its log data to an external logging server.
Optional Components
This section describes the system requirements and specifications for optional PrivX components
PrivX Extender
PrivX Carrier and PrivX Web Proxy
PrivX Router
UEBA Server
PrivX Agent
PrivX Authorizer app
Unless otherwise stated, for security purposes we recommend setting up all PrivX components on separate, dedicated hosts.
PrivX Extender
PrivX Extenders proxy connections to target hosts. They are needed for connecting to hosts not directly accessible from PrivX servers.
A PrivX Extender relays host connections, allowing connections to target hosts that are not directly accessible by PrivX, e.g. target hosts without public IP addresses in Virtual Private Cloud or behind other NAT gateways. PrivX Extender acts as reverse proxy, connecting back to PrivX instance via HTTPS endpoint, using secure web sockets.
You need only one extender per VPN or subnet, connections to target hosts can be relayed through the extender.
PrivX Carrier and Web Proxy
PrivX Carriers and PrivX Web Proxies together provide web functionality, required for connecting to HTTP/HTTPS targets via PrivX.
- Carrier offers auditable HTTP/HTTPS connections for the user in sandboxed environment. Access to shared accounts are provided in a role-based fashion.
- PrivX Web Proxy provides access control for HTTP/HTTPS connections and acts as a password manager for different sites.
Carrier and Web Proxy are always installed in pairs. For production we strongly recommend installing the two on separate servers; Installing both Carrier and Web Proxy on the same server is only recommended in evaluation environments.
Carriers run a separate Firefox web browser on a Docker container for each user session.
By default, PrivX Carrier creates separate networks for Docker containers, but outgoing traffic from containers is unrestricted.
To further harden the installation a firewall rule can be created to block outgoing traffic from Docker network to all but Web-Proxy host address.
Using PrivX Carrier and Web Proxy requires using web load balancer with sticky session support and Round robin routing mode.
PrivX-Carrier and Web Proxy Configuration
PrivX Web Proxies and PrivX Carriers are both required to provide web functionality.
Web Carriers and Web Proxies cannot be installed on PrivX servers. Furthermore in production, Carrier and Proxy should be installed on separate machines (to ensure secure segregation between connection hosting and password/secret injection functions).
PrivX Router
Network targets are services, systems, or subnets that are accessible remotely using arbitrary TCP/IP protocols. Examples include operational technology such as PLCs, CNC systems, and scientific equipment.
The high-level steps for enabling network-target access include:
- Configuring your network to route traffic between PrivX users and network targets via PrivX Router(s).
- Setting up PrivX Routers to control user access to network targets.
- Adding network targets to PrivX.
The following figure describes the required network configuration for network-target access:
- Users' connections to network targets must be routed via a PrivX Router.
- PrivX users may connect to PrivX for authentication.
- Access to other types of targets is still provided via PrivX as normal.
User connections from untrusted networks must be secured using external means. To achieve this, users may for example use VPN to connect to a secure network, and then you can restrict PrivX Router to only accept clients connecting from your VPN-IP pool.
To ensure that all connections to network targets are audited by PrivX, you may disable direct access:
- Ensure that all traffic from users' networks to targets must go through the PrivX Router.
- You may also set up NAT on PrivX Router to hide the devices in the target network. Note that nodes other than PrivX Router must not perform NAT.
For additional information related to Network-target access, see:
User and Entity Behavioural Analytics (UEBA)
PrivX UEBA automatically discovers anomalous SSH and RDP connections that deviate from regular connections. UEBA uses machine learning and probability distributions to calculate the probability of an anomaly based on connection data from PrivX.
PrivX issues audit events when it encounters a connection that seem anomalous. You can also configure PrivX to automatically block such connections.
High-level steps for UEBA setup involve:
- UEBA-server setup.
- Training UEBA to distinguish normal/anomalous connections.
- Configuring anomaly thresholds and behavior.
For additional information related to user and entity behaviour analytics, see:
PrivX Agent
You may install PrivX Agents on users' workstations, to enable native-SSH-client connections for them.
Users can connect to target hosts/accounts using the SSH/SFTP/SCP clients installed on their workstations, without needing to use the PrivX GUI. Connections are authenticated against PrivX. Connections are established directly to target hosts. This configuration requires a PrivX agent to be installed on the user's workstation.
Using PrivX agent also enables using AWS command line client with temporary federated AWS roles via PrivX.
Alternatively to installing PrivX Agents, you may enable native-client connections via PrivX Bastion. For more information about connecting via PrivX SSH/RDP Bastion, see Native SSH and RDP clients.
The enabled features and limitations can be viewed on the Administration→License page.
The maximum amount of concurrent SSH, RDP, and HTTPS connections depends on the type of PrivX license. Connections exceeding the maximum allowed connections are disconnected.
PrivX Authorizer App
The PrivX Authorizer app enables multi-factor authentication (MFA) for PrivX logins.
High-level steps for enabling MFA with PrivX Authorizer include:
- Configure PrivX to require MFA with PrivX Authorizer.
- Install and pair PrivX Authorizer app on users' phones.
For more detailed instructions about setting up MFA with PrivX Authorizer, see Multi-Factor Authentication with PrivX Authorizer.
MFA login is only supported for PrivX local users and LDAP/AD users.
PrivX also supports Multi-Factor Authentication with 3rd-party Authenticators.
Database Requirements
For production environments we strongly recommend using an external database in your PrivX deployment.
- Set up a PostgreSQL-database instance. We recommend you employ dedicated instances for PrivX.
The PostgreSQL superuser (typically postgres) must have a valid password: During initial setup PrivX requires superuser permissions, for creating a PrivX database and a PrivX database user. - PrivX servers require access to the PostgreSQL database and the Redis server.
For example with PostgreSQL on Unix, you will need to edit thepg_hba.conf
, and insert entries similar to the following:
hostssl all all <privx_server_ip> md5
(for older 9.x PostgreSQL versions)
or
hostssl all all <privx_server_ip> scram-sha-256
- Connections to the external PostgreSQL database must be SSL-protected:
- Enable SSL mode in your PostgreSQL configuration (ssl = true).
- The PostgreSQL server must be configured with a server certificate where the SubjectAltName specifies the DNS and IP address(es) of the server.
- PrivX servers should also be configured to trust the PostgreSQL-server certificate: On each PrivX server, add the PostgreSQL-server CA chain to the system trust anchors.
- You can use either the previously-configured PostgreSQL database or an external Redis database to handle notifications between PrivX microservices. For improved security and ease of setup, we recommend using the PostgreSQL database.
- If you opt for Redis, you must set up an external Redis database that is accessible by all the PrivX servers. Access to the Redis server may be password-protected.
- The PostgreSQL database may optionally be set up with the
pg_trigram
extension, to enable Audit-Event Indexing for Faster Searches.
NTP Clock Synchronization
Machines for PrivX servers must have access to a NTP service for synchronizing system clocks. We recommend using the same NTP service in your whole network.
Due to the just-in-time nature of the certificates issued by PrivX, clock skews greater than a few minutes may cause authorizations to fail.
HA-Installation Requirements
For High-Availability (HA) deployments, set up a load balancer to distribute connections to PrivX servers. Your load balancer must satisfy the following requirements
- Each PrivX session must be handled by one PrivX server; for example the load balancer could be configured to use sticky sessions. Round-robin algorithm is required if using additional PrivX components (PrivX Extender or PrivX Carrier)
- If you need client-certificate authentication, or SSH/RDP-Bastion connectivity, the load balancer must support TCP-level load balancing.
Load balancer routing requirements
For an example load-balancer configurations on Nginx that satisfies the requirements, see the section called “Example nginx load balancer configuration".
❗️ Important
If the PrivX instance is deployed to a public internet, be sure to limit the traffic to port 3389 (if used) to known sources only. As 3389 is the default port for Windows RDP traffic, it attracts a lot of unwanted attention from bot networks and may cause extra traffic & load for the PrivX deployment.
HSM Integration
For added security, the PrivX can be integrated with a Hardware Security Module (HSM). This allows storing cryptographic keys on HSM, and encrypting database/filesystem keys using a secret from HSM.
PrivX integrates to HSM providers using PKCS #11. For more information about setting up PrivX with HSM, see the Integration articles under HSM Providers.
Decide whether to use HSM before setting up PrivX. HSM support cannot be changed in existing PrivX deployments.
Keys Stored in HSM
The following types of keys may be stored in HSM.
Asymmetric keys
- CA for issuing just-in-time certificates when users connect using certificate authentication.
- CA for signing server certificates.
Symmetric keys
- Master key for encoding/decoding session recordings.
- Session-authentication keys.
- Keys for encrypting user and role data.
To store the default CA keys in HSM, your HSM must support the following key-pair-generation mechanisms:
Keys not supported by the HSM are stored in the PrivX database/filesystem, but encrypted using the PKCS #11 instance secret located on the HSM.
Database/Filesystem Keys Encrypted by HSM Integration
Authentication-signing secrets and passphrases are stored in the PrivX database/filesystem. However when HSM integration is enabled, such keys are encrypted using the PKCS #11 instance secret located on the HSM.
ICAP Integration
You may integrate PrivX with ICAP servers to provide virus and content scanning for users' connections. ICAP integration may be performed after initial PrivX deployment.
For more information about ICAP setup, see ICAP Servers.
GDPR Compliance
Please note that as a PrivX handles user data, that data will be classified as personal information, or Personally Identifiable Information. You must ensure your GDPR compliance and inform your users of handling of their data.
Product Limitations
- You cannot transfer folders through file transfer.
- Ctrl+W key-combination closes the open tab on Firefox.
- With RDP and Web connections, the clipboard size is limited to 256 KB.
- PrivX Agent does not work on RHEL 8 with OpenSSH 7.8p1 due to errors on the OpenSSH side.
- When RDP certificate authentication fails but the RDP server allows the user to login using other accounts and credentials, then the subsequent authentication information will be lost because PrivX cannot detect what happens at the Windows login screen.
- For security reasons, PrivX-Agent login to principals configured as delegated roles (the principals configured with
--delegated-principal
with deployment script in host configuration) is not supported with certificate authentication. - Accounts with type configured as Directory are not available for connection via RDP native client.
- Certificate-based authentication is not supported via RDP native client.
Was this page helpful?