wg: refresh and add French translation (#6687)

This commit is contained in:
marcan2020
2021-10-13 23:24:01 -04:00
committed by GitHub
parent afc5e4e55d
commit 50fad57fd1
2 changed files with 25 additions and 5 deletions

20
pages.fr/linux/wg.md Normal file
View File

@@ -0,0 +1,20 @@
# wg
> Gestion de la configuration des interfaces WireGuard.
> Plus d'informations: <https://www.wireguard.com/quickstart/>.
- 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}}`

View File

@@ -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}}`