commit d6726283b64856ac61b385eef5d78d3f20f82237 Author: zerostate Date: Tue Nov 11 00:44:08 2025 -0500 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3fcea9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM debian:trixie-slim + +RUN apt-get update && \ + apt-get install -y --no-install-recommends tor && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Single-step config with foreground mode pre-configured +RUN cat < /etc/tor/torrc +SocksPort 0.0.0.0:9050 +ControlPort 0 +ORPort 0 +DirPort 0 +TransPort 0 +DNSPort 0 +ExitPolicy reject *:* + +AvoidDiskWrites 1 +MaxCircuitDirtiness 600 +NewCircuitPeriod 1800 +DisableDebuggerAttachment 1 +ReducedConnectionPadding 0 +CircuitPadding 1 +ReducedCircuitPadding 0 +HardwareAccel 0 + +Log notice stdout +RunAsDaemon 0 +EOF + +USER debian-tor +CMD ["tor", "-f", "/etc/tor/torrc"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2a4e7b8 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +### Test connection: + +```bash +curl --socks5-hostname 127.0.0.1:9050 https://check.torproject.org/api/ip +``` \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..a147b0b --- /dev/null +++ b/compose.yml @@ -0,0 +1,12 @@ +services: + tor_dev: + image: git.shadowvault.eu/zerostate/tor-dev:latest + container_name: tor-dev + ports: + - "127.0.0.1:9050:9050" + security_opt: + - no-new-privileges:true + cap_drop: + - ALL + cap_add: + - NET_BIND_SERVICE