> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-21-administrators-guide/appendix/port-reference/ras-secure-gateway.md).

# RAS Secure Gateway

<table><thead><tr><th width="136">Source</th><th width="132">Destination</th><th width="110">Protocol</th><th width="95">Port</th><th>Description</th></tr></thead><tbody><tr><td>RAS Secure Gateway in Forwarding mode</td><td>RAS Secure Gateway in Normal mode</td><td><p>TCP, UDP</p><p>TCP, UDP</p></td><td><p>80, 443</p><p>3389</p></td><td><p>Management and user session connections.</p><p>Optional - Used for user session if RDP Load Balancing is enabled.</p></td></tr><tr><td></td><td>RAS Performance Monitor</td><td>TCP</td><td>8086</td><td>Agent (Telegraf service) sends collected performance data to InfluxDB.</td></tr><tr><td>RAS Secure Gateway in Normal mode</td><td>Remote Desktop Services</td><td>TCP, UDP</td><td>3389</td><td>RDP Connections.</td></tr><tr><td></td><td>RAS Connection Broker</td><td><p>TCP</p><p>TCP, UDP</p></td><td><p>20002</p><p>20009</p></td><td><p>RAS Connection Broker service port - communications with RAS Secure Gateways and the RAS Console (in Normal mode only).</p><p>Device Manager shadowing via Firewall (indirect network connection) if RAS Console runs on RAS Connection Broker</p></td></tr><tr><td></td><td>RAS Performance Monitor</td><td>TCP</td><td>8086</td><td>Agent (Telegraf service) sends collected performance data to InfluxDB.</td></tr><tr><td></td><td>Localhost</td><td>TCP</td><td>20020</td><td>Communication with User Portal web server (NodeJS).</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-21-administrators-guide/appendix/port-reference/ras-secure-gateway.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
