summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-30 14:10:22 -0500
committerNick Mathewson <nickm@torproject.org>2011-11-30 14:10:22 -0500
commit3b88b638264011158d27d5b451fd07d16f60e16b (patch)
tree3af8591550471211fd0ee0a20f9602c4d761a7ce /doc
parent60b41cd435c0acef274209a2a9b494b5f42964f6 (diff)
parente8d598c4acc55b655f2e49566bf8802d7d6524ba (diff)
downloadtor-3b88b638264011158d27d5b451fd07d16f60e16b.tar.gz
tor-3b88b638264011158d27d5b451fd07d16f60e16b.zip
Merge branch 'bug933_nm_rebased_v2'
Conflicts: src/test/test.c
Diffstat (limited to 'doc')
-rw-r--r--doc/tor.1.txt41
1 files changed, 37 insertions, 4 deletions
diff --git a/doc/tor.1.txt b/doc/tor.1.txt
index 53d614a8a6..4c65334187 100644
--- a/doc/tor.1.txt
+++ b/doc/tor.1.txt
@@ -691,11 +691,44 @@ The following options are useful only for clients (that is, if
5050, 5190, 5222, 5223, 6523, 6667, 6697, 8300)
**MapAddress** __address__ __newaddress__::
- When a request for address arrives to Tor, it will rewrite it to newaddress
+ When a request for address arrives to Tor, it will transform to newaddress
before processing it. For example, if you always want connections to
- www.indymedia.org to exit via __torserver__ (where __torserver__ is the
- nickname of the server), use "MapAddress www.indymedia.org
- www.indymedia.org.torserver.exit".
+ www.example.com to exit via __torserver__ (where __torserver__ is the
+ nickname of the server), use "MapAddress www.example.com
+ www.example.com.torserver.exit". If the value is prefixed with a
+ "\*.", matches an entire domain. For example, if you
+ always want connections to example.com and any if its subdomains
+ to exit via
+ __torserver__ (where __torserver__ is the nickname of the server), use
+ "MapAddress \*.example.com \*.example.com.torserver.exit". (Note the
+ leading "*." in each part of the directive.) You can also redirect all
+ subdomains of a domain to a single address. For example, "MapAddress
+ *.example.com www.example.com". +
+ +
+ NOTES:
+
+ 1. When evaluating MapAddress expressions Tor stops when it hits the most
+ recently added expression that matches the requested address. So if you
+ have the following in your torrc, www.torproject.org will map to 1.1.1.1:
+
+ MapAddress www.torproject.org 2.2.2.2
+ MapAddress www.torproject.org 1.1.1.1
+
+ 2. Tor evaluates the MapAddress configuration until it finds no matches. So
+ if you have the following in your torrc, www.torproject.org will map to
+ 2.2.2.2:
+
+ MapAddress 1.1.1.1 2.2.2.2
+ MapAddress www.torproject.org 1.1.1.1
+
+ 3. The following MapAddress expression is invalid (and will be
+ ignored) because you cannot map from a specific address to a wildcard
+ address:
+
+ MapAddress www.torproject.org *.torproject.org.torserver.exit
+
+ 4. Using a wildcard to match only part of a string (as in *ample.com) is
+ also invalid.
**NewCircuitPeriod** __NUM__::
Every NUM seconds consider whether to build a new circuit. (Default: 30