Close
logodocs

Ad Hoc Ports

Ad hoc ports are the ports assigned to a resource for a specific purpose, by a user who is a member of an organization that is not using Port Overrides.

You can create ad hoc ports in either the client GUI or the CLI.

Create Ad Hoc Ports in the GUI

To create an ad hoc port in the client GUI, follow these steps:

  1. Click and drag a Datasource to the bottom of the strongDM window, where a green bar will appear labeled create new port.
  2. Release it, and that Datasource will be given its own persistent port under additional ports.
Ad Hoc Port
Ad Hoc Port

These ports will persist between strongDM restarts.

To destroy an ad hoc port, follow these steps:

  1. Click and drag a Datasource to the bottom of the window where a red bar will appear labeled delete port.
  2. Release it there, and the ad hoc port will be deleted.

Create Ad Hoc Ports in the CLI

To create an ad hoc port via the strongDM CLI, add a port number to the sdm connect command, as in the example shown:

$ sdm connect mssql1 1500
connect successful
$ sdm status
DATASOURCE NAME STATUS PORT TYPE
mssql1 not connected 1433 mssql
mssql1 connected 1500 mssql

You can specify any port, with the following exceptions:

  • The port must be > 1024
  • The port must not be within 5 of the default port for that Datasource type. For instance, a Microsoft SQL Server Datasource has a default port of 1433. This means that you cannot specify a port between 1428 and 1438 as the custom port.
User Guide — Previous
Connect to Resources
Next
Connection to SQL Datasources