eBPF-based Linux high-performance transparent proxy solution.
Go to file
2023-02-01 11:10:41 +08:00
.github/workflows chore: fix CI (#2) 2023-01-31 22:02:18 +08:00
cmd fix: remove unsupported (on old kernel) bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_NO_CSUM_RESET 2023-02-01 11:10:41 +08:00
common fix: incorrectly throw error when 5.2<=kernel<5.5 2023-02-01 01:34:50 +08:00
component fix: remove unsupported (on old kernel) bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_NO_CSUM_RESET 2023-02-01 11:10:41 +08:00
config feat: support pname routing (just task command. fixme) 2023-01-31 19:33:53 +08:00
install docs: typo and example 2023-02-01 00:02:46 +08:00
pkg optimize: adapt to bpf legacy 2023-01-30 23:21:00 +08:00
.gitignore chore: bpf headers to submodule 2023-01-31 21:44:20 +08:00
.gitmodules chore: bpf headers to submodule 2023-01-31 21:44:20 +08:00
example.dae docs: kernel version explanation 2023-02-01 00:34:39 +08:00
go.mod fix: routing problems 2023-01-29 11:19:58 +08:00
go.sum fix: routing problems 2023-01-29 11:19:58 +08:00
insert.sh fix: problem that node address cannot be domain 2023-01-31 18:08:38 +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 chore: update copyright 2023-01-28 13:56:06 +08:00
Makefile chore: fix CI (#2) 2023-01-31 22:02:18 +08:00
README.md fix: problem that cannot proxy lan_interface 2023-02-01 10:24:11 +08:00
routing.md feat: support pname routing (just task command. fixme) 2023-01-31 19:33:53 +08:00

dae

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

In order to improve the traffic diversion performance as much as possible, dae runs the transparent proxy and traffic diversion suite in the linux kernel by eBPF. Therefore, we have 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. In the initial conception, dae will serve soft router users first, and may also serve desktop users later.

Linux Kernel Version Requirement

Use uname -r to check the kernel version on your machine.

Bind to LAN: >= 5.2

You need bind dae to LAN interface, if you want to provide network service for LAN as an intermediate device.

This feature requires the kernel version of machine on which dae install >= 5.2.

Note that if you bind dae to LAN only, dae only provide network service for traffic from LAN, and not impact local programs.

Bind to WAN: >= 5.5

You need bind dae to WAN interface, if you want dae to provide network service for local programs.

This feature requires kernel version of the machine >= 5.5.

Note that if you bind dae to WAN only, dae only provide network service for local programs and not impact traffic coming in from other interfaces.

Usage

Build:

git clone https://github.com/v2rayA/dae.git
cd dae
git submodule update --init --recursive
make

Run:

./dae run -c example.dae

See example.dae.

TODO

  1. Check dns upstream and source loop (whether upstream is also a client of us) and remind the user to add sip rule.
  2. Domain routing performance optimization.
  3. DisableL4Checksum by link.
  4. Handle the case that nodes do not support UDP.
  5. L4Checksum problem.
  6. Config support list like: wan_interface: [wlp5s0, eth0].
  7. MACv2 extension extraction.
  8. ...