Privoxy

From Amahi Wiki
Revision as of 15:36, 25 October 2009 by Berland (talk | contribs) (remove sudo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Privoxy is a web proxy program, frequently used in combination with Tor and Squid. It has filtering capabilities for protecting privacy, modifying web page data, managing cookies, controlling access, and selectively removing content such as ads, banners and pop-ups. It can be customized and has application for both stand-alone systems and multi-user networks. [from Wikipedia]

Installation on Amahi server

$ yum install privoxy 

Privoxy must be configured manually after yum-installation. Edit /etc/privoxy/config, the line with listen-address must be changed.

listen-address  127.0.0.1:8118

to

listen-address  192.168.1.50:8118

where 192.168.1.50 is your hda's IP address (the DNS name of your hda does not work).

In order to activate privoxy on your hda, write the following commands

$ chkconfig --add privoxy
$ chkconfig privoxy on

In order to start it immediately (not only after boot) issue

$ service privoxy start

Web browser configuration

Your web browser must be configured to use your hda as a web proxy. In Firefox/Opera/whatever preferences, make sure

hda:8118

is set as your proxy server.

Test server and configuraton

After installation, configuration of both server and web browser, test that everything went well by visiting the url

If everything is ok, privoxy will intercept this url and provide you with a web configuration panel.

TODO

  • Packaging as an Amahi-application that can be installed and controlled from Amahi-dashboard
  • Automatic configuration (listen-address)
  • Coupling with DHCP or DNS-server so that clients can get automatic proxy configuration (http://en.wikipedia.org/wiki/Wpad)