Anonymize TCP traffic on Debian with Tor

Tor is free software for enabling anonymous communication.Tor directs Internet traffic through a free, worldwide, volunteer network consisting of more than seven thousand relays to conceal a user’s location and usage from anyone conducting network surveillance or traffic analysis.

Here is the OS used :

Install TOR directly from the packages :

And stop the service to configure it :

Edit the configuration file as follow :

Use Tor’s DNSPort on the loopback interface :

Then you can start the service :

Before starting iptables configuration, we need to know the user id that Tor runs as :

Then we can create our iptables script :

And add the following :

Note : It’s important to change the _tor_uid=”106″ to the value found earlier !

Make it executable:

And run it :

A quick check :

And check for the title line :

Note, to stop using TOR :

Leave a Reply

Your email address will not be published. Required fields are marked *