8

I understand Tor tries to protect me by getting me a new IP address every 10 minutes. That, however, makes it hard to use websites where the session cookie is bound to the IP-address: Every 10 minutes I have to re-login.

Can I ask Tor to only change the IP-address every hour or day (assuming my exit node does not go down)?

I have tried adding this to /etc/tor/torrc:

MaxCircuitDirtiness 100000

which did not fix the problem. I am running Whonix.

Ole Tange
  • 341
  • 3
  • 14

1 Answers1

3

I admit that I've never done this, but looking through the man page I think you might find the TrackHostExits option useful:

This option is useful if you frequently connect to sites that will expire all your authentication cookies (i.e. log you out) if your IP address changes.

Alternatively the MapAddress option may do the trick.

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.example.com to exit via torserver (where torserver is the nickname of the server), use "MapAddress www.example.com www.example.com.torserver.exit".

This should allow you to always use the same exit node when visiting the website.