mirror of
https://github.com/EasyTier/easytier.github.io.git
synced 2026-10-20 08:18:34 +00:00
811 B
811 B
无 TUN 模式 (免 Root 权限)
由于创建 TUN 设备需要 ROOT 权限,对于一些无法获取 Root 权限的环境,EasyTier 也提供了不依赖 TUN 的使用方法。只需在启动 EasyTier 时,增加 --no-tun 参数即可。
::: code-group
easytier-core --no-tun
[flags]
no_tun = true
:::
将上面的配置保存为 config.toml 后,可通过 easytier-core -c ./config.toml 启动。
使用无 TUN 模式组网时,节点可以通过虚拟 IP 被访问(TCP、UDP 和 ICMP 都支持),也可以做子网代理(使用 -n 参数)。但是无法主动发起对其他节点的访问。
为了在无 TUN 模式下主动访问其他节点,可使用 EasyTier 的 SOCKS5 服务器功能。