WSL icon indicating copy to clipboard operation
WSL copied to clipboard

mirrored network auto proxy port connection failed

Open maohy915 opened this issue 9 months ago • 4 comments

Windows Version

10.0.26120.3671

WSL Version

WSL 版本: 2.5.6.0 内核版本: 6.6.84.1-1 WSLg 版本: 1.0.66 MSRDC 版本: 1.2.6074 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.26100.1-240331-1435.ge-release Windows: 10.0.26120.3671

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

6.6.84.1-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

  1. set networkingMode to mirrored in WSL Setings GUI
  2. other settings keep in default
  3. run clash verge rev (https://github.com/clash-verge-rev/clash-verge-rev) in windows
  4. proxy in windows 127.0.0.1:7897 (setted by clash verge rev)
  5. run wget in wsl, Connecting to 127.0.0.1:7897... failed: Connection timed out.

Expected Behavior

Connecting to 127.0.0.1:7897… connected. Proxy request sent, awaiting response… 200 OK (this do happened on my tablet machine)

Actual Behavior

Connecting to 127.0.0.1:7897... failed: Connection timed out.

Diagnostic Logs

https://1drv.ms/u/c/a3d9fc1d8ad8442e/ETdp4j3tRUdKoG2gKCG0ZpABsT673C9OYhKgiVu4FXmNSQ?e=XX5irw

maohy915 avatar Apr 10 '25 10:04 maohy915

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Apr 10 '25 10:04 github-actions[bot]

/question

maohy915 avatar Apr 10 '25 10:04 maohy915

Diagnostic information
Found '/question', adding tag 'question'

github-actions[bot] avatar Apr 10 '25 10:04 github-actions[bot]

Added: When I manually set the proxy server address in Windows (not host Windows IP, but another Windows address using Clash Verge Rev and enable the LAN connection), the WSL2 proxy works well.

maohy915 avatar Apr 10 '25 10:04 maohy915