Wsl

自动启动

set ws=wscript.CreateObject("wscript.shell")
ws.run "wsl -d Debian", 0

端口转发

netsh interface portproxy  show all # 显示所有的转发

netsh interface portproxy add v4tov4 listenport=5432 listenaddress=0.0.0.0 connectport=5432 connectaddress=172.18.15.75 # 添加端口转发

netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8080 # 删除端口转发