I needed an HTTP proxy for testing busalert today so my Raspberry Pi was temporarily turned into a proxy server. Here’s the steps I needed to follow to get it to work.
Install Squid
Edit Configuration
Open /etc/squid3/squid.conf
in an editor and uncomment the following lines to make Squid accept connections:
(You’ll have to change these if your local network isn’t 192.168.0.*)
Restart Squid
Configure clients
Change the proxy settings for the client machine to use an HTTP and HTTPS proxy at the IP address of your Raspberry Pi on port 3128.
Verifying the proxy is working
Use sudo tail -f /var/log/squid3/access.log
to view the access log for Squid and check that your requests on the client are being routed through the proxy.