Skip to content

Commit

Permalink
Doc: update tun-device.md (#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meowzz95 authored Aug 9, 2023
1 parent d8523c3 commit 033dbf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/premium/tun-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Premium core has out-of-the-box support of TUN device. Being a Network layer
One of the biggest advantage of using Clash TUN is the built-in support of the *automagic* management of the route table, routing rules and nftable. You can enable it with the options `tun.auto-route` and `tun.auto-redir`. It's a drop-in replacement of the ancient configuration option `redir-port` (TCP) for the sake of easier configuration and better stability.

::: tip
`tun.auto-route` and `tun.auto-redir` are only available on macOS, Windows, Linux and Android, and only receives IPv4 traffic.
`tun.auto-route` is only available on macOS, Windows, Linux and Android, and only receives IPv4 traffic. `tun.auto-redir` is only available on Linux(needs netlink support in the kernel).
:::

There are two options of TCP/IP stack available: `system` or `gvisor`. In order to get the best performance available, we recommend that you always use `system` stack unless you have a specific reason or compatibility issue to use `gvisor`. If that's the case, do not hesitate to [submit an issue](https://github.com/Dreamacro/clash/issues/new/choose).
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_CN/premium/tun-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Premium 内核支持 TUN 设备. 作为网络层设备, 它可以用来处理 TC
使用 Clash TUN 的最大优势之一是内置支持对操作系统路由表、路由规则和 nftable 的自动管理. 您可以通过选项 `tun.auto-route``tun.auto-redir` 来启用它. 这个功能替换了古老的配置选项 `redir-port`(TCP), 以方便配置和提高稳定性.

::: tip
`tun.auto-route` `tun.auto-redir` 仅在 macOS、Windows、Linux 和 Android 上可用, 并且仅接收 IPv4 流量.
`tun.auto-route` 仅在 macOS、Windows、Linux 和 Android 上可用, 并且仅接收 IPv4 流量`tun.auto-redir` 仅在 Linux 上可用(需要内核 netlink 支持)。
:::

Clash 有两种可供选择的 TCP/IP 协议栈: `system` or `gvisor`. 为了获得最好的性能, 我们建议您优先使用 `system` 栈, 只有遇到兼容性问题时才使用 `gvisor`. 并且如果你遇到这样的情况, 请立即[提交 Issue](https://github.com/Dreamacro/clash/issues/new/choose).
Expand Down

0 comments on commit 033dbf7

Please sign in to comment.