n2proxy

command module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

n2proxy

n2proxy

n2proxy is a reverse proxy for detecting and filtering suspicious data including xss, SQL injection or any matchable pattern in a URL or HTTP post body.

Install

# download sample configuration file
wget https://raw.githubusercontent.com/txn2/n2proxy/master/cfg.yml

# install on mac
brew install txn2/tap/n2proxy

# upgrade
brew upgrade n2proxy

Use

# get the version
n2proxy --version

# get help
n2proxy --help

# environment variable override defaults
CFG=./cfg.yml PORT=9090 BACKEND=http://example.com:80 n2proxy

# command line options override environment variables
n2proxy --port=9091 --backend=http://example.com:80


# docker
docker run --rm -t -v "$(pwd)":/cfg/ -p 9092:9092 \
    txn2/n2proxy --port=9092 --cfg=/cfg/cfg.yml \
    --backend=http://example.com

Browse to http://localhost:9090

Development Notes

This project uses Go Releaser.

Generate a build without publishing it:

goreleaser --skip-publish --rm-dist --skip-validate

Generate Release:

GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

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