wg: add Chinese translation (#13489)

pull/28/head
Cryo 2024-08-22 03:53:07 +08:00 committed by GitHub
parent bca386f4c5
commit 69f25989a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

24
pages.zh/linux/wg.md Normal file
View File

@ -0,0 +1,24 @@
# wg
> 管理 WireGuard 接口配置。
> 更多信息:<https://www.wireguard.com/quickstart/>.
- 检查当前激活接口的状态:
`sudo wg`
- 生成新的私钥:
`wg genkey`
- 从私钥生成公钥:
`wg pubkey < {{路径/到/私钥}} > {{路径/到/公钥}}`
- 同时生成公钥和私钥:
`wg genkey | tee {{路径/到/私钥}} | wg pubkey > {{路径/到/公钥}}`
- 展示 WireGuard 接口的当前配置:
`sudo wg showconf {{wg0}}`