From 50fad57fd18cfb3efc92d41c69d66e8a649e382e Mon Sep 17 00:00:00 2001 From: marcan2020 Date: Wed, 13 Oct 2021 23:24:01 -0400 Subject: [PATCH] wg: refresh and add French translation (#6687) --- pages.fr/linux/wg.md | 20 ++++++++++++++++++++ pages/linux/wg.md | 10 +++++----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 pages.fr/linux/wg.md diff --git a/pages.fr/linux/wg.md b/pages.fr/linux/wg.md new file mode 100644 index 0000000000..bc04ee62c2 --- /dev/null +++ b/pages.fr/linux/wg.md @@ -0,0 +1,20 @@ +# wg + +> Gestion de la configuration des interfaces WireGuard. +> Plus d'informations: . + +- Check status of currently active interfaces: + +`wg` + +- Générer une clé privée : + +`wg genkey` + +- Générer une clé publique à partir d'une clé privée : + +`wg pubkey < {{chemin/vers/clé_privée}} > {{chemin/vers/clé_publique}}` + +- Générer une clé publique et privée : + +`wg genkey | tee {{chemin/vers/clé_privée}} | wg pubkey > {{chemin/vers/clé_publique}}` diff --git a/pages/linux/wg.md b/pages/linux/wg.md index b8677d3d4d..2b2ca27d75 100644 --- a/pages/linux/wg.md +++ b/pages/linux/wg.md @@ -5,16 +5,16 @@ - Check status of currently active interfaces: -`sudo wg` +`wg` -- Print a new private key: +- Generate a new private key: `wg genkey` -- Print a new public key: +- Generate a public key from a private key: -`echo {{private_key}} | wg pubkey` +`wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}` - Generate a public and private key: -`wg genkey | tee {{privatekey.txt}} | wg pubkey > {{publickey.txt}}` +`wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}`