11

It's clear, with special configs of this kind, anonymity will suffer. But if one is aware of that and willing to accept that...

How can one make Tor faster?

How can one use only fast relays? Will that actually help?

3
  • 5
    Why using Tor then? One could go use a random VPN or an open proxy, if not concerned about anonimity/privacy.
    – mrphs
    Commented Sep 30, 2013 at 15:37
  • It's in the middle. Safer than single hop (logging) VPN, free, not as safe as stock Tor.
    – adrelanos
    Commented Oct 2, 2013 at 16:16
  • I am using Tor for connecting to my devices through NATs/Firewalls, a very useful use case. VPNs and Proxyies are not free or not always online, also complicated to setup.
    – charles
    Commented May 7 at 20:55

1 Answer 1

8

Tor normally tends to prefer fast relays anyways, so I wouldn't worry about that. The following settings from the Tor Manual can speed things up a bit when tweaked:

ExcludeSingleHopRelays 0|1

This option controls whether circuits built by Tor will include relays with the AllowSingleHopExits flag set to true. If ExcludeSingleHopRelays is set to 0, these relays will be included. Note that these relays might be at higher risk of being seized or observed, so they are not normally included. Also note that relatively few clients turn off this option, so using these relays might make your client stand out. (Default: 1)

This will esentially allow you to use Tor like a normal 1-hop proxy, however, you will essentially lose all anonymity. To actually construct single hop circuits, you'll need to modify the source and rebuild. Check src/or/or.h and change the line:

#define DEFAULT_ROUTE_LEN 3

to:

#define DEFAULT_ROUTE_LEN 1

This is a terrible idea. Don't do it (though it sounds like this isn't what you were looking for anyways based on the comments).

You can also tweak the following settings and may be able to get some speed boost:

NewCircuitPeriod NUM

Every NUM seconds consider whether to build a new circuit. (Default: 30 seconds)

EnforceDistinctSubnets 0|1

If 1, Tor will not put two servers whose IP addresses are "too close" on the same circuit. Currently, two addresses are "too close" if they lie in the same /16 range. (Default: 1)

AllowDotExit 0|1

If enabled, we convert "www.google.com.foo.exit" addresses on the SocksPort/TransPort/NATDPort into "www.google.com" addresses that exit from the node "foo". Disabled by default since attacking websites and exit relays can use it to manipulate your path selection. (Default: 0)

AllowDotExits doesn't do anything by itself (except make you more vulnerable to lots of attacks), but it will allow you to select a fast exit and use it for sites that would suck down bandwidth and be rather slow.

OptimisticData 0|1|auto

When this option is set, and Tor is using an exit node that supports the feature, it will try optimistically to send data to the exit node without waiting for the exit node to report whether the connection succeeded. This can save a round-trip time for protocols like HTTP where the client talks first. If OptimisticData is set to auto, Tor will look at the UseOptimisticData parameter in the networkstatus. (Default: auto)

And many more. Note that messing with these settings is not recommended.

6
  • 1
    I don't think ExcludeSingleHopRelays does what you suggest it does. Also, users probably shouldn't mess with NewCircuitPeriod, nor am I quite sure why you think it would help. EnforceDistinctSubnets seems dangerous to suggest and probably doesn't help most of the time. AllowDotExit opens clients to all sorts of attacks, and it won't help performance. OptimisticData already defaults to 1 (via auto). Commented Oct 2, 2013 at 19:22
  • @PeterPalfrader Yes, most of these are unsafe, but that's what he was asking for. You're right, just setting ExcludeSingleHopRelays to false doesn't allow single hop's; I'll fix that. Thanks.
    – user5
    Commented Oct 2, 2013 at 20:12
  • There's a good discussion on why most of these answers are incorrect here: lists.torproject.org/pipermail/tor-talk/2013-August/029729.html
    – mttpgn
    Commented Oct 3, 2013 at 20:31
  • 1
    AllowDotExit has been removed: trac.torproject.org/projects/tor/ticket/23426
    – nopara73
    Commented Aug 5, 2018 at 8:00
  • 1
    ExcludeSingleHopRelays is also removed: blog.torproject.org/tor-0317-now-released
    – nopara73
    Commented Aug 5, 2018 at 8:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .