1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
This commit is contained in:
kev 2015-09-28 15:41:16 +08:00
parent 6c079cb83a
commit 9a40659ce6
3 changed files with 10 additions and 8 deletions

View File

@ -7,8 +7,8 @@ MAINTAINER kev <noreply@datageek.info>
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& apk add -U build-base \
gmp-dev \
git \
gmp-dev \
go \
libgmpxx \
py-pip \
@ -22,12 +22,12 @@ RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositor
&& rm -rf /tmp/obfs4 \
&& apk del build-base \
git \
go \
gmp-dev \
go \
python-dev \
&& rm -rf /var/cache/apk/* \
&& mkdir -p /home/tor/.tor \
&& chown -R tor:nogroup /home/tor \
&& chown -R tor:nogroup /home/tor
COPY ./torrc /etc/tor/torrc

View File

@ -25,11 +25,13 @@ tor:
image: vimagick/tor
ports:
- "9001:9001"
volumes:
- ./torrc:/etc/tor/torrc
# volumes:
# - ./torrc:/etc/tor/torrc
restart: always
```
> Uncomment `volumes` section to use customized torrc.
## torrc (server)
```
@ -62,7 +64,7 @@ Bridge obfs4 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
$ docker-compose up -d
$ docker-compose logs
$ docker exec -it tor_tor_1 tor --quiet --list-fingerprint
datageek F24BF4DE74649E205A8A3621C84F97FF623B2083
datageek F24B F4DE 7464 9E20 5A8A 3621 C84F 97FF 623B 2083
```
## client

View File

@ -4,6 +4,6 @@ BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
ContactInfo noreply@datageek.info
ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
#ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy