Skip to content

rynbrd/go-proxy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example TCP proxy in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages