This repository has been archived on 2024-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
clash/docs/premium/ebpf.md
2023-05-20 22:51:46 +08:00

27 lines
760 B
Markdown

---
sidebarTitle: "Feature: eBPF Redirect to TUN"
sidebarOrder: 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](https://github.com/iovisor/bcc/blob/master/INSTALL.md#kernel-configuration) 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
```yaml
ebpf:
redirect-to-tun:
- eth0
```
## Known Issues
- This feature breaks Tailscaled, so you should use `tun.auto-route` instead.