> 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/rdm/es/knowledge-base/how-to-articles/vpn-routing.md).

# Enrutamiento de VPN

Establecer una conexión VPN con Remote Desktop Manager es sencillo. Desafortunadamente, añadir rutas debe hacerse manualmente. Hay que esperar a que el adaptador se conecte, encontrar la IP y luego añadir las rutas deseadas. Incluso si utiliza un script (como un script de PowerShell), sigue siendo una tarea redundante y que consume mucho tiempo.

<figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4601.png" alt=""><figcaption></figcaption></figure>

### Solución

Esta función forma parte de un concepto más amplio denominado comandos VPN. Le permite ejecutar cualquier tipo de script o ejecutable después de conectar la VPN y antes de desconectarla.

<figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4602.png" alt=""><figcaption></figcaption></figure>

### Flujo de trabajo

1. Configure la VPN para que espere hasta que el adaptador se conecte y se le asigne una IP (utilizaremos la IP del adaptador para definir las rutas).
2. Haga clic en ***Añadir*** para mostrar el cuadro de diálogo ***Comandos***.
3. Cree una definición de ruta seleccionando el botón de opción ***Ruta (Añadir/Eliminar)***.
4. Establezca la IP y cualquier otra información requerida.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4603.png" alt=""><figcaption></figcaption></figure>


---

# 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/rdm/es/knowledge-base/how-to-articles/vpn-routing.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.
