> 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/it/knowledge-base/how-to-articles/reverse-proxying/ngrok-tunnel-with-devolutions-gateway.md).

# Tunnel Ngrok con Devolutions Gateway

Devolutions Gateway può funzionare dietro Ngrok per aggiungere un ulteriore livello di protezione a un'installazione interna di Devolutions Gateway o per consentire un tunnel in uscita quando non è possibile modificare la configurazione di un firewall. L'utilizzo di Devolutions Gateway dietro Ngrok è disponibile sia per Devolutions Server sia per Devolutions Cloud. Il tunnel Ngrok può essere aggiunto a un gateway già esistente modificando alcune impostazioni nel file **gateway.json**.

### Configurare Ngrok

{% hint style="info" %}
È necessario un abbonamento a pagamento a Ngrok poiché il gateway deve gestire traffico TCP. L'abbonamento include anche l'utilizzo di nomi di dominio personalizzati.
{% endhint %}

1. Acceda alla dashboard di Ngrok.
2. Vada alla sezione ***Domains*** che si trova sotto ***Cloud Edge***.
3. Clicchi su ***New Domain***.

   ![](https://cdnweb.devolutions.net/docs/DGW0070_2024_3.png)
4. Inserisca i dettagli del dominio e clicchi su ***Continue***.

   ![](https://cdnweb.devolutions.net/docs/DGW0071_2024_3.png)
5. Sotto ***Cloud Edge***, selezioni la sezione ***TCP Addresses*** e poi clicchi sul pulsante ***New TCP Address***.

   ![](https://cdnweb.devolutions.net/docs/DGW0085_2024_3.png)
6. Modifichi le informazioni se necessario e clicchi su ***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>Si consiglia di annotare il <em><strong>Domain</strong></em>, il <em><strong>TCP Address</strong></em>, la porta TCP assegnata così come l'<em><strong>Authtoken</strong></em> di Ngrok.</p></div>
7. Vada su ***Getting Started*** — ***Your Authtoken*** e clicchi sul pulsante ***Copy***.

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

### Recuperare la chiave di provisioning

1. Acceda all'istanza di Devolutions Server o Devolutions Cloud come utente con accesso alla configurazione di Devolutions Gateway.
2. Vada su ***Administration*** — ***Devolutions Gateway***.
3. Clicchi sul pulsante ***More*** e selezioni ***Download public key***.

{% hint style="success" %}
Questo file deve essere accessibile al server che ospita Devolutions Gateway dietro Ngrok.
{% endhint %}

### Installare Devolutions Gateway con Ngrok

1. Apra una connessione al server che ospita Devolutions Gateway e scarichi il [programma di installazione](https://devolutions.net/gateway/).
2. Esegua il programma di installazione.
3. Clicchi su ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0020_2024_3.png)
4. Una volta selezionato il percorso di installazione desiderato, clicchi sul pulsante ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0021_2024_3.png)
5. Selezioni l'opzione ***Enable access over the internet using Ngrok*** e clicchi su ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0074_2024_3.png)
6. Inserisca le impostazioni di Ngrok e clicchi su ***Next***.

   ![](https://cdnweb.devolutions.net/docs/DGW0075_2024_3.png)
7. Specifichi il percorso della chiave pubblica precedentemente recuperata da Devolutions Server o Devolutions Cloud e clicchi su ***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>Questo file di chiave deve essere accessibile all'account NetworkService, con il quale viene eseguito Devolutions Gateway.</p></div>
8. Clicchi su ***Next*** e poi clicchi su ***Install***.

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

### Configurare Devolutions Server

1. Acceda a un'istanza di Devolutions Server come utente con accesso alla configurazione di Devolutions Gateway.
2. Vada su ***Administration*** — ***Devolutions Gateway***.
3. Clicchi sul pulsante ***Add*** (***+***) e scelga ***Gateway***.

   ![](https://cdnweb.devolutions.net/docs/DGW0002_2024_3.png)
4. Inserisca i dettagli precedentemente recuperati da Ngrok utilizzati per configurare Devolutions Gateway.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Potrebbe essere necessario far precedere il dominio Ngrok da <code>https://</code>. <em><strong>Auto-Detect</strong></em> non funzionerà, ma <em><strong>Test connection</strong></em> indicherà se il dominio Ngrok è accessibile.</p></div>
5. Clicchi su ***Save***.

   ![](https://cdnweb.devolutions.net/docs/DGW0077_2024_3.png)
6. Clicchi sul pulsante con i puntini di sospensione (***More***) accanto al gateway appena configurato e selezioni ***Publish revocation list***.
   1. Se l'opzione ***Publish Gateway configuration*** è disponibile, dovrebbe essere eseguita prima di ***Publish revocation list***.

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

### Configurare Devolutions Cloud

1. Acceda a un'istanza di Devolutions Cloud come utente con accesso alla configurazione di Devolutions Gateway.
2. Vada su ***Administration*** — ***Devolutions Gateway***.
3. Clicchi sul pulsante ***Add*** (***+***).
4. Inserisca i dettagli precedentemente recuperati da Ngrok utilizzati per configurare Devolutions Gateway.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Potrebbe essere necessario far precedere il dominio Ngrok da <code>https://</code>. <em><strong>Auto-Detect</strong></em> non funzionerà, ma <em><strong>Test connection</strong></em> indicherà se il dominio Ngrok è accessibile.</p></div>
5. Consulti qualsiasi combinazione delle schede ***Vaults***, ***Groups*** o ***Users*** per decidere come verranno distribuite le licenze.
6. Clicchi su ***Add***.

   ![](https://cdnweb.devolutions.net/docs/DGW0080_2024_3.png)
7. Clicchi sul pulsante con i puntini di sospensione (***More***) accanto al gateway appena configurato e selezioni ***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/it/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.
