Premium · Clash documentation

Feature: eBPF Redirect to TUN

Configure eBPF redirect-to-tun on Linux, check kernel dependencies and known limits, and understand conflicts with tun.auto-route and Tailscaled plus the available fallback.

  • eBPF
  • TUN
  • redirect-to-tun
  • auto-route
  • Tailscaled
Premium

eBPF redirection to TUN intercepts all network traffic on a specified interface and redirects it to a TUN interface. This feature requires kernel support.

WARNING

This feature conflicts with tun.auto-route.

It generally performs better than tun.auto-redir and tun.auto-route, but is less mature than auto-route. Use it with caution.

Configuration

yaml
ebpf:
  redirect-to-tun:
    - eth0

Known issues

  • This feature conflicts with Tailscaled, so use tun.auto-route instead.