Skip to content

Releases: toxyy/wsl_portproxy

v1.0.0

09 Apr 19:10
0b13ac9
Compare
Choose a tag to compare

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