Privoxy

From Gentoo Wiki
Jump to:navigation Jump to:search
Warning
This page is a work in progress by Olafito18 (talk | contribs). Treat its contents with caution.
This article is a stub. You can help by expanding it.
Resources

Privoxy is a web proxy with advanced filtering capabilities for enhancing privacy. Privoxy can be paired with Squid to provide filtering to it.


Installation

USE flags

USE flags for net-proxy/privoxy A web proxy with advanced filtering capabilities for enhancing privacy

acl Add support for Access Control Lists
brotli Decompress brotli compressed data using app-arch/brotli before filtering
client-tags Enable support for client-specific tags
compression Allow privoxy to compress buffered content before sending to the client, if it supports it
editor Enable the web-based actions file editor
extended-host-patterns Enable and require PCRE syntax in host patterns. You must convert action files to PCRE, see privoxy-url-pattern-translator.pl (see tools USE flag). Use at your own risk!
extended-statistics Gather extended statistics
external-filters Allow to filter content with scripts and programs. Experimental
fast-redirects Support fast redirects
force Allow single-page disable (force load)
fuzz Exposes Privoxy internals to input from files or stdout. Intended for fuzzing testing
graceful-termination Allow to shutdown Privoxy through the webinterface
image-blocking Allows the +handle-as-image action, to send "blocked" images instead of HTML
ipv6 Add support for IP version 6
lfs Support large files (>2GB) on 32-bit systems
mbedtls Use net-libs/mbedtls for HTTPS filtering
openssl Use dev-libs/openssl for HTTPS filtering
png-images Use PNG format instead of GIF for built-in images
selinux !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
ssl HTTPS inspection support. Enables privoxy to perform SSL MITM filtering, see docs, use with care
stats Keep statistics
threads Add threads support for various packages. Usually pthreads
toggle Support temporary disable toggle via web interface
tools Install log parser, regression tester and user agent generator tools
whitelists Support trust files (white lists)
zlib Decompress zlib compressed data using sys-libs/zlib before filtering

Emerge

To install Privoxy:

root #emerge --ask net-proxy/privoxy

Boot service

OpenRC

To start privoxy:

root #/etc/init.d/privoxy start

To make privoxy start at boot:

root #rc-update add privoxy default

Configuration

Browsers need to set the proxy configuration to address 127.0.0.1 and port 8118 in the browser proxy configuration or in a proxy plugin (like foxyproxy). Privoxy default configuration block ads and further configuration should edit files in /etc/privoxy/.

Test filters

There is a way to test the filters that are applied to a specific site.

If privoxy is working correctly the next URL should be intercepted by privoxy

http://config.privoxy.org/show-url-info

In this page it's possible to check why a page is filtered or what filters are applied to that site.