1
0
Fork 0
forward/README.md

30 lines
936 B
Markdown
Raw Permalink Normal View History

2018-03-01 20:24:15 +08:00
# forward
2018-03-28 21:47:34 +08:00
A simple TCP proxy. Currently used in [AppVenture](https://appventure.nushigh.edu.sg/)'s internal server to port forward from host to a Hyper-V VM.
2018-03-01 20:24:15 +08:00
## Usage
2018-03-28 21:47:34 +08:00
```bash
2018-03-01 20:24:15 +08:00
$ ./forward -help
Usage of ./forward:
-connect string
2019-09-04 15:16:02 +08:00
forward to address
2018-03-01 20:24:15 +08:00
-listen string
2019-09-04 15:16:02 +08:00
listen on address (default ":8000")
-ssh string
if set, will do basic introspection to forward SSH traffic to this address
2018-03-01 20:24:15 +08:00
```
2019-09-04 15:16:02 +08:00
### Usage with SSH
You can use `forward` to do multiplexing of SSH and HTTP in a quick and dirty way, using very simple protocol introspection. A more robust solution would be [sshttp](https://github.com/stealth/sshttp)
2018-03-28 21:47:34 +08:00
## Usage on Windows
`forward` is wrapped with [go-svc](https://github.com/judwhite/go-svc), enabling it to be run as a Windows service. To add with PowerShell:
```powershell
New-Service -BinaryPathName "C:\path\to\forward.exe -connect 192.168.0.10:80 -listen :80" -Name "port-forward-http"
```