https://github.com/willscott/onionproxy
A proxy for allowing a public IP address to host a service actually provided by a hidden backend.
https://github.com/willscott/onionproxy
Last synced: about 1 year ago
JSON representation
A proxy for allowing a public IP address to host a service actually provided by a hidden backend.
- Host: GitHub
- URL: https://github.com/willscott/onionproxy
- Owner: willscott
- License: gpl-3.0
- Created: 2016-07-01T02:50:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T16:03:25.000Z (almost 10 years ago)
- Last Synced: 2025-05-06T23:17:48.365Z (about 1 year ago)
- Language: Go
- Size: 17.6 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt)
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
go install github.com/willscott/onionproxy
```
Then add it as a daemon in your startup script, run it locally, or otherwise
invoke it.
```bash
onionproxy -l 0.0.0.0:80 -r sixteencharacter.onion:80 &
onionproxy -l 0.0.0.0:25 -r sixteencharacter.onion:25 -p &
```