1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:53 +02:00
dockerfiles/tor/README.md

68 lines
1.3 KiB
Markdown
Raw Normal View History

2015-06-18 12:43:03 +02:00
tor
===
[`Tor`][1] 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
## docker-compose.yml
```
tor:
image: vimagick/tor
ports:
- "9001:9001"
volumes:
- ./torrc:/etc/tor/torrc
restart: always
```
2015-06-18 14:30:05 +02:00
## torrc (server)
2015-06-18 12:43:03 +02:00
```
2015-06-18 14:30:05 +02:00
SocksPort 0
2015-06-18 12:43:03 +02:00
ORPort 9001
BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
2015-06-18 14:30:05 +02:00
ContactInfo noreply@datageek.info
ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
```
## torrc (client)
```
#Socks5Proxy 127.0.0.1:1080
UseBridges 1
Bridge obfs3 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
2015-06-18 12:43:03 +02:00
```
2015-06-18 14:30:05 +02:00
> Please connect via `Socks5Proxy` if you're blocked!
## server
2015-06-18 12:43:03 +02:00
```
$ docker-compose up -d
2015-06-18 14:30:05 +02:00
$ docker-compose logs
2015-06-18 14:33:27 +02:00
$ docker exec tor_tor_1 cat /root/.tor/fingerprint
datageek F24BF4DE74649E205A8A3621C84F97FF623B2083
2015-06-18 12:43:03 +02:00
```
2015-06-18 14:30:05 +02:00
## client
```
$ tor -f /etc/tor/torrc
$ curl -x socks5h://127.0.0.1:9050 ifconfig.me
```
2015-06-18 13:49:42 +02:00
2015-06-18 14:30:05 +02:00
## references
2015-06-18 13:49:42 +02:00
2015-06-18 14:30:05 +02:00
- https://www.torproject.org/projects/obfsproxy-debian-instructions.html.en
2015-06-18 14:41:36 +02:00
[1]: https://www.torproject.org/