add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

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