Skip to content

Freedom outbound doesn't work properly when connection is UDP and address is a domain #4800

@patterniha

Description

@patterniha

during writing serverless-for-Iran-config I encountered this bug, and unfortunately, my work was delayed again.

Reproduction Method:

  1. open New-incognito-tab in chrome-android, and go to "cloudflare-quic.com"
  2. refresh the page until "HTTP/3" is shown, this show that "cloudflare-quic.com" and "quic" protocol is not block, and everything is working without VPN.
  3. import this config to v2rayNG and turn on the VPN
  4. refresh the page, the "HTTP/2" is shown, indicating that the UDP connection is down.
  5. even if you close chrome and open New-incognito-tab and go to "cloudflare-quic.com" again and refresh, "HTTP/2" is still shown, i try this procedure many times, but as long as the VPN is on, "HTTP/3" is not displayed.
  6. after turn off VPN (and close chrome and open new-incognito-tab) everything returns to normal and "HTTP/3" is displayed.

///

Tips:

  1. you should open incognito tab instead of normal tab, otherwise chrome-cache affects the results.
  2. if you replace fakedns with 1.1.1.1 and turn off sniffing, The problem will not occur: https://github.com/patterniha/bug-test/blob/main/NO-BUG-no-sniff.json
  3. or if you use "redirect": "188.114.98.0:0" (or other cloudflare-ip), the problem will not occur: https://github.com/patterniha/bug-test/blob/main/NO-BUG-redirect.json

Conclusion:

the Reproduction-Method and Tips2-3 indicates that something is wrong when connection is UDP and address is domain and outbound is freedom (probably something is wrong with freedom.go)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions