microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.18k stars 805 forks source link

autoProxy doesn't work with proxy requiring Kerberos / NTLM authentication #10804

Open AndreasAckermannTSystems opened 9 months ago

AndreasAckermannTSystems commented 9 months ago

Windows Version

Microsoft Windows [Version 10.0.22621.2428]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04

Other Software

Corporate proxy requiring Kerberos / NTLM authentication

Repro Steps

  1. Be inside a corporate network environment with a proxy that requires Kerberos / NTLM Authentication
  2. Configure WSL with the following .wslconfig:
    
    [wsl2]

networkingMode = mirrored firewall = true autoProxy = true

3. Run `apt-get update` or `curl` for any webpage

### Expected Behavior

Proxy is configured and authenticated with automatically, `apt-get update` and `curl` work out-of-the-box.

### Actual Behavior

`apt-get update` gives me errors like:

Err:1 http://security.ubuntu.com/ubuntu jammy-security InRelease 407 authenticationrequired [IP: 10.XXX.XXX.XXX 8080]


`curl`ing for any webpage, I receive a reply from the proxy containing the following headers and a message in the HTML page that I am not authenticated via Kerberos / NTLM:

< Proxy-Connection: Keep-Alive < Proxy-Authenticate: Negotiate < Proxy-Authenticate: NTLM



### Diagnostic Logs

_No response_
nvtienanh commented 9 months ago

Me too