"> Route All Network Traffic Through the Tor (Linux Method) – Sirwan Veisi's Blog

Route All Network Traffic Through the Tor (Linux Method)

Tor:  is free and open-source software for enabling anonymous communication. The name is derived from an acronym for the original software project name “The Onion Router”. Tor directs Internet traffic through a free, worldwide, volunteer overlay network consisting of more than seven thousand relays to conceal a user’s location and usage from anyone conducting network surveillance or traffic analysis.Using Tor makes it more difficult to trace Internet activity to the user: this includes “visits to Web sites, online posts, instant messages, and other communication forms”. Tor’s intended use is to protect the personal privacy of its users, as well as their freedom and ability to conduct confidential communication by keeping their Internet activities from being monitored. Wikipedia

Privoxy: is a filtering proxy for the HTTP protocol, frequently used in combination with Tor. Privoxy is a web proxy with advanced filtering capabilities for protecting privacy, filtering web page content, managing cookies, controlling access, and removing ads, banners, pop-ups, etc. It supports both stand-alone systems and multi-user networks. ArchWiki


1. Open Terminal and Enter the following command:

apt-get install tor privoxy

2. Edit Privoxy configuration File:

nano /etc/privoxy/config

3. Add This Lines To The End Of Codes:

forward-socks5 / localhost:9050 .
forward-socks4 / localhost:9050 .
forward-socks4a / localhost:9050 .

Save Changes To File And Exit Editing Mode.

4. Fo Run Tor & Privoxy Services Enter the following command:

service tor start
service privoxy start

5. go to Network Proxy Setting and Config proxy service in Manual mode:

HTTP proxy: localhost:8118
SSL proxy: localhost:8118
SOCKS host: localhost:9050

OK, Done. now open terminal and Enter the following command to check your public ip:

curl ident.me
curl suip.biz/ip/

or Open This Links in Your Browser :


Don’t forget to check for leaks via DNS :


Add the service Tor and Privoxy at startup :

update-rc.d -f tor remove && update-rc.d -f tor defaults && update-rc.d -f privoxy remove && update-rc.d -f privoxy defaults && update-rc.d -f privoxy enable

Removing from startup :

update-rc.d -f tor remove && update-rc.d -f privoxy remove

Leave a reply:

Your email address will not be published.