Skip to main content

Proxy settings reference

The Proxy Service reads its settings from JSON files on the proxy server. This page lists the files, the settings you are most likely to change, and their defaults. It also says whether you must restart the service after a change.

Locate the settings files​

The Proxy Service data folder is:

C:\ProgramData\Stealthbits\PAM\ProxyService

The service reads these files:

FileHolds
sbpam_ssh.jsonSSH proxy settings
sbpam.rdp.jsonRDP proxy settings. The installer doesn't create the file. The RDP proxy uses built-in defaults until you create it.
sbpam_api.jsonHow the proxy calls the Privilege Secure API, including insecureskipverify
sbpam_log.jsonProxy log settings
sbpam.profile.jsonThe features the proxy enables, for example ["Rest", "Registry", "RDP", "SSH"]
sbpam_node.jsonThe names and addresses the node advertises
appsettings.user.jsonThe REST URL and the refresh token that bind the proxy to the application server

An upgrade keeps your copies of these files. The Proxy Service watches these files and reloads one when you save it. See Apply a change.

Connection string settings​

These settings control how the proxy splits the connection string that a user sends as the user name. They are in sbpam_api.json.

SettingDefaultEffect
DirectConnectSeparator+@The characters that separate the parts of the connection string. The proxy splits on whichever character occurs more often in the string.
TargetUserSeparator:Separates your user name from the alternate target user name
SpaceReplacement_Replaces spaces in the activity name

For the connection string format, see Connect with your own RDP or SSH client.

SSH proxy settings​

These settings are in sbpam_ssh.json.

SettingDefaultEffect
ListenAddress0.0.0.0:4422The address and port that the SSH proxy listens on
Banner(a Netwrix banner)The text that the proxy shows before the sign-in prompt
TwoFactorSeparator,Separates the password from the multi-factor authentication (MFA) code. The proxy splits on the last one.
DisconnectSessiontrueEnds the session when the access policy's time runs out
StripDomainPrefixfalseRemoves the domain prefix from the user name before the proxy signs in to the target
InsecureSkipVerifyfalseSkips the certificate check when the proxy calls the Privilege Secure API
ActivityParametersfalseLets the activity use parameters from the connection string
RecordExecfalseRecords commands that run without an interactive shell
RecordSFTPfalseRecords SFTP file operations
RecordLimit65536Caps the recorded size, in bytes, of a single channel
ConnectTimeout30sHow long the proxy waits for the connection to the Privilege Secure API
ExtendKeyCtrl+XThe key that a user presses to extend the session
ExtendNotification(text with {{.Remaining}} and {{.ExtendKey}})The message that the proxy shows before the session ends
EndNotificationYour session will expire in {{.Remaining}}The message that the proxy shows when the session ends
ExecExcludes[]Commands that the proxy doesn't record when RecordExec is on
OverridePort[]Per-resource port overrides
MultiplexfalseLets a user pick from several resources in one SSH connection
MultiplexActivity(empty)The activity that the multiplex menu uses
ServerSettings.MaxAuthTries3The sign-in attempts the target allows

sbpam_ssh.json also holds the Replay.RequestFilter, the ServerSettings key exchange, cipher, and MAC lists, and the ClientSettings host key, key exchange, cipher, and MAC lists. To change the algorithms, see Configure SSH algorithms.

RDP proxy settings​

These settings are in sbpam.rdp.json. The installer doesn't create the file, so the RDP proxy uses the defaults in the following table until you create the file and set a value.

SettingDefaultEffect
ListenAddress0.0.0.0:4489The address and port that the RDP proxy listens on
TwoFactorSeparator,Separates the password from the MFA code
StartupTimeout30sHow long the proxy waits for the RDP connection to start
ConnectDelay[0,2,2,2,2,2,5,5]sThe delay before each connection retry
AutoReconnectionEnabledtrueReconnects the session when the connection drops
AutoReconnectMaxRetries30The number of times the proxy retries the connection
DisconnectSessiontrueEnds the session when the access policy's time runs out
ClipboardCapabilities0x001eThe clipboard formats the proxy accepts
EnableMultiMonfalseLets the session use more than one monitor
LimitColorDepthfalseLimits the color depth to 16 bits per pixel
OverlayProcessDelay5sHow long the proxy waits before it draws an overlay

Session overlays in RDP​

The RDP proxy draws four overlays over the session. Each one has its own settings under Overlay in sbpam.rdp.json.

OverlayWhen it appears
countdownShows the time left before the session ends
recordingShows that the session is being recorded
lockedShows that an administrator locked the session
extensionShows that the session was extended

Proxy log settings​

These settings are in sbpam_log.json.

SettingDefaultEffect
Log filePAM-Proxy.logThe proxy log, in C:\ProgramData\Stealthbits\PAM\Log
LevelerrorThe lowest level the proxy writes to the log
File size limit104857600 bytes (100 MB)The size at which the proxy rolls the log
Retained files10The number of rolled logs the proxy keeps
Rolling intervalDayThe proxy starts a new log each day

A failed sign-in writes an entry to PAM-Proxy.log. Raise the level to info or debug while you troubleshoot, then set it back to reduce the log size.

Apply a change​

The Proxy Service watches its JSON files. When you save a change to a file such as sbpam_ssh.json, sbpam.rdp.json, sbpam_api.json, or sbpam_log.json, the service reloads the file and writes a line to PAM-Proxy.log. The new settings apply to sessions that start after the change. You don't restart the service.

To confirm the port that the SSH proxy listens on, run netstat -ano and look for the address in ListenAddress.