Skip to content

wsl 2.0.0 proxy bug in networkingMode = mirrored network #10517

Closed

Description

@Morrigan-Ship

Windows Version

10.0.25931.1000

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.123.1-1

Distro Version

ubuntu kali

Other Software

No response

Repro Steps

nothing

Expected Behavior

if i enable vpn on windows wsl network will use windows vpn
but if enable proxy on windows you need to restart wsl to use proxy

Actual Behavior

if i enable vpn on windows wsl network will use windows vpn
but if enable proxy on windows you need to restart wsl to use proxy

Diagnostic Logs

No response

Activity

  1. craigloewen-msft commented on Oct 10, 2023

    @craigloewen-msft
    Member

    Are you using the new experimental networking features? Can you please share the content of your .wslconfig file?

    And is the bug that you're seeing here that you need to restart WSL for the proxy to take effect?

  2. keith-horton commented on Oct 13, 2023

    @keith-horton
    Member

    Hi there.
    It's possible with some VPNs that the time for Windows to resolve possible proxy servers takes too long - so we startup the WSL container before we know what proxy configurations exist in Windows. Once Windows resolves the proxy server information, if we have already started the WSL container, we will prompt to restart the WSL container.

    Once you restart the WSL container, we should correctly set the proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions