API v2: Listenersยถ

Listener determines server connection mode (proxy, gateway, transparent, bastion) as well as its specifics.


Data Structuresยถ

ListenerModelยถ

Attribute

Type

Required

Description

id

string

yes

Read-only object identifier

name

string

yes

Unique listenerโ€™s name

blocked

boolean; default value false

yes

reason

string

if blocked == true

announcement

string

no

ignore_case

boolean; default value false

If protocol == vnc || ssh

legacy_crypto

boolean; default value false

If mode == tunnel & protocol == ssh || http || rdp || mysql & tls_enabled == true

Enabling legacy cryptographic protocols and settings

protocol

string {http, modbus, mysql, rdp, ssh, system, tcp, tds, telnet, tn3270, tn5250, vnc}

yes

Immutable, case insensitive

mode

string {bastion, gateway, proxy, transparent, tunnel}

yes

Case insensitive

listen_interface

string

If mode == gateway || transparent

Network interface for user connections

listen_ip

string; default value 0.0.0.0

If mode == bastion || proxy || tunnel

IP address for user connections

listen_port

number

If mode == bastion || proxy || tunnel

Port number for user connections

external_address

string

with external_port

Listener address to present in Access Gateway

external_port

number; value range from 1 to 65535

with external_address

Listener port to present in Access Gateway. Value format: port.

http_render

boolean; default value true

If protocol == http & mode == tunnel

Is graphical representation for HTTP(S) sessions enabled?

rdp

ListenerRDPAttributes

If protocol == rdp

RDP protocol properties

ssh

ListenerSSHAttributes

If protocol == ssh

SSH protocol properties

tds

ListenerTDSAttributes

If protocol == tds

TDS protocol properties

tls

ListenerTLSAttributes

If protocol == http || rdp

TLS protocol properties

created_at

datetime

Read-only

modified_at

datetime

Read-only

removed

boolean

Read-only

builtin

boolean

Read-only; Expensive to use; If true, the object is not editable.

hidden

boolean

Read-only; Expensive to use; If true, the object is hidden in UI.

ListenerRDPAttributesยถ

Attribute

Type

Required

Description

rdp_nla_enabled

boolean; default value false

if mode == tunnel && protocol == rdp && tls_enabled == true

Enables RDP Network Level Authentication (NLA).

rdp_private_key

string

if mode == tunnel && protocol == rdp && tls_enabled == false

RDP private key. Protected. Format: private-key.

rdp_private_key_passphrase

string

if rdp_private_key is set

Passphrase to decrypt RSA private key. Protected.

rdp_public_key

string

RDP public key. Read-only. Expensive to retrieve. Requires rdp_private_key and either mode == tunnel or protocol == rdp && tls_enabled == false.

ListenerSSHAttributesยถ

Attribute

Type

Required

Description

ssh_private_key

string

if mode == tunnel || protocol == ssh

SSH private key. Protected. Format: ssh-private-key.

ssh_private_key_passphrase

string

if ssh_private_key is set

Passphrase to decrypt SSH private key. Protected.

ssh_proxyjump

boolean; default value false

if protocol == ssh && mode == gateway || proxy || transparent || bastion

Enables SSH ProxyJump function.

ssh_public_key

string

SSH public key. Read-only. Expensive to retrieve. Requires protocol == ssh or mode == tunnel.

ssh_fingerprint_sha256

string

SHA256 fingerprint of SSH key. Read-only. Expensive to retrieve. Requires protocol == ssh or mode == tunnel.

ListenerTDSAttributesยถ

Attribute

Type

Required

Description

tds_cd_enabled

boolean; default value false

if mode == tunnel && protocol == tds

Enables constrained delegation for TDS.

tds_cd_spn

string

if tds_cd_enabled == true

Service Principal Name (SPN) used for constrained delegation.

tds_cd_keytab

string

if tds_cd_enabled == true

Base64-encoded contents of keytab file for constrained delegation.

ListenerTLSAttributesยถ

Attribute

Type

Required

Description

tls_enabled

boolean; default value true

if mode == gateway || proxy || transparent || bastion && protocol == http || mysql || rdp

Enables TLS protocol.

tls_private_key

string

if tls_enabled == true && protocol == http || mysql || rdp && tls_certificate is set

TLS private key. Protected. Format: private-key.

tls_private_key_passphrase

string

if tls_private_key is set

Passphrase to decrypt TLS private key. Protected.

tls_certificate

string

if tls_enabled == true && protocol == http || mysql || rdp && tls_private_key is set

TLS certificate. Format: x509-chain.

tls_certificate_commonname

string

Common Name (CN) from TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration.

tls_certificate_fingerprint_sha1

string

SHA1 fingerprint of TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration.

tls_certificate_fingerprint_sha256

string

SHA256 fingerprint of TLS certificate. Read-only. Expensive to retrieve. Requires TLS configuration.

Retrieve Available Attributes of the ListenerModelยถ

Request

Method

GET

Path

/api/v2/objspec/listener

To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.

Refer to the Batch operations topic to create nested requests for operating on the Listener objects.


Get Listeners Listยถ

Request

Method

GET

Path

/api/v2/listener

Example Request

GET /api/v2/listener

    "result": "success",
"listener": [
    {
        "id": "1234138875067073217",
        "name": "rdp_list_fd_10647",
        "protocol": "rdp",
        "mode": "bastion",
        "listen_ip": "0.0.0.0",
        "listen_port": 3388,
        "blocked": false,
        "created_at": "2022-10-15 14:52:30.980597+02",
        "modified_at": "2022-10-15 14:52:30.980597+02",
        "legacy_crypto": false,
        "tls_enabled": true,
        "tls_certificate": "-----BEGIN CERTIFICATE-----\nMIIE0DCCArigAwIBAgIUSGWBY/C...0w/BXGR\n-----END CERTIFICATE-----"
    },
    {
        "id": "1234138875067073219",
        "name": "telnet_proxy_3",
        "protocol": "telnet",
        "mode": "proxy",
        "listen_ip": "0.0.0.0",
        "listen_port": 2236,
        "blocked": false,
        "created_at": "2022-10-17 09:34:32.582169+02",
        "modified_at": "2022-10-17 09:34:32.582169+02"
    },
    {
        "id": "12348875067073220",
        "name": "mssql_proxy",
        "protocol": "tds",
        "mode": "proxy",
        "listen_ip": "0.0.0.0",
        "listen_port": 8874,
        "blocked": false,
        "created_at": "2022-10-17 10:50:53.209773+02",
        "modified_at": "2022-10-17 10:50:53.209773+02" }]

Create a Listenerยถ

Request

Method

POST

Path

/api/v2/listener

Headers

Content-Type: Application/json

Body

ListenerModel

Get a Listenerยถ

Request

Method

GET

Path

/api/v2/listener/<id>

Modify a Listenerยถ

Request

Method

PATCH

Path

/api/v2/listener/<id>

Headers

Content-Type: Application/json

Body

ListenerModel

Example Request: Changing the Listenerโ€™s Address

PATCH /api/v2/listener/<id>

{ "listen_ip": "10.0.2.0" }

Response

{ "result": "success" }

Delete a Listenerยถ

Request

Method

DELETE

Path

/api/v2/listener/<id>