commun:mise_en_place_du_vpn_wireguard
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| commun:mise_en_place_du_vpn_wireguard [2019/12/15 18:25] – francois | commun:mise_en_place_du_vpn_wireguard [2019/12/15 18:39] (Version actuelle) – [Sur le routeur] francois | ||
|---|---|---|---|
| Ligne 10: | Ligne 10: | ||
| wg genkey | tee / | wg genkey | tee / | ||
| </ | </ | ||
| + | |||
| + | Configuration | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| ===== Sur le client ===== | ===== Sur le client ===== | ||
| - | Création des clefs pour un client | + | **Création des clefs pour un client** |
| <code bash> | <code bash> | ||
| wg genkey | tee client-privatekey | wg pubkey > client-publickey | wg genkey | tee client-privatekey | wg pubkey > client-publickey | ||
| </ | </ | ||
| - | wg0 config | + | **wg0 config** |
| <file ini wgo.conf> | <file ini wgo.conf> | ||
| [Interface] | [Interface] | ||
| Ligne 31: | Ligne 41: | ||
| PersistentKeepalive = 25 | PersistentKeepalive = 25 | ||
| </ | </ | ||
| + | |||
| + | **Commande à exécuter sur le client** | ||
| + | <code bash> | ||
| + | nmcli connection import type wireguard file wg0.conf | ||
| + | nmcli --show-secrets --ask connection up wg0 | ||
| + | </ | ||
commun/mise_en_place_du_vpn_wireguard.1576434359.txt.gz · Dernière modification : (modification externe)
