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

# Routage VPN

L'établissement d'une connexion VPN à l'aide de Remote Desktop Manager est simple. Malheureusement, l'ajout de routes doit être effectué manuellement. Il faut attendre que l'adaptateur se connecte, trouver l'adresse IP, puis ajouter les routes souhaitées. Même si vous utilisez un script (tel qu'un script PowerShell), il s'agit d'une tâche redondante et fastidieuse.

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

### Solution

Cette fonctionnalité fait partie d'un concept plus large appelé Commandes VPN. Elle vous permet d'exécuter tout type de script ou d'exécutable après la connexion VPN et avant la déconnexion VPN.

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

### Flux de travail

1. Configurez le VPN pour attendre que l'adaptateur se connecte et obtienne une adresse IP assignée (nous utiliserons l'adresse IP de l'adaptateur pour définir les routes).
2. Cliquez sur ***Ajouter*** pour afficher la boîte de dialogue ***Commandes***.
3. Créez une définition de route en sélectionnant l'option ***Route (Ajouter/Supprimer)***.
4. Définissez l'adresse IP et toute autre information requise.

   <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:

```
GET https://docs.devolutions.net/rdm/fr/knowledge-base/how-to-articles/vpn-routing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
