Skip to content

Commit

Permalink
Merge branch 'main' into add-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavmangal authored Aug 21, 2024
2 parents f21b831 + bceb4b9 commit 919fb8b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions pages.zh/linux/wg.md
Original file line number Diff line number Diff line change
@@ -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}}`
2 changes: 1 addition & 1 deletion pages/linux/man.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`man {{command}}`

- Open the man page for a command in a browser:
- Open the man page for a command in a browser (requires the `BROWSER` variable to be set):

`man --html {{command}}`

Expand Down

0 comments on commit 919fb8b

Please sign in to comment.