Introduction: Setup Proxy Server Using Brainy Pi

About: First-year ECE undergrad || Learner || Hustler on the way to success

In the growing digital world, we spend most of our time on the internet and our important tasks like banking transactions and etc on the internet but we take our privacy very lightly and do not take any actions for our privacy cybercrimes. So to ensure our digital privacy and avoid cybercrimes we all should use a proxy server or VPN.

The proxy server is a computer on the internet that accepts incoming requests from the client and forwards those requests to the destination server. It works as a gateway between the end-user and the internet. It has its own IP address. It separates the client system and web server from the global network.

There are a lot of benefits to setting up a proxy server. The website you access will not be able to log your real IP address, as it will log the proxy server’s IP address. You can use it as an ad blocker. The admin of the system can also control the user’s accessibility to specific websites that seem malicious. By doing this, the admin prevents the users to get into any trouble and ensures their security. You will also save yourself from being tracked.

lets us now see how we can setup our own proxy server.

Supplies

Brainy Pi

Ethernet / Wi-Fi

Step 1: Update System

Before installing any new package we should always update the existing packages.

1. To update use the command

sudo apt update 

2. To upgrade use the command

sudo apt upgrade

3. Now we can install the Proxy package by using the command.

sudo apt install privoxy


Step 2: Setting Up Proxy Server

Now that we have installed the Privoxy software, we can now go ahead and make some changes to its configuration to allow outside access to the proxy server.

1. We can do this by modifying the file. To modify the file use the command.

sudo nano /etc/privoxy/config

2. In this file, search for the following block of text.

Find

listen-address 127.0.0.1:8118
listen-address [::1]:8118

And replace this with.

listen-address :8118

Once done, save the file by pressing CTRL + X, followed by Y, then ENTER.

3. Now use the following command to restart the service

sudo systemctl restart privoxy


Step 3: Verifying Your Raspberry Pi Proxy Server Is Working

Before beginning this section, we highly recommend that you make sure your Raspberry Pi has a static local IP address.

1. To be able to make use of Privoxy you will need to change your web browser to make use of your Raspberry Pi’s proxy server.

The method for this differs from browser to browser, but below, we have some quick guides on where you can find the proxy settings for three different web browsers.

  • In Chrome:
  1. Open the “Settings” menu or go to “chrome://settings in the address bar.
  2. Scroll down to the bottom
  3. Click “Advanced” to open the advanced settings
  4. Scroll down until you see the “System” heading
  5. Click the “Open your computer's proxy settings” button.
  • In Firefox:
  1. Open up the Options menu or go to “about: preferences” in the address bar.
  2. Scroll down to the bottom.
  3. Click the “Settings...” button under the “Network Settings” heading.
  • In Internet Explorer:
  1. Go to Settings.
  2. Click the “Connections” tab.
  3. Click the”LAN settings button.
  4. Tick “Use a proxy server for your LAN“.

2. Once you have found the proxy configuration page for the web browser that you are using, you will need to enter the following details.

The IP Address you set should be the IP for your Raspberry Pi. You would have retrieved this in the previous section.

The port should be set to 8118 as this is the port Privoxy will be listening on.

3. Once you have configured your proxy settings to point to your Raspberry Pi, go ahead and go to the following address.

http://config.privoxy.org/

4. Now you are all set to use your private proxy server.