From bf1a7c81950ea01eb55e0fda2f08333ecaf49ebe Mon Sep 17 00:00:00 2001 From: Jeremy Andrews Date: Fri, 9 Jun 2017 13:20:40 +1200 Subject: [PATCH] Integrated tinyproxy to allow private trackers to see us browsing from the same ip address --- Dockerfile | 3 +++ openvpn/start.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index a28e7e88d..404869240 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN apt-get update \ && apt-get update \ && apt-get install -y transmission-cli transmission-common transmission-daemon \ && apt-get install -y openvpn curl rar unrar zip unzip wget \ + && apt-get install -y tinyproxy telnet\ && curl -sLO https://github.com/Yelp/dumb-init/releases/download/v1.0.1/dumb-init_1.0.1_amd64.deb \ && dpkg -i dumb-init_*.deb \ && rm -rf dumb-init_*.deb \ @@ -27,6 +28,7 @@ RUN apt-get update \ ADD openvpn/ /etc/openvpn/ ADD transmission/ /etc/transmission/ +ADD tinyproxy /opt/tinyproxy/ ENV OPENVPN_USERNAME=**None** \ OPENVPN_PASSWORD=**None** \ @@ -108,4 +110,5 @@ ENV OPENVPN_USERNAME=**None** \ # Expose port and run EXPOSE 9091 +EXPOSE 8888 CMD ["dumb-init", "/etc/openvpn/start.sh"] diff --git a/openvpn/start.sh b/openvpn/start.sh index f37159cdb..0c5812755 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -54,4 +54,7 @@ if [ -n "${LOCAL_NETWORK-}" ]; then fi fi +/opt/tinyproxy/run.sh ANY +/etc/init.d/tinyproxy start + exec openvpn $TRANSMISSION_CONTROL_OPTS $OPENVPN_OPTS --config "$OPENVPN_CONFIG"