> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/de/knowledge-base/how-to-articles/reverse-proxying/ngrok-tunnel-with-devolutions-gateway.md).

# Ngrok-Tunnel mit Devolutions Gateway

Devolutions Gateway kann hinter Ngrok betrieben werden, um einer internen Devolutions Gateway-Installation eine zusätzliche Schutzebene hinzuzufügen oder um einen ausgehenden Tunnel zu ermöglichen, wenn eine Änderung der Firewall-Konfiguration nicht möglich ist. Die Verwendung von Devolutions Gateway hinter Ngrok ist sowohl für Devolutions Server als auch für Devolutions Cloud verfügbar. Der Ngrok-Tunnel kann zu einem bereits bestehenden Gateway hinzugefügt werden, indem einige Einstellungen in der Datei **gateway.json** geändert werden.

### Ngrok konfigurieren

{% hint style="info" %}
Ein kostenpflichtiges Ngrok-Abonnement ist erforderlich, da das Gateway TCP-Verkehr bereitstellen muss. Das Abonnement umfasst auch die Verwendung benutzerdefinierter Domänennamen.
{% endhint %}

1. Melden Sie sich beim Ngrok-Dashboard an.
2. Gehen Sie zum Abschnitt ***Domains***, der sich unter ***Cloud Edge*** befindet.
3. Klicken Sie auf ***New Domain***.

   ![](https://cdnweb.devolutions.net/docs/DGW0070_2024_3.png)
4. Geben Sie die Domänendetails ein und klicken Sie auf ***Continue***.

   ![](https://cdnweb.devolutions.net/docs/DGW0071_2024_3.png)
5. Wählen Sie unter ***Cloud Edge*** den Abschnitt ***TCP Addresses*** und klicken Sie dann auf die Schaltfläche ***New TCP Address***.

   ![](https://cdnweb.devolutions.net/docs/DGW0085_2024_3.png)
6. Ändern Sie die Informationen bei Bedarf und klicken Sie auf ***Continue***.

   ![](https://cdnweb.devolutions.net/docs/DGW0083_2024_3.png)

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Es wird empfohlen, die <em><strong>Domain</strong></em>, die <em><strong>TCP Address</strong></em>, den zugewiesenen TCP-Port sowie den Ngrok-<em><strong>Authtoken</strong></em> zu notieren.</p></div>
7. Gehen Sie zu ***Getting Started*** — ***Your Authtoken*** und klicken Sie auf die Schaltfläche ***Copy***.

   ![](https://cdnweb.devolutions.net/docs/DGW0084_2024_3.png)

### Den Bereitstellungsschlüssel abrufen

1. Melden Sie sich bei der Devolutions Server- oder Devolutions Cloud-Instanz als Benutzer mit Zugriff auf die Devolutions Gateway-Konfiguration an.
2. Gehen Sie zu ***Administration*** — ***Devolutions Gateway***.
3. Klicken Sie auf die Schaltfläche ***More*** und wählen Sie ***Download public key***.

{% hint style="success" %}
Diese Datei muss für den Server zugänglich sein, der Devolutions Gateway hinter Ngrok hostet.
{% endhint %}

### Devolutions Gateway mit Ngrok installieren

1. Öffnen Sie eine Verbindung zum Server, der Devolutions Gateway hostet, und laden Sie das [Installationsprogramm](https://devolutions.net/gateway/) herunter.
2. Führen Sie das Installationsprogramm aus.
3. Klicken Sie auf ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0020_2024_3.png)
4. Sobald der gewünschte Installationspfad ausgewählt ist, klicken Sie auf die Schaltfläche ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0021_2024_3.png)
5. Aktivieren Sie die Option ***Enable access over the internet using Ngrok*** und klicken Sie auf ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0074_2024_3.png)
6. Geben Sie die Ngrok-Einstellungen ein und klicken Sie auf ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0075_2024_3.png)
7. Geben Sie den Pfad zum zuvor von Devolutions Server oder Devolutions Cloud abgerufenen öffentlichen Schlüssel an und klicken Sie auf ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0022_2024_3.png)

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Diese Schlüsseldatei muss für das Konto NetworkService zugänglich sein, unter dem Devolutions Gateway ausgeführt wird.</p></div>
8. Klicken Sie auf ***Next*** und dann auf ***Install***.

   ![](https://cdnweb.devolutions.net/docs/DGW0076_2024_3.png)

### Devolutions Server konfigurieren

1. Melden Sie sich bei einer Devolutions Server-Instanz als Benutzer mit Zugriff auf die Devolutions Gateway-Konfiguration an.
2. Gehen Sie zu ***Administration*** — ***Devolutions Gateway***.
3. Klicken Sie auf die Schaltfläche ***Hinzufügen*** (***+***) und wählen Sie ***Gateway***.

   ![](https://cdnweb.devolutions.net/docs/DGW0002_2024_3.png)
4. Geben Sie die zuvor von Ngrok abgerufenen Details ein, die zur Konfiguration von Devolutions Gateway verwendet werden.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Möglicherweise muss der Ngrok-Domäne <code>https://</code> vorangestellt werden. <em><strong>Auto-Detect</strong></em> funktioniert nicht, aber <em><strong>Test connection</strong></em> zeigt an, ob die Ngrok-Domäne erreichbar ist.</p></div>
5. Klicken Sie auf ***Speichern***.

   ![](https://cdnweb.devolutions.net/docs/DGW0077_2024_3.png)
6. Klicken Sie auf die Auslassungspunkte (***More***) neben dem neu konfigurierten Gateway und wählen Sie ***Publish revocation list***.
   1. Wenn die Option ***Publish Gateway configuration*** verfügbar ist, sollte diese vor ***Publish revocation list*** ausgeführt werden.

      ![](https://cdnweb.devolutions.net/docs/DGW0078_2024_3.png)

### Devolutions Cloud konfigurieren

1. Melden Sie sich bei einer Devolutions Cloud-Instanz als Benutzer mit Zugriff auf die Devolutions Gateway-Konfiguration an.
2. Gehen Sie zu ***Administration*** — ***Devolutions Gateway***.
3. Klicken Sie auf die Schaltfläche ***Hinzufügen*** (***+***).
4. Geben Sie die zuvor von Ngrok abgerufenen Details ein, die zur Konfiguration von Devolutions Gateway verwendet werden.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Möglicherweise muss der Ngrok-Domäne <code>https://</code> vorangestellt werden. <em><strong>Auto-Detect</strong></em> funktioniert nicht, aber <em><strong>Test connection</strong></em> zeigt an, ob die Ngrok-Domäne erreichbar ist.</p></div>
5. Durchlaufen Sie eine beliebige Kombination der Registerkarten ***Tresore***, ***Gruppen*** oder ***Benutzer***, um zu entscheiden, wie die Lizenzen verteilt werden.
6. Klicken Sie auf ***Hinzufügen***.

   ![](https://cdnweb.devolutions.net/docs/DGW0080_2024_3.png)
7. Klicken Sie auf die Auslassungspunkte (***More***) neben dem neu konfigurierten Gateway und wählen Sie ***Publish Gateway configuration***.

   ![](https://cdnweb.devolutions.net/docs/DGW0081_2024_3.png)


---

# 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.devolutions.net/gateway/de/knowledge-base/how-to-articles/reverse-proxying/ngrok-tunnel-with-devolutions-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.
