8000 GitHub - LostAttractor/dae: eBPF-based Linux high-performance transparent proxy solution. · GitHub
[go: up one dir, main page]

Skip to content
LostAttractorPublic
forked from daeuniverse/dae

About

eBPF-based Linux high-performance transparent proxy solution.

Resources

Stars

17 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

2,001 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dae

Build License version lastcommit

dae, means goose, is a high-performance transparent proxy solution.

To enhance traffic split performance as much as possible, dae employs the transparent proxy and traffic split suite within the Linux kernel using eBPF. As a result, dae can enable direct traffic to bypass the proxy application's forwarding, facilitating genuine direct traffic passage. Through this remarkable feat, there is minimal performance loss and negligible additional resource consumption for direct traffic.

As a successor of v2rayA, dae abandoned v2ray-core to meet the needs of users more freely.

Features

Getting Started

Please refer to Quick Start Guide to start using dae right away!

The daemon requires Linux 6.13+ with the kernel features and runtime environment used by dae. Run sudo dae check-kernel to probe support before startup. Geo data files are required only by rules that reference them.

Source builds require Go 1.27.2+, cgo, a target C compiler, and Clang/LLVM for eBPF; see the build guide for static musl and cross-compilation.

The configuration example includes ordered plugins instances and rules flow controls / DNAT. Core DNS is a transparent relay with persistent domain evidence; advanced resolver/cache features are independent plugins. The default build includes Surge. Copy plugins.cfg.example to local plugins.cfg, add external Go plugins, and build them with dae.

DAE_LOCATION_CACHE selects the writable state directory for certificates, subscription caches and Surge resources (default /var/lib/dae).

Notes

  1. If dae shares a public host (such as a VPS) with a Shadowsocks or other UDP server, add l4proto(udp) && sport(your_server_ports) -> must to rules {} and the same filter with -> direct near the top of routing {}. UDP replies to clients could otherwise be proxied or mistaken for DNS queries. must skips automatic DNS interception; direct selects direct forwarding. Avoid explicit bump, MITM or DNAT capture for these replies to keep them in the kernel.
  2. If users in mainland China find that the first screen time is very long when they visit some domestic websites for the first time, please check whether you use foreign DNS to handle some domestic domain in DNS routing. Sometimes this is hard to spot. For example, ocsp.digicert.cn is included in geosite:geolocation-!cn unexpectedly, which will cause some tls handshakes to take a long time. Be careful to use such domain sets in DNS routing.

How it works

See How it works.

TODO

  • Automatically check dns upstream and source loop (whether upstream is also a client of us) and remind the user to add sip rule.
  • MACv2 extension extraction.
  • Log to userspace.
  • Protocol-oriented node features detecting (or filter), such as full-cone (especially VMess and VLESS).
  • Add quick-start guide
  • ...

Contributors

Special thanks goes to all contributors. If you would like to contribute, please see the instructions. A 5813 lso, it is recommended following the commit-msg-guide.

License

AGPL-3.0 (C) daeuniverse

About

eBPF-based Linux high-performance transparent proxy solution.

Resources

Stars

17 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0