daeuniverse / dae

eBPF-based Linux high-performance transparent proxy solution.

Home Page:https://dae.v2raya.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug Report] UDP connection state cannot be maintained

sumire88 opened this issue · comments

Checks

  • I have searched the existing issues
  • I have read the documentation

Current Behavior

Since #505, there is a noticeable bug that correlates to UDP state management. Connection is no longer maintained as expected, which further results in receiving invalid response.

image

Expected Behavior

NA

Steps to Reproduce

# config.dae

include {
    config.d/*.dae
}

global {
    tproxy_port: 12345
    so_mark_from_dae: 0
    log_level: trace

    tcp_check_url: 'http://cp.cloudflare.com,1.1.1.1,2606:4700:4700::1111'
    tcp_check_http_method: CONNECT
    udp_check_dns: 'dns.google.com:53,8.8.8.8,2001:4860:4860::8888'
    check_interval: 60s

    check_tolerance: 100ms

    wan_interface: ens18
    lan_interface: ens19

    dial_mode: domain++
    allow_insecure: false
    auto_config_kernel_parameter: true

    sniffing_timeout: 10000ms

    tls_implementation: tls
    utls_imitate: chrome_auto
}

Environment

  • Dae version (use dae --version): dae-v0.6.0rc2
  • OS (e.g cat /etc/os-release): NixOS 24.05 (Uakari)
  • Kernel (e.g. uname -a): Linux nixos-sdwan-gateway 6.8.6-cachyos #1-NixOS SMP PREEMPT_DYNAMIC Sat Apr 13 11:10:12 UTC 2024 x86_64 GNU/Linux
  • Others: I use Nix BTW

Anything else?

I've tested the exact same configuration with version v0.6.0rc1, and did not experience such an issue. As a result, the issue might be originated from #505.

Thanks for opening this issue!