From 2745b432a129b4eb7ac64c0e4657303f3c4e7782 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 8 Jul 2020 00:54:00 -0700 Subject: [PATCH] adding tor docker stuff --- torsocks/Dockerfile | 15 +++++++++++++++ torsocks/torrc | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 torsocks/Dockerfile create mode 100644 torsocks/torrc diff --git a/torsocks/Dockerfile b/torsocks/Dockerfile new file mode 100644 index 0000000..d6df836 --- /dev/null +++ b/torsocks/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:19.10 + +RUN apt update && apt install tor -y + +RUN mkdir -p /run/tor \ + && chown -R debian-tor:debian-tor /run/tor \ + && chmod 700 -R /run/tor + +COPY torrc /etc/tor/torrc + +USER debian-tor + +EXPOSE 9050 + +ENTRYPOINT ["tor"] diff --git a/torsocks/torrc b/torsocks/torrc new file mode 100644 index 0000000..5e8f91b --- /dev/null +++ b/torsocks/torrc @@ -0,0 +1,14 @@ +BridgeRelay 1 +ControlSocket /run/tor/control +ControlSocketsGroupWritable 1 +CookieAuthentication 1 +CookieAuthFileGroupReadable 1 +CookieAuthFile /run/tor/control.authcookie +DataDirectory /var/lib/tor +ExitPolicy reject6 *:*, reject *:* +ExitRelay 0 +IPv6Exit 0 +Log notice stdout +ORPort 9001 +PublishServerDescriptor 0 +SOCKSPort 0.0.0.0:9050