You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ambrose Chua eefbd63e5a
Fix missing bypass and update README
4 years ago
vendor Add SSH connection option 4 years ago
.drone.yml Move when out and fix root of problem 4 years ago
.gitignore Initial commit 5 years ago
LICENSE Create LICENSE 5 years ago
README.md Fix missing bypass and update README 4 years ago
go.mod Add SSH connection option 4 years ago
go.sum Add SSH connection option 4 years ago
main.go Support Windows service with go-svc 5 years ago
server.go Fix missing bypass and update README 4 years ago

README.md

forward

A simple TCP proxy. Currently used in AppVenture's internal server to port forward from host to a Hyper-V VM.

Usage

$ ./forward -help
Usage of ./forward:
  -connect string
    	forward to address
  -listen string
    	listen on address (default ":8000")
  -ssh string
    	if set, will do basic introspection to forward SSH traffic to this address

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

Usage on Windows

forward is wrapped with go-svc, enabling it to be run as a Windows service. To add with PowerShell:

New-Service -BinaryPathName "C:\path\to\forward.exe -connect 192.168.0.10:80 -listen :80" -Name "port-forward-http"