Anonymous browsing with tor and privoxy for linux

Someone asked me this morning about browsing the web and masking the IP of the origin. The most effective way to do this is with tor and privoxy. These are my notes on setting this up with a debian or ubuntu linux desktop.

Step 1 Get the applications.
apt-get install tor privoxy

Step 2 Configure privoxy to use tor.
echo "forward-socks4a / localhost:9050 ." >> /etc/privoxy/config
/etc/init.d/privoxy restart

Step 3 Configure your browser to use the proxy.

At this point you should have a tor enabled socks4 proxy server running on localhost port 8118. Configure your browser to use the proxy in it’s preferences.

If your using Firefox I would suggest getting the SwitchProxy extension and using it to manage the different proxies you have access to. If you don’t have any other proxies to manage then I would recommend the Tor Button extension instead, its very simple.

Step 4 Test

Visit whatismyip.com or similar and confirm the IP result is not your own.

done.

I soon will be forced to do this in windows as well, I will post my results.

4 thoughts on “Anonymous browsing with tor and privoxy for linux

  1. thank you I was reading something that this applies to last night. Seems like a good way to keep yourself protected & hidden.

  2. Hey i’m having a little trouble reading step two. what do the >> mean and am I supposed to put something different in the quotes? Permission denied even in sudo :-C

  3. echo “forward-socks4a / localhost:9050 .” >> /etc/privoxy/config
    should be ONE LINE the code here is wrapping on my screen… and yes you need root to do it.

  4. btw: be careful when you apt-get upgrade! make sure your /etc/privoxy/config does not get overwritten! if it does your not using tor anymore and will need to add the forward-socks4a line again.

Leave a Reply

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