Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting VPN failed when WSL with networkingMode=mirrored is running #10830

Open
1 of 2 tasks
kgh02017 opened this issue Nov 27, 2023 · 20 comments
Open
1 of 2 tasks

Starting VPN failed when WSL with networkingMode=mirrored is running #10830

kgh02017 opened this issue Nov 27, 2023 · 20 comments
Labels

Comments

@kgh02017
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.2715]

WSL Version

2.0.11.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. Run WSL with networkingMode=mirrored
  2. Try to run VPN

Expected Behavior

Starting VPN succeed with no error

Actual Behavior

Starting VPN failed and got RasClient error 651 in EventViewer

image

image

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ghost
Copy link

ghost commented Nov 28, 2023

/logs

@kgh02017
Copy link
Author

This is the logs.
WslLogs-2023-11-29_13-44-01.zip

@CatalinFetoiu
Copy link
Collaborator

@kgh02017 can you please collect logs for networking issues, using the instructions at link below? thanks
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

@kgh02017
Copy link
Author

kgh02017 commented Dec 7, 2023

@kgh02017 can you please collect logs for networking issues, using the instructions at link below? thanks https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

sure

WslNetworkingLogs-2023-12-07_11-23-29.zip

@CatalinFetoiu
Copy link
Collaborator

CatalinFetoiu commented Aug 23, 2024

thanks for adding the logs. sorry for the delay following up on this

we'll also need some VPN traces to be able to troubleshoot

could you please do the following steps to collect new logs?

  1. in admin cmd window, run: netsh trace start scenario=VpnClient provider={90BBBABB-255B-4FE3-A06F-685A15E93A4C} keywords=0xFFFFFFFFFFFF level=0xFF provider={E6DEC100-4E0F-4927-92BE-E69D7C15C821} keywords=0xFFFFFFFF level=0xFF provider={2588030C-920E-4AD5-ACBF-8AA2CD761DDB} keywords=0xFFFFFFFF level=0xFF per=yes report=dis maxsize=0 filemode=single corr=dis tracefile=nettrace.etl

  2. in admin powershell window, run: .\collect-networking-logs.ps1

  3. reproduce the issue

  4. stop collect-networking-logs.ps1

  5. in the admin cmd window, run: netsh trace stop

  6. collect and share nettrace.etl and the WslNetworkingLogs zip

@kgh02017
Copy link
Author

in admin cmd window, run: netsh trace start scenario=VpnClient provider={90BBBABB-255B-4FE3-A06F-685A15E93A4C} keywords=0xFFFFFFFFFFFF level=0xFF provider={E6DEC100-4E0F-4927-92BE-E69D7C15C821} keywords=0xFFFFFFFF level=0xFF provider={2588030C-920E-4AD5-ACBF-8AA2CD761DDB} keywords=0xFFFFFFFF level=0xFF per=yes report=dis maxsize=0 filemode=single corr=dis tracefile=nettrace.etl

When running the above commad, I got the following error message:

netsh.exe: The command parameter was already specified.

@CatalinFetoiu
Copy link
Collaborator

@kgh02017 thanks for following up
that's odd - are you running this in an admin cmd or in powershell?

@kgh02017
Copy link
Author

kgh02017 commented Sep 1, 2024

Powershell(admin)

image

@CatalinFetoiu
Copy link
Collaborator

@kgh02017 thanks. can you try the same command in an admin command prompt windows (not in powershell)? netsh has some subtle issues when ran in powershell

@kgh02017
Copy link
Author

kgh02017 commented Sep 3, 2024

I could finally get log and trace.

nettrace.zip
WslNetworkingLogs-2024-09-04_08-27-52.zip

Copy link

github-actions bot commented Sep 3, 2024

Failed to parse logs. Unexpected file: nettrace.etl
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Multiple log files found, using: https://github.com/user-attachments/files/16858746/nettrace.zip
Found no WSL traces in the logs

@CatalinFetoiu
Copy link
Collaborator

@kgh02017 thanks for sending the traces. Sorry, we need to collect some additional files to narrow down the error
can you please do the following in an admin command prompt?

netsh ras set tr * en

netsh trace start scenario=VpnClient provider={90BBBABB-255B-4FE3-A06F-685A15E93A4C} keywords=0xFFFFFFFFFFFF level=0xFF provider={E6DEC100-4E0F-4927-92BE-E69D7C15C821} keywords=0xFFFFFFFF level=0xFF provider={2588030C-920E-4AD5-ACBF-8AA2CD761DDB} keywords=0xFFFFFFFF level=0xFF per=yes report=dis maxsize=0 filemode=single corr=dis tracefile=nettrace.etl

netsh trace stop

netsh ras set tr * di

Collect and share all the files under C:\windows\tracing
Collect and share nettrace.etl

@kgh02017
Copy link
Author

kgh02017 commented Sep 4, 2024

Copy link

github-actions bot commented Sep 4, 2024

Diagnostic information
Multiple log files found, using: https://github.com/user-attachments/files/16881996/WslNetworkingLogs-2024-09-05_08-23-27.zip
.wslconfig found
Detected appx version: 2.0.11.0
optional-components.txt not found

@CatalinFetoiu
Copy link
Collaborator

@kgh02017 thanks - can you please also share the files in C:\Windows\tracing?
please make sure you also ran the "netsh ras set tr * en" and "netsh ras set tr * di" commands from my previous reply

@kgh02017
Copy link
Author

kgh02017 commented Sep 5, 2024

please make sure you also ran the "netsh ras set tr * en" and "netsh ras set tr * di" commands from my previous repl
I did.
tracing.zip

Copy link

github-actions bot commented Sep 5, 2024

No logs.etl found in the archive. Make sure that you ran collect-wsl-logs.ps1 as administrator and that the logs.etl file is in the archive.

Diagnostic information
appxpackage.txt not found
optional-components.txt not found
No logs.etl found in archive.
Error while parsing the logs. See action page for details

@kgh02017
Copy link
Author

kgh02017 commented Sep 12, 2024

CatalinFetoiu
Please remove needs-author-feedback tag and reopen this ticket

@CatalinFetoiu
Copy link
Collaborator

sorry, reopening this since we already have logs

@CatalinFetoiu CatalinFetoiu reopened this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants