Binary Life/뻘짓의산물
WSL SSH 를 이용한 SOCKS Proxy
로제마인
2024. 5. 23. 18:58
포트는 아래와 같이 사용한다고 가정.
항목 | 포트번호 |
Windows의 inbound 포트 | 8080 |
WSL 프록시 listening 포트 | 8080 |
WSL SSH 포트 | 22 |
Windows
PowerShell> netsh interface portproxy add v4tov4 listenport=8080 listenaddress='0.0.0.0' connectport=8080 connectaddress=<WSL Dist. IP>
WSL
$> ssh -f -N -v -D 0.0.0.0:8080 -p 22 <user>@<hostname>