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

84 lines
1.9 KiB
Markdown
Raw Normal View History

2015-06-18 10:43:03 +00:00
tor
===
2015-09-28 05:30:31 +00:00
![](https://badge.imagelayers.io/vimagick/tor:latest.svg)
2015-06-18 10:43:03 +00:00
[`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
2015-09-28 07:33:24 +00:00
ServerTransportPlugin:
- [x] fte
- [x] obfs3
- [x] obfs4
2015-06-18 10:43:03 +00:00
## docker-compose.yml
```
tor:
image: vimagick/tor
ports:
- "9001:9001"
2015-09-28 07:41:16 +00:00
# volumes:
# - ./torrc:/etc/tor/torrc
2015-06-18 10:43:03 +00:00
restart: always
```
2015-09-28 07:41:16 +00:00
> Uncomment `volumes` section to use customized torrc.
2015-06-18 12:30:05 +00:00
## torrc (server)
2015-06-18 10:43:03 +00:00
```
2015-06-18 12:30:05 +00:00
SocksPort 0
2015-06-18 10:43:03 +00:00
ORPort 9001
BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
2015-06-18 12:30:05 +00:00
ContactInfo noreply@datageek.info
2015-09-28 07:33:24 +00:00
#ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
2015-06-18 12:30:05 +00:00
```
## torrc (client)
```
#Socks5Proxy 127.0.0.1:1080
UseBridges 1
2015-09-28 07:33:24 +00:00
#Bridge fte 104.238.161.174:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
#Bridge obfs3 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
Bridge obfs4 1.2.3.4:9001 F24BF4DE74649E205A8A3621C84F97FF623B2083
2015-06-18 10:43:03 +00:00
```
2015-06-18 12:30:05 +00:00
> Please connect via `Socks5Proxy` if you're blocked!
## server
2015-06-18 10:43:03 +00:00
```
$ docker-compose up -d
2015-06-18 12:30:05 +00:00
$ docker-compose logs
2015-09-28 07:33:24 +00:00
$ docker exec -it tor_tor_1 tor --quiet --list-fingerprint
2015-09-28 07:41:16 +00:00
datageek F24B F4DE 7464 9E20 5A8A 3621 C84F 97FF 623B 2083
2015-06-18 10:43:03 +00:00
```
2015-06-18 12:30:05 +00:00
## client
```
$ tor -f /etc/tor/torrc
2015-09-28 07:33:24 +00:00
$ curl -x socks5h://127.0.0.1:9050 ifconfig.ovh
2015-06-18 12:30:05 +00:00
```
2015-06-18 11:49:42 +00:00
2015-06-18 12:30:05 +00:00
## references
2015-06-18 11:49:42 +00:00
2015-06-18 12:30:05 +00:00
- https://www.torproject.org/projects/obfsproxy-debian-instructions.html.en
2015-09-28 07:33:24 +00:00
- https://fteproxy.org/help-server-with-tor
- https://github.com/Yawning/obfs4
2015-06-18 12:41:36 +00:00
[1]: https://www.torproject.org/