daeuniverse / dae

eBPF-based Linux high-performance transparent proxy solution.
GNU Affero General Public License v3.0
2.62k stars 165 forks source link

[Bug Report] UDP connection state cannot be maintained #513

Closed sumire88 closed 1 week ago

sumire88 commented 1 month ago

Checks

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

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.

dae-prow[bot] commented 1 month ago

Thanks for opening this issue!