vscode+remote ssh远程端口8009转发到本地127.0.0.1:8009,只能本机localhost访问,内网/外网均无法访问,
直接再将本地0.0.0.0:8008转发到127.0.0.1:8009,这样内网/外网可以通过访问0.0.0.0:8008->127.0.0.1:8009->远程8009,达到二次转发!
# 转发0.0.0.0:8008到127.0.0.1:8009
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8008 connectaddress=127.0.0.1 connectport=8009
查看本地转发规则
netsh interface portproxy show all
dump
netsh interface portproxy dump
删除
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8008