Squid

Squid is a web cache and a proxy server application used speed up web browsing.

Emerge
Install :

OpenRC
To start squid on boot:

To start squid immediately:

SSL configuration
Make sure the  USE flag has been enabled. At the time of writing, Google Chrome, Chromium, and Firefox 30+ have support for SSL proxies. Unfortunately configuring them is not as straight forward as going into the options dialog of each respective browser.

Certificate generation
Generate a self-signed SSL certificate, or use a CA to sign the certificate so it is trusted by all clients.

Configure Squid
Edit Squid's config file located at, replacing the  line with:

Firefox
Set Firefox to manual proxy, and point it at.

Custom error page icons
CSS controls the Squid icon on error pages. To insert a custom icon simply replace the link URL in section #titles (as long as a 91x50 pixel image is used nothing else needs to be changed). To use a different size image make sure padding is .5 x height and padding left is exactly width of future image replacement.

Once modifications have been finished, restart the Squid service: