This tutorial assumes you can edit a text file, and can install software from the debian repositories. Out of habit I use sudo and nano and aptitude (respectively) for these tasks. You can of course use your prefered methods.
Lastly, it assumes you know how to change your browser and/or system wide proxy settings (please keep in mind that polipo doesn't handle ftp traffic, so if your debian apt sources.list has "http://ftp.", I would change it to "ftp://ftp." if you set this combination as a system wide proxy.)
Step 1:
Install the goodies
Code: Select all
sudo aptitude install privoxy polipo dnsmasq
a) Configure privoxy
Code: Select all
sudo nano /etc/privoxy/config
forward / localhost:8123
For tweaking privoxy to your liking, I recommend simply changing
enable-edit-actions 0
to
enable-edit-actions 1
Then in your browser (set the http proxy to localhost:8118), and type p.p or http://config.privoxy.org to reach the web interface.
From there you can make changes through the web interface. Simply change the 1 back to a 0 in the /etc/privoxy/config file when you are done.
You do not have to restart the process for settings to take effect. Just change the config and go.
b) Configure dnsmasq
Code: Select all
sudo nano /etc/dnsmasq.conf
listen-address=127.0.0.1
Restart the process so settings take effect
Code: Select all
sudo /etc/init.d/dnsmasq restart
Code: Select all
sudo nano /etc/polipo/config
cacheIsShared = false
Add:
dnsNameServer = 127.0.0.1
Code: Select all
sudo /etc/init.d/polipo stop
sudo /etc/init.d/polipo reload
sudo /etc/init.d/polipo start
Enjoy browsing. This is my first how to posted here. It basically covers the bare minimum. If you want to dig deeper, please visit these home pages.
Privoxy http://www.privoxy.org/
Polipo http://www.pps.jussieu.fr/~jch/software/polipo/
Dnsmasq http://www.thekelleys.org.uk/dnsmasq/doc.html