> 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-22-administrators-guide/ras-secure-gateway/configuring-a-ras-secure-gateway/secure-gateway-security.md). Agents can also search and read this documentation through its [MCP server](https://docs.parallels.com/landing/~gitbook/mcp).

# Secure Gateway security

You can allow or deny user access to a Secure Gateway based on the settings below. This can be accomplished using the **Security** tab in the **RAS Secure Gateway Properties** dialog.

### **Using Site defaults**

To use Site default settings, click the **Inherit default settings** option. To specify your own settings, clear the option. For more info, see [**Site defaults (Gateways)**](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/ras-secure-gateway/configuring-a-ras-secure-gateway/site-defaults-secure-gateways.md).

### **Configuring security**

#### **Access Control**

Here, an administrator can restrict the usage of the Secure Gateway to specific modes of operation. For example, to enable the exclusive use of the Connection Broker API for user connections, but not the use of the User Portal directly.

The options available are:

* **Block access to standard RAS sessions.** Blocks new authentication to standard RAS sessions, preventing application listing and remote session launch. Existing sessions are not affected.
* **Block access to User Portal sign in page.** Blocks access to the User Portal user interface, including portal login and related pages such as cookie policy and download. Other APIs may still be used.
* **Block access to sessions via Web API.** Blocks new session launch through the Web API. Existing sessions are not affected.
* **Block access to deprecated Web API.** Blocks deprecated Web APIs to reduce security and compatibility risks. This option is ON by default for new installations as well as upgrades. If the option “Block access to sessions via Web API” is enabled, this option is automatically enforced.
* **Block access to sessions via Connection Broker API.** Blocks new session launch through the [Connection Broker API](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/ras-connection-broker/enabling-connection-broker-api.md). Existing sessions are not affected.

#### Connection Limits

Connection Limits protect the Secure Gateway from resource exhaustion caused by high or abusive volumes of requests. Without a limit, the Gateway could accept a flood of requests, malicious or accidental. This can consume enough CPU, memory, and threads to make the Gateway unresponsive.

Connection Limits can be switched on or off overall, and independently for each connection type below.

Setting a limit to `0` disables enforcement for that type. When a new connection of a given type would exceed its configured limit, the Gateway refuses it; existing connections are not affected.

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="222.2109375">Connection type</th><th>Description</th></tr></thead><tbody><tr><td><strong>User Portal</strong></td><td>HTML5 web-based client connections made through the User Portal.</td></tr><tr><td><strong>HTTP</strong></td><td>Stateless web requests that don't use persistent sessions.</td></tr><tr><td><strong>WYSE</strong></td><td>Wyse thin client connections. Only relevant when Wyse support is enabled in the Gateway's runtime settings.</td></tr><tr><td><strong>Client</strong></td><td>Native Parallels Client traffic: session proxying, RDP tunnelling, URL scheme redirects, client commands, and Device Manager heartbeats.</td></tr><tr><td><strong>Client NewAuth</strong></td><td>Connections using the modern authentication method for Parallels Clients.</td></tr><tr><td><strong>Client Tunneling (via API)</strong></td><td>Tunnelled session queries and reconnection-token requests made through the Connection Broker API session path.</td></tr><tr><td><strong>Backend</strong></td><td>Internal component-to-component traffic (Forward Mode, Controller Proxy, settings exchange, console debug commands). Not client-facing.</td></tr><tr><td><strong>All Connections</strong></td><td>An overall ceiling across every connection type above combined, so total load on the Gateway can't exceed a safe level even if each individual type is within its own limit.</td></tr><tr><td><strong>Per Client IP</strong></td><td>The maximum number of connections allowed from a single client IP address.</td></tr><tr><td><strong>Blocked Timeout.</strong></td><td>How long, in minutes, a client that exceeding its limit is blocked before it's allowed to connect again. The default is 30 minutes.</td></tr></tbody></table>

On new installations, Connection Limits are enabled by default with a starting limit for each type. On farms upgraded from an earlier version, Connection Limits are disabled by default, so existing behavior is unaffected until you turn the feature on.

When a client IP repeatedly exceeds its limit, Parallels RAS adds a temporary Windows Firewall rule to block all traffic from that IP address for the duration of the Blocked Timeout. The rule is removed automatically once the timeout expires, and every block and unblock is logged with the source IP, timestamp, and reason for auditing. Blocked client records persist across restarts, so a client that's still within its blocked period remains blocked if the Gateway service or server restarts.

{% hint style="info" %}
**Note**: Per Client IP blocking overrides the connection-type limits for that IP. Once a client IP is blocked, it stays blocked until the timeout expires, even for connection types that are otherwise under their own limit.
{% endhint %}

#### **Exclusions**

You can maintain a list of client IP addresses or ranges (CIDR notation is supported) that should never be blocked by Per Client IP — for example, other Parallels RAS components such as Secure Gateways or Connection Brokers, monitoring systems or internal load balancers. An excluded IP address is never firewall-blocked, but still contributes to the connection-type and All Connections limits.

#### **Prerequisites**

Per Client IP blocking requires Windows Firewall to be enabled on the server hosting the Gateway. If Windows Firewall is disabled, RAS logs a warning and simply closes the excess connection instead of blocking the client.

To view the current number of active connections per type, navigate to **Information** > **Site** in the Parallels RAS Console.

#### **MAC Address Filtering**

To configure a list of allowed or denied MAC addresses, click the **Configure button** and select one of the following options:

* **Allow all except.** All devices on the network will be allowed to connect to the Secure Gateway except those included in this list. Click **Tasks** > **Add** to select a device or to specify a MAC address.
* **Allow only**. Only the devices with the MAC addresses included in the list are allowed to connect to the Secure Gateway. Click **Tasks** > **Add** to select a device or to specify a MAC address.

Please note that the Secure Gateway MAC address filtering is based on ARP, so the client and server must be on the same network for the filtering to work. It does not work across network boundaries.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/ras-secure-gateway/configuring-a-ras-secure-gateway/secure-gateway-security.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
