clash/docs/premium/ebpf.md

760 B

sidebarTitle sidebarOrder
Feature: eBPF Redirect to TUN 3

eBPF Redirect to TUN

eBPF redirect to TUN is a feature that intercepts all network traffic on a specific network interface and redirects it to the TUN interface. Support from your kernel is required.

::: warning This feature conflicts with tun.auto-route. :::

While it usually brings better performance compared to tun.auto-redir and tun.auto-route, it's less tested compared to auto-route. Therefore, you should proceed with caution.

Configuration

ebpf:
  redirect-to-tun:
    - eth0

Known Issues

  • This feature breaks Tailscaled, so you should use tun.auto-route instead.