From 774ecfd79a87b0a22903969ecd773c87b6370e9d Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 21 May 2020 21:22:53 +0800 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a10a6b..a5f5f01 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The super easy way to setup a [Tor](https://www.torproject.org) [SOCKS5](https:/ 1. Setup the proxy server at the **first time** ```sh - $ docker run -d --restart=always --name tor-socks-proxy -p 127.0.0.1:9150:9150 peterdavehello/tor-socks-proxy:latest + $ docker run -d --restart=always --name tor-socks-proxy -p 127.0.0.1:9150:9150/tcp peterdavehello/tor-socks-proxy:latest ``` - With parameter `--restart=always` the container will always start on daemon startup, which means it'll automatically start after system reboot. @@ -27,6 +27,8 @@ The super easy way to setup a [Tor](https://www.torproject.org) [SOCKS5](https:/ - Change to first `9150` to any valid and free port you want, please note that port `9050`/`9150` may already taken if you are also running other Tor client, like TorBrowser. - Do not touch the second `9150` as it's the port inside the docker container unless you're going to change the port in Dockerfile. + If you want to expose Tor's DNS port, also add `-p 127.0.0.1:53:53/udp` in the command, see [DNS over Tor](#dns-over-tor) for more details. + If you already setup the instance before *(not the first time)* but it's in stopped state, you can just start it instead of creating a new one: ```sh @@ -48,7 +50,7 @@ The super easy way to setup a [Tor](https://www.torproject.org) [SOCKS5](https:/ 3. Configure your client to use it, target on `127.0.0.1` port `9150`(Or the other port you setup in step 1) - Take `curl` as an example, checkout what's your IP address via Tor network: + Take `curl` as an example, checkout what's your IP address via Tor network using one of the following IP checking services: ```sh $ curl --socks5-hostname 127.0.0.1:9150 https://ipinfo.tw/ip @@ -81,6 +83,18 @@ The super easy way to setup a [Tor](https://www.torproject.org) [SOCKS5](https:/ Just note that all the connections will be terminated and need to be reestablished. +## DNS over Tor + +If you publish the DNS port in the first step of [Usage](#usage) section, you can query DNS request over Tor + +This port only handles A, AAAA, and PTR requests, see details on [official manual](https://www.torproject.org/docs/tor-manual.html.en) + +Set the DNS server to `127.0.0.1` (Or another IP you set), use [macvk/dnsleaktest](https://github.com/macvk/dnsleaktest) or go to one of the following DNS leaking test websites to verify the result: + +- DNS leak test: +- IP Leak Tests: +- IP/DNS Detect: + ## Note **For the Tor project sustainability, I strongly encourage you to help [setup Tor bridge/exit nodes](https://trac.torproject.org/projects/tor/wiki/TorRelayGuide)([**script**](https://github.com/PeterDaveHello/ubuntu-tor-simply-setup)) and [donate](https://donate.torproject.org/) money to the Tor project *(Not this proxy project)* when you have the ability/capacity!**