Ubuntu: how to configure privoxy proxy to connect to the tor network for the entire system

Tor provides a SOCKS proxy by default. But when you try to use tor socks proxy as HTTP proxy you obtain this message: This is a SOCKS Proxy, Not An HTTP Proxy. To solve this we need an HTTP proxy as privoxy. Here we will configure the system proxy in order to allow all applications to use the tor network.

First install privoxy:

sudo apt-get install privoxy

Then edit the privoxy configuration:

sudo nano /etc/privoxy/config

Add a new line at the end of the file:

forward-socks5t / .

Save and restart privoxy service:

service privoxy restart

Edit ubuntu proxy configuration in this way:

Now you can use tor network from google chrome.