eBPF-based Linux high-performance transparent proxy solution.
Go to file
Kevin Yu e39ec7fc05
refactor(/docs): rework documentation structure layout (#179)
* refactor(/docs): rework documentation structure layout

* refactor(/docs): update file reference paths

* feat(/docs): add English version of other-proxy-protocol.md

* refacotr: move docs/templates/ docs/sync/ to hack/

* fix(example.dae|readme): update ref link to adopt new file structure

* refactor: rename other-proxy-protocol.md -> proxy-protocols.md

* docs(readme): add ref to proxy-protocols.md

* feat(/docs): add English version of how-it-works.md

* refactor: rename how-it-works; add nav links

* fix: fix linting errors

* fix: fix linting errors

---------

Co-authored-by: earrmouth <43926351+earrmouth@users.noreply.github.com>
2023-07-09 17:31:47 +08:00
.github ci: update workflow naming standards (#186) 2023-07-09 16:36:47 +08:00
cmd fix: new control plane should reset grpc conn pool cache (#150) 2023-06-18 18:53:26 +08:00
common refactor(dns): replace dnsmessage with miekg/dns (#188) 2023-07-09 16:02:17 +08:00
component refactor(dns): replace dnsmessage with miekg/dns (#188) 2023-07-09 16:02:17 +08:00
config feat(config): support IgnoreZero option for config.Marhsaller (#153) 2023-06-20 23:29:53 +08:00
control refactor(dns): replace dnsmessage with miekg/dns (#188) 2023-07-09 16:02:17 +08:00
docs refactor(/docs): rework documentation structure layout (#179) 2023-07-09 17:31:47 +08:00
hack refactor(/docs): rework documentation structure layout (#179) 2023-07-09 17:31:47 +08:00
install ci: Add amd64_v2 and amd64_v3 build (#38) 2023-03-24 01:09:45 +08:00
pkg optimize(routing): fix slow domain++ ip routing (#133) 2023-06-11 12:48:52 +08:00
.autocorrectrc ci: add check-docs workflow (#93) 2023-05-21 00:41:44 +08:00
.editorconfig chore: add editorconfig (#85) 2023-05-14 13:07:55 +08:00
.gitignore chore: do not ignore .gitmodules.d.mk 2023-06-17 14:32:29 +08:00
.gitmodules chore: transferred to daeuniverse 2023-03-14 15:01:55 +08:00
.gitmodules.d.mk chore: do not ignore .gitmodules.d.mk 2023-06-17 14:32:29 +08:00
.markdownlint-cli2.jsonc ci: add check-docs workflow (#93) 2023-05-21 00:41:44 +08:00
.pre-commit-config.yaml chore: add pre-commit hook (#59) 2023-04-23 13:24:05 +08:00
CHANGELOGS.md chore(CHANGELOGS.md): fix format 2023-07-02 22:57:54 +08:00
CODEOWNERS chore(codeowner): update ownership (#64) 2023-04-29 13:44:23 +08:00
docker-compose.yml chore: support docker. fix #30 2023-03-04 13:16:26 +08:00
Dockerfile chore(geodata): change back to v2fly geodata (#168) 2023-07-01 12:05:03 +08:00
example.dae refactor(/docs): rework documentation structure layout (#179) 2023-07-09 17:31:47 +08:00
go.mod refactor(dns): replace dnsmessage with miekg/dns (#188) 2023-07-09 16:02:17 +08:00
go.sum refactor(dns): replace dnsmessage with miekg/dns (#188) 2023-07-09 16:02:17 +08:00
LICENSE init 2023-01-23 19:54:21 +08:00
logo.png init 2023-01-23 19:54:21 +08:00
main.go style: format golang import package code style (#58) 2023-04-23 13:27:29 +08:00
Makefile chore: do not ignore .gitmodules.d.mk 2023-06-17 14:32:29 +08:00
package-lock.json ci: add check-docs workflow (#93) 2023-05-21 00:41:44 +08:00
package.json ci: add check-docs workflow (#93) 2023-05-21 00:41:44 +08:00
README.md refactor(/docs): rework documentation structure layout (#179) 2023-07-09 17:31:47 +08:00

dae

Build License version lastcommit

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

In order to improve the traffic split performance as much as possible, dae runs the transparent proxy and traffic split suite in the Linux kernel by eBPF. Therefore, dae has the opportunity to make the direct traffic bypass the forwarding by proxy application and achieve true direct traffic through. Under such a magic trick, there is almost no performance loss and additional resource consumption for direct traffic.

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

Features

  • Implement Real Direct traffic split (need ipforward on) to achieve high performance.
  • Support to split traffic by process name in local host.
  • Support to split traffic by MAC address in LAN.
  • Support to split traffic with invert match rules.
  • Support to automatically switch nodes according to policy. That is to say, support to automatically test independent TCP/UDP/IPv4/IPv6 latencies, and then use the best nodes for corresponding traffic according to user-defined policy.
  • Support advanced DNS resolution process.
  • Support full-cone NAT for shadowsocks, trojan(-go) and socks5 (no test).
  • Support various trending proxy protocols, seen in proxy-protocols.md.

Getting Started

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

Documentation: https://dae.v2raya.org

Notes

  1. If you setup dae and also a shadowsocks server (or any UDP servers) on the same machine in public network, such as a VPS, don't forget to add l4proto(udp) && sport(your server ports) -> must_direct rule for your UDP server port. Because states of UDP are hard to maintain, all outgoing UDP packets will potentially be proxied (depends on your routing), including traffic to your client. This behaviour is not what we want to see. must_direct makes all traffic from this port including DNS traffic direct.
  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. Also, it is recommended following the commit-msg-guide.

License

AGPL-3.0 (C) daeuniverse

Stargazers over time

Stargazers over time