Skip to content

avpnusr/torprivoxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOR Privoxy Logo

TOR and Privoxy in docker container

This repository has multi architecture support and is regularly updated.
Container is built for amd64, arm64, armv7 and armv6.

The container is available with alpine base image ghcr.io/avpnusr/torprivoxy:latest
The container is also available with debian base image ghcr.io/avpnusr/torprivoxy:latest-debian

Important: Got rid of the old alpine version 3.12 - this could require action, if you use armhf architecture (Raspberry Pi i.e.) with older versions of docker. Please find information about this in the alpine wiki

Kudos to rdsubhas.
I used the tini and run based startup-scripts for services from his container.

Status from last build

TorPrivoxy Docker Build

Versions in the latest image

Healthcheck & Configs

The docker container has a working health-check built in.

To determine the correct function, it verifies access to the *.onion address from DuckDuckGo.

torrc-configuration:

I know the TOR-Project is in need for bridge relays, but considering, not every user from the container is familiar with the impacts, I decided to disable the bridge relay in the container by default.

SOCKSPort 0.0.0.0:9050
ExitPolicy reject *:*
BridgeRelay 0

privoxy-configuration:

listen-address 0.0.0.0:8118
forward-socks5t / localhost:9050 .

Start your container

On port [8118], the container offers a privoxy HTTP-Proxy forwarded to localhost:9050 SOCKS5

On port [9050], the container offers the TOR SOCKS5 proxy

docker compose

You can add multiple lines under "BRIDGE" environment variable, all bridges will be added to torrc file.

services:
    torprivoxy:
      container_name: torprivoxy
      environment:
        TZ: Europe/Berlin # customize to your own
        BRIDGE: |- 
          obfs4 <ip>:<port> <secret> cert=<cert> iat-mode=0
          obfs4 <ip>:<port> <secret> cert=<cert> iat-mode=0
      ports:
        - 8118:8118
        - 9050:9050
      image: ghcr.io/avpnusr/torprivoxy:latest

alpine version

docker run -d \
  -p 8118:8118 \
  -p 9050:9050 \
  --user=[UID:GID] \
  --name torprivoxy \
  --restart=unless-stopped ghcr.io/avpnusr/torprivoxy

debian version

docker run -d \
  -p 8118:8118 \
  -p 9050:9050 \
  --user=[UID:GID] \
  --name torprivoxy \
  --restart=unless-stopped ghcr.io/avpnusr/torprivoxy:latest-debian

About

Tor and Privoxy in docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages