Why do we need another ad-blocking server for Raspberry Pi? This one uses Privoxy to act as a ” non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.”
Please follow these other tutorials in order:
- Install the OS onto your SD card
- Boot the Pi and configure it
Don’t forget to change the default password for the ‘pi’ acccount!!!
- Verify that you can reach the Internet through your Pi: Execute
to make sure that you can see the outside world.
Install Privoxy on your pi with the following command:
sudo apt-get install privoxy
Edit Privoxy configuration file as appropriate for your situation. I like to set the “hostname” and “enable-remote-toggle 1” settings since I run several servers at home and like to be able to toggle Privoxy on and off without logging into the server itself.
sudo vi /etc/privoxy/config
Search for “listen-address” and edit as appropriate. If you are using your Pi as a proxy for other computers, make sure that you change “localhost” to reflect the address of the interface that you want to listen on.
Restart the Privoxy service with the following command:
sudo service privoxy restart
Configure your web browser as appropriate to use the Privoxy server at the address you chose above, with the port 8118. Then, open a browser window and enter the address
config.privoxy.org to go to the proxy configuration page. Here is what my screen looks like:
You will notice that my server name is “onion-pi” (as I configured the “hostname” setting in the config file above) with the IP address of 192.168.1.113. The standard port for Privoxy to run on is 8118, though you can change that in the configuration file. I highly recommend reading through it at some point, and fine tuning your proxy to best suit your needs.
Once you have Privoxy running on your Raspberry Pi, the final step is to make it run at boot time. To do that, enter the following command:
sudo update-rc.d privoxy defaults
The final check is to reboot and make sure that Privoxy comes back up. You can do this by either going to the configuration web address
config.privoxy.org, the shortcut to that address
p.por by checking from the command line with
ps -ef|grep privoxy