Releases: toxyy/wsl_portproxy
Releases · toxyy/wsl_portproxy
v1.0.0
Initial release.
Usage
$ ./wsl_portproxy.sh -h
Usage: wsl_portproxy [-a <addr>] [-p <port1,port2...>]
eg: wsl_portproxy -p 80,8080,443
eg: wsl_portproxy -a 172.12.34.56 -p 80
eg: wsl_portproxy -a 172.12.34.56
eg: wsl_portproxy
-a IP to portproxy windows to.
The default ip used is the local WSL2 ip outputted by:
$ ip -4 -j route | grep -o '"prefsrc":"[^"]*' | grep -o '[^"]*$'
-p Port(s) to portproxy with
Default ports: 80, 443
** with no opts, default usage will automatically open the local wsl_ip on ports 80 and 443
$ ./wsl_portproxy.sh
Windows portproxy started on 0.0.0.0:80 to 172.12.34.56:80
Windows portproxy started on 0.0.0.0:443 to 172.12.34.56:443