firewall**booleantrue如果设置为 true,则 Windows 防火墙规则以及特定于 Hyper-V 流量的规则可以筛选 WSL 网络流量。 dnsTunneling**booleantrue更改将 DNS 请求从 WSL 代理到 Windows 的方式 autoProxy*booleantrue强制 WSL 使用 Windows 的 HTTP 代理信息 ...
ifup 开启某个网卡 禁用防火墙:systemctl disable firewalled.service 修改dns地址 vi /etc/resolv.conf 增加内容: nameserver 114.114.114.114 常用dns地址 重启网络 systemctl restart network ping测试 ping www.baidu.com 备注 系统-安装位置-警告,正在检查存储配置 手动分区不动,笔者是将swap写成了/swap 参考链接...
systemctl disable firewalld #查看是否关闭防火墙 systemctl status firewalld 1. 2. 3. 4. 5. 6. 6.启动docker systemctl start docker # 启动docker服务 systemctl stop docker # 停止docker服务 systemctl restart docker # 重启docker服务 1. 2. 3. 7.配置阿里云镜像加速 https://cr.console.aliyun....
例如,若要允许 WSL python 进程侦听任何端口,请使用提升的 Windows cmd:netsh.exe advfirewall firewall add rule name=wsl_python dir=in action=allow program="C:\users\<username>\appdata\local\packages\canonicalgrouplimited.ubuntuonwindows_79rhkp1fndgsc\localstate\rootfs\usr\bin\python2.7" enable=yes...
netsh advfirewall firewall add rule name=WSL2 dir=in action=allow protocol=TCP localport=2227 端口转发设置 我将使用windows的2227端口转发 wsl的2227端口 将端口转发到wsl,在Power Shell下执行命令,将[IP]和[PORT]替换为wsl的IP和端口。 netsh interface portproxy add v4tov4listenaddress=0.0.0.0 listen...
netsh advfirewall firewall add rule name=WSL2 dir=in action=allow protocol=TCP localport=2222 查看公网 IP http://www.net.cn/static/customercare/yourip.asp 好像并不需要 端口映射 管理员身份打开 CMD netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=2222 connectaddress=10.20...
I've discovered that the vEthernet adapter is treated as an "Unidentified Network", and so it gets the Public firewall access rules (which, unsurprisingly, includes blocking port 6000). If I disable the firewall entirely, I can connect to the X server just fine. This worked under WSL1, ...
Right-click on the "Windows Defender Firewall with advanced security on Local Computer" tab Select "Properties" Select the "Public Profile" tab on the new Window that opens Select "Customize" under the "Settings" section Check in the "Customize Settings for the Public Profile" window t...
You don't need to install or run CLion inside WSL. note You can also try to useRemote Developmentto configure WSL. Download and install a WSL distribution (for instance, Ubuntu) fromMicrosoft Store. For this step, be sure to use at least Windows 10 or later with the latest “Fall Creat...
The problem was that our firewall replaced the certificate. The certificate of the firewall was untrusted/unknown from within my wsl setup. I solved the problem by exporting the firewall certificate from the windows certmanager (certmgr.msc). The certificate was located at "Trusted Root ...