Sign inSign up

arulrajnet/torprivoxy

By arulrajnet

Updated over 10 years ago

Debian Wheezy / Jessie TOR network with PRIVOXY proxy with controlport 9051. Just 180 MB only

Image
0

3.8K

arulrajnet/torprivoxy repository overview

torprivoxy

This container have TOR and Privoxy bundled together.

Github Repo https://github.com/arulrajnet/torprivoxy

How to Use

docker run -d \
-p 8118:8118 -p 9050:9050 -p 9051:9051 \
--name tor -i arulrajnet/torprivoxy:latest

Binding port 9050 and 9051 are optional. 9051 is the controlport of TOR Network. Using that you can forcefully regenerate the TOR ip. Read more about tor_ip_renew.py

Docker Tags

There are two flavor of container

TagBase ImageSize
latestdebian:wheezy180 MB
wheezydebian:wheezy180 MB
jessiedebian:jessie228.1 MB

This is the very lean image for TOR with Privoxy currently available in docker hub.

Verify

How to cross check are you getting ip from Tor or not.

Check your IP without TOR

curl http://curlmyip.com

Check with TOR

curl -v --socks5-hostname localhost:9050 http://curlmyip.com

Check with privoxy


export http_proxy=http://localhost:8118/
curl http://curlmyip.com
unset http_proxy

or

curl -x http://localhost:8118 -L http://curlmyip.com
Debug

If the above step is not success you have to verify the log files.

docker exec -it tor /bin/bash

All the log files in the /tmp folder of container.

To restart TOR and Provoxy


supervisionctl
supervisor> status
supervisor> restart tor
supervisor> restart privoxy

Global Proxy

You can set privoxy as a global proxy so that all your traffic goes via TOR

In Ubuntu

Open /etc/environment


http_proxy="http://127.0.0.1:8118"
https_proxy="http://127.0.0.1:8118"
ftp_proxy="http://127.0.0.1:8118"
HTTP_PROXY="http://127.0.0.1:8118"
HTTPS_PROXY="http://127.0.0.1:8118"
FTP_PROXY="http://127.0.0.1:8118"
_JAVA_OPTIONS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8118"

Add this at the EOF.

Then source /etc/environment

In CentOS

Create file /etc/profile.d/proxy.sh Then put the below content and save.


http_proxy="http://127.0.0.1:8118"
https_proxy="http://127.0.0.1:8118"
ftp_proxy="http://127.0.0.1:8118"
HTTP_PROXY="http://127.0.0.1:8118"
HTTPS_PROXY="http://127.0.0.1:8118"
FTP_PROXY="http://127.0.0.1:8118"
_JAVA_OPTIONS=$_JAVA_OPTIONS" -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8118"

export http_proxy https_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY _JAVA_OPTIONS

Then source /etc/profile.d/proxy.sh OR you can set the same in .bashrc or .bash_profile

Roadmap

  • Configurable Proxy Port and Control password from env

License

MIT License.

Author

Tag summary

Content type

Image

Digest

sha256:4dfb8b866

Size

71.1 MB

Last updated

over 10 years ago

docker pull arulrajnet/torprivoxy