From adc36d72e85bd286a2a06463f05c654786f54db4 Mon Sep 17 00:00:00 2001 From: WaybackBot <200@anti.censorship> Date: Sat, 25 Jul 2020 13:02:48 +0800 Subject: [PATCH] Secure enhance for the Tor --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 82ce6e76..e7bca839 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,13 @@ RUN cd /tmp/wayback && make linux-amd64 && mv ./bin/wayback-linux-amd64 /wayback ############################ FROM alpine:3.12 -LABEL maintainer "WaybackBot " +LABEL maintainer "WaybackBot " COPY --from=builder /wayback /usr/local/bin RUN apk update && apk add ca-certificates tor RUN mv /etc/tor/torrc.sample /etc/tor/torrc +RUN echo 'ExcludeNodes {cn},{hk},{mo},{kp},{ir},{sy},{pk},{cu},{vn},{ru}' >> /etc/tor/torrc +RUN echo 'ExcludeExitNodes {cn},{hk},{mo},{sg},{th},{pk},{by},{ru},{ir},{vn},{ph},{my},{cu}' >> /etc/tor/torrc +RUN echo 'StrictNodes 1' >> /etc/tor/torrc USER tor WORKDIR /tmp