go-proxy

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

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

Go to latest
Published: May 3, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

go-proxy

A lightweight proxy in golang

Usage

  1. go get github.com/adamdecaf/go-proxy
  2. cd $GOPATH/src/github.com/adamdecaf/go-proxy
  3. make build && go install

Then you can run go-proxy (or -p 8080 for some other port)

Blacklist

Included are outgoing hostname and incoming source address blacklists. You can configure them under proxy/blacklist.json.

Note You do need to setup this proxy behind a load balancer (typically nginx or haproxy) as it expects to read X-Forwarded-For or other remote address / request forwarding headers. You can disable this behaviour be removing the blocked sourceIPs in the blacklist json file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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