Premium 版本 · Clash文件

功能:將 eBPF 重新導向至 TUN

在 Linux 上透過 eBPF redirect-to-tun 將流量送入 TUN 前,先確認介面與核心相依性,再檢查 tun.auto-route、Tailscaled 的衝突及可用的替代方式。

  • eBPF
  • TUN
  • redirect-to-tun
  • auto-route
  • Tailscaled
Premium 版本
本文章節

eBPF 重新導向至 TUN 會攔截指定網路介面上的所有流量,並將其重新導向至 TUN 介面。此功能需要核心支援。

警告

此功能與 tun.auto-route 衝突。

雖然其效能通常優於 tun.auto-redir 與 tun.auto-route,但成熟度仍不如 auto-route,因此請謹慎使用。

設定

yaml
ebpf:
  redirect-to-tun:
    - eth0

已知問題

  • 此功能與 Tailscaled 衝突,因此應改用 tun.auto-route。