Here is a quick tutorial on how to setup secure and anonymous browsing with tor, privoxy and Debian linux. First install tor and privoxy:
Check a tor log file and see whether it started correctly. You should see something like:
1 2 3 4 5 6 7
You can also check privoxy logs for any suspicious errors /var/log/privoxy/logfile. Furthermore, confirm that privoxy is listening on port 8118 and tor on port 9050.
Why do we need both privoxy and tor? Both are standalone services. Privoxy is a proxy server with additional security features such as content filtering and advertisement blocker. Tor on the other hand will provide you with anonymity using onion routing techniques.
At this stage what we need to do is to make any requests from privoxy forwarded to tor on socks5 9050. To do that we need to uncomment a:
in /etc/privoxy/config the privoxi config file and restart privoxy:
Now, we are ready to configure our prowser to use a privoxy as a proxy server: Note: Although now you are anonymous to all destinations hosts you can improve you privacy by using personal DNS. What I mean is that if you for example use google’s 126.96.36.199 as a nameserver than all your DNS data are owned by google which means that google know exactly what websites you are visiting as they have all your DNS resolutions! This is just a thought to be considered !