Sign inSign up

jearton1024/privoxy

By jearton1024

•Updated over 1 year ago

Convert socks5 proxy to http proxy.

Image
1

406

jearton1024/privoxy repository overview

⁠Docker image for privoxy

⁠Quick Start

docker pull jearton1024/privoxy

# The 'backend' network is the same with the network which socks5 proxy works in
docker run --name privoxy --network=backend -p 8118:8118 -d jearton1024/privoxy

⁠Validate

docker exec -it privoxy sh

curl --connect-timeout 3 -x http://127.0.0.1:8118 https://www.google.com

⁠Dockerfile

# syntax=docker/dockerfile:1
FROM alpine:3.18

LABEL maintainer="jearton1024 <[email protected]>"

RUN set -eu \
    # Replace software source
    && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
    && apk update \
    # Install Privoxy
    && apk add --no-cache privoxy curl

# Copy Privoxy configuration file
COPY config /etc/privoxy/config

# Expose Privoxy port
EXPOSE 8118

# Startup Privoxy
ENTRYPOINT [ "privoxy", "--no-daemon" ]
CMD [ "/etc/privoxy/config" ]

⁠config

# Default listen address and port
listen-address 0.0.0.0:8118
toggle 1
enable-remote-toggle 1
keep-alive-timeout 5
socket-timeout 60

# Proxy with socks5 traffic for all requests
forward-socks5 / ss-local:1086 .

⁠Contact me if any feedback

[email protected]⁠

Tag summary

Content type

Image

Digest

sha256:55503f8a4…

Size

7.4 MB

Last updated

over 1 year ago

docker pull jearton1024/privoxy