A portable shell script that forwards TCP or UDP traffic from a local port to a remote target. It auto-detects an available runtime and finds an open port automatically.
SSH-style shorthand:
curl -fL windpoly.run/tcp-proxy.sh | sh -s -- 8080:example.com:80Or with named options:
curl -fL windpoly.run/tcp-proxy.sh | sh -s -- --listen 8080 --target example.com:80--proto udp)LOCAL_PORT:HOST:REMOTE_PORT0.0.0.0 so you can access it from other devices on your networksh compatible — no bash requiredProxy local port 5432 to a remote PostgreSQL server:
curl -fL windpoly.run/tcp-proxy.sh | sh -s -- 5432:db.example.com:5432Forward UDP traffic on port 5000 to a DNS server:
curl -fL windpoly.run/tcp-proxy.sh | sh -s -- --listen 5000 --target 8.8.8.8:53 --proto udpThe script tries the following in order and uses the first one found:
| Runtime | Requirement | Command Used |
|---|---|---|
| socat | socat installed | socat TCP-LISTEN:... TCP:... |
| Docker | docker daemon | docker run alpine/socat |