From 6f9d11a6edb85238ce842b20974c0fef0c56c140 Mon Sep 17 00:00:00 2001 From: Simon Rusinov Date: Wed, 2 Aug 2023 21:42:46 +0500 Subject: [PATCH] Optionally build obfs4proxy in docker (#1032) --- Dockerfile | 7 +++++++ misc/tor/torrc | 3 +++ 2 files changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 09618ef..ceaada6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,10 +15,17 @@ RUN pip install --prefix /install --no-warn-script-location --no-cache-dir -r re FROM python:3.11.0a5-alpine RUN apk add --update --no-cache tor curl openrc libstdc++ +# git go //for obfs4proxy # libcurl4-openssl-dev RUN apk -U upgrade +# uncomment to build obfs4proxy +# RUN git clone https://gitlab.com/yawning/obfs4.git +# WORKDIR /obfs4 +# RUN go build -o obfs4proxy/obfs4proxy ./obfs4proxy +# RUN cp ./obfs4proxy/obfs4proxy /usr/bin/obfs4proxy + ARG DOCKER_USER=whoogle ARG DOCKER_USERID=927 ARG config_dir=/config diff --git a/misc/tor/torrc b/misc/tor/torrc index 468e652..30c6638 100644 --- a/misc/tor/torrc +++ b/misc/tor/torrc @@ -7,3 +7,6 @@ ExtORPortCookieAuthFileGroupReadable 1 CacheDirectoryGroupReadable 1 CookieAuthFile /var/lib/tor/control_auth_cookie Log debug-notice file /dev/null +# UseBridges 1 +# ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy +# Bridge obfs4 ip and so on