Skip to content

willscott/onionproxy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Onion Proxy

This is a small go module acting as a relay between for TCP connections that should be forwarded to a listening Onion service on the Tor network.

It optionally speaks the PROXY protocol to forward client addresses to the backing service.

Configuration

An instance of the proxy is parameterized by the following options:

  • -l localhost:9999 Where the proxy listens.
  • -t=false Disable use of tor for backend socket resolution.
  • -r sixteencharacter.onion:80 Where the proxy forwards.
  • -s /var/run/tor/control Where the tor control channel is.
  • -c passwordauth The tor auth password, if using password auth.
  • -p include a PROXY header on forwarded streams.

Usage

Install onionproxy via the go command line:

go install github.com/willscott/onionproxy

Then add it as a daemon in your startup script, run it locally, or otherwise invoke it.

onionproxy -l 0.0.0.0:80 -r sixteencharacter.onion:80 &
onionproxy -l 0.0.0.0:25 -r sixteencharacter.onion:25 -p &

About

A proxy for allowing a public IP address to host a service actually provided by a hidden backend.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages