1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00
dockerfiles/tor/README.md
2015-09-28 15:41:16 +08:00

1.9 KiB

tor

Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.

  • Tor prevents people from learning your location or browsing habits.
  • Tor is for web browsers, instant messaging clients, and more.
  • Tor is free and open source for Windows, Mac, Linux/Unix, and Android

ServerTransportPlugin:

  • fte
  • obfs3
  • obfs4

docker-compose.yml

tor:
  image: vimagick/tor
  ports:
    - "9001:9001"
# volumes:
#   - ./torrc:/etc/tor/torrc
  restart: always

Uncomment volumes section to use customized torrc.

torrc (server)

SocksPort 0
ORPort 9001
BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
ContactInfo noreply@datageek.info
#ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy

torrc (client)

#Socks5Proxy 127.0.0.1:1080
UseBridges 1
#Bridge fte 104.238.161.174:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
#Bridge obfs3 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
Bridge obfs4 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083

Please connect via Socks5Proxy if you're blocked!

server

$ docker-compose up -d
$ docker-compose logs
$ docker exec -it tor_tor_1 tor --quiet --list-fingerprint
datageek F24B F4DE 7464 9E20 5A8A 3621 C84F 97FF 623B 2083

client

$ tor -f /etc/tor/torrc
$ curl -x socks5h://127.0.0.1:9050 ifconfig.ovh

references