---
# System prepended metadata

title: VPN installation for LINUX

---

# VPN installation for LINUX

## Requirements

* Openvpn version 2.x.x
* Ubuntu version >= 18.04 (for minor version you may have to install openvpn 2)

run `openvpn --version` to know which version is installed

:warning: All following commands have to be runned with root elevation (sudo)

## Install config file

Open config file sent by mail named **Wynd VPN OVH.ovpn** and replace on line 7

```shell=
client-cert-not-required
```

by 
```shell=
verify-client-cert
```

## Rename and move config file

To allow openvpn to automatically grab config file on startup we have to rename and move it to a proper place `/etc/openvpn` by running following commands : 

```shell=
# In the same folder of config file
sudo mv "Wynd VPN OVH.ovpn" /etc/openvpn/vpn_wynd.conf
```

## Start and stop vpn

To start or stop vpn you have to run following command : 

```shell=
sudo systemctl start openvpn@vpn_wynd
# or
sudo systemctl stop openvpn@vpn_wynd
```

:warning: VPN will start automatically at next reboot

## (Optionnal) Store credentials

You can store your LDAP credentials to avoid typing them each time.

Create a new file `/etc/openvpn/.ldap_credentials` with following content : 

```shell=
ldap_username
ldap_password
```

Then edit config file `/etc/openvpn/vpn_wynd.conf` and replace line 15 : 

```shell=
auth-user-pass
```

by 

```shell=
auth-user-pass ./.ldap_credentials
```

To try connection without credentials stop vpn then restart it with commands describe in previous section