Opened 12 years ago

Last modified 7 years ago

#493 closed defect (Not a bug)

.exit TLD does not behave transparently

Reported by: Dodger Owned by:
Priority: Low Milestone:
Component: Core Tor/Tor Version: 0.1.2.16
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The .exit TLD does not work like the ExitNodes config option. Whatever it does, it does not simply ask a particular exit node to cleanly request a particular URL.

For example, http://en.wikipedia.org.bostonucompsci.exit/ returns a very different result than http://en.wikipedia.org/ with a "ExitNodes bostonucompsci" config. I can't say why, but try it. Don't go asking the Wikipedia folks what the difference is; they'll just flip out and start blocking all the newer nodes again.

I chose that exit node because it's running 0.1.2.17, but any node will give the same results, including those running 0.2.0.6-alpha. I'm running 0.1.2.17 on win2k.

[Automatically added by flyspray2trac: Operating System: Windows 2k/XP]

Child Tickets

Change History (6)

comment:1 Changed 12 years ago by nickm

This is a browser issue, not something Tor can help with.

When your browser connects to a URL, it adds a "Host: " header to the HTTP request, with the hostname you requested
as its value. So for the request you describe above, your browser includes "Host: en.wikipedia.org.bostonucompsci.exit"
in its headers. Websites use headers to tell which virtual host to serve. For example, en.wikipedia.org and
es.wikipedia.org are served from the same IP, so the only way Wikipedia's web server can tell which site to serve
is from the Host header.

The only way around this for Tor would be to re-write http headers. This isn't a good idea for Tor proper,
which never re-writes content. This might be something that could be hacked into Torbutton or Privoxy or Polipo,
however. Let's look into it.

comment:2 Changed 12 years ago by Dodger

Thank you, Nick! I get it now. Guess I'll stick with ExitNodes.

comment:3 Changed 12 years ago by nickm

Another trick you can do, if you want a specific exit node for a specific site, is to use the "MapAddress" option
in your torrc. If you say "MapAddress en.wikipedia.org en.wikipedia.org.foo.exit", tor will treat every request
for en.wikipedia.org as though it had bbeen a request for en.wikipedia.org.foo.exit.

comment:4 Changed 12 years ago by nickm

(Also, this probably can't get done in anything like torbutton or polipo: in addition to exiting the outgoing
requests, you'd probably need to edit the website in the response as well so that images and links got
similarly rewritten.)

comment:5 Changed 12 years ago by nickm

flyspray2trac: bug closed.

comment:6 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.