> For the complete documentation index, see [llms.txt](https://wiki.librahost.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.librahost.fr/vps-rvd/vpn-wireguard-openvpn/openvpn.md). Agents can also search and read this documentation through its [MCP server](https://wiki.librahost.fr/~gitbook/mcp).

# OpenVPN

## Dépendances

{% hint style="danger" %}
**OS supportés :**\
Ubuntu 18.04, 20.04\
Debian 10\
CentOS 7, 8
{% endhint %}

Commandes d'installations

```
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
```

Une fois le script téléchargé, exécutez le:

```
./openvpn-install.sh
```

![](https://2736149216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXhu37A41ugEtj2tEgx%2Fuploads%2FN6TG5whglvaJhg78wbk1%2Fimage.png?alt=media\&token=0c3e7e66-dd98-4e37-a600-282b93be2f11)

Le script vous demandera des informations concernant la configuration du VPN, nous vous conseillons de laisser les paramètres par défaut (sauf pour les DNS choisissez ceux qui vous préférez). Une fois la ligne `Press any key to continue` affichée, appuyez sur entrée. L'installation va démarrer jusqu'à qu'il demande le nom du client.

![](https://2736149216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXhu37A41ugEtj2tEgx%2Fuploads%2FB281MI7zrwNZnXQ0bOe9%2Fimage.png?alt=media\&token=688f8b07-c7fb-4885-bfaa-8ffbaba3b4c2)

Et voilà ! Le VPN OpenVPN est installé, vous pouvez rajouter des clients ou en supprimer en relançant le script. Pour vous connecter au VPN, il suffit d'installer OpenVPN sur votre ordinateur et de télécharger le fichier au chemin indiqué (ici /root/test.ovpn)
