Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 777 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 777 Bytes

Example TCP Proxy

An example TCP proxy in Go. It listens on an address and proxies them to a single backend address.

Build

If you have your GOPATH variable and directory structure set up correctly: go get . go build

... and if not: go get github.com/BlueDragonX/go-log go build

Usage

You need to specify a -listen and -backend option. For example:

go-proxy-example -listen=0.0.0.0:80 -backend=10.1.1.2:80

This would proxy all local connections to port 80 to port 80 on the machine at 10.1.1.2.

License

Copyright (c) 2015 Ryan Bourgeois. Licensed under BSD-Modified. See the LICENSE file for a copy of the license.