go-proxy-example

command module
v0.0.0-...-e387b8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL