networkingMode:网络模式,可选值为NAT(默认)或mirrored(镜像模式),例如networkingMode=mirrored。 dnsTunneling:是否通过WSL代理DNS请求到Windows,例如dnsTunneling=true。 firewall:是否允许Windows防火墙规则过滤WSL网络流量,例如firewall=true。 autoProxy:是否强制WSL使用Windows的HTTP代理设置,例如autoProxy=true。 sparseVh...
wslconfig 配置 WSL2 使用 Window 的网络 在"C:\Users\xxx.wslconfig"中写入以下内容然后保存: [experimental]autoMemoryReclaim=gradual # 可以在 gradual 、dropcache 、disabled 之间选择networkingMode=mirroreddnsTunneling=truefirewall=trueautoProxy=truesparseVhd=true 端口自动转发 localhostForwarding=true 启用稀...
# Networking options # CONFIG_PACKET=y CONFIG_PACKET_DIAG=y CONFIG_UNIX=y CONFIG_UNIX_SCM=y CONFIG_AF_UNIX_OOB=y CONFIG_UNIX_DIAG=y # CONFIG_TLS is not set CONFIG_XFRM=y CONFIG_XFRM_ALGO=y CONFIG_XFRM_USER=y # CONFIG_XFRM_USER_COMPAT is not set # CONFIG_XFRM_...
networkingMode**stringNATIf the value ismirroredthen this turns on mirrored networking mode. Default or unrecognized strings result in NAT networking. firewall**booleantrueSetting this to true allows the Windows Firewall rules, as well as rules specific to Hyper-V traffic, to filter WSL network tr...
Add this to /etc/wsl.conf [boot] command = ip address flush dev eth0 Why? Because being unable to makenetworkingMode = bridgedwork, I resorted to this solution: wsl --shutdown open Hyper-V Manager / Virtual Switch Manager click on Virtual Switches / WSL ...
WSL cannot use proxy with networkingMode=mirrored (#10794), similarity score: 0.87 wsl 2.0.0 proxy bug in networkingMode = mirrored network (#10517), similarity score: 0.87 WSL2 http.Server not accessible from Windows11 [experimental] networkingMode=mirrored (#10785), similarity score: 0.82 No...
in the .wslconfig on WSL v2, I have the following configured: [experimental] networkingMode=mirrored I have an IPv6-only ethernet interface, but I don't see it show up as a mirrored link: duncanrj@tdinvwks012:~$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state...
hostAddressLoopback** bool false Only applicable when wsl2.networkingMode is set to mirrored. When set to True, will allow the Container to connect to the Host, or the Host to connect to the Container, by an IP address that's assigned to the Host. The 127.0.0.1 loopback address can ...
| dnsProxy | bool | true | Only applicable to networkingMode = NAT. Boolean to inform WSL to configure the DNS Server in Linux to the NAT on the host. Setting to false will mirror DNS servers from Windows to Linux. | | networkingMode** | string | NAT | If the value is `mirrored...
hostAddressLoopback** bool false Only applicable when experimental.networkingMode is set to mirrored. When set to True, will allow the Container to connect to the Host, or the Host to connect to the Container, by an IP address that's assigned to the Host. Note that the 127.0.0....