Installing and Setting Up Squid Proxy Server on Debian 🌱

Installing Squid Proxy Server

  1. Log into the Linux device
  2. Run the following commands in terminal
    # update software repositories
    sudo apt update
    # install available updates
    sudo apt upgrade -y
    # install squid
    sudo apt install squid -y
    # enable the squid service to start on boot
    sudo systemctl enable squid
    # restart the squid service
    sudo systemctl restart squid
    # configure the proxy server sudo nano /etc/squid/squid.conf
  3. After completing any configuration changes, press CTRL+O, Enter, CTRL+X to write the changes to squid.conf
  4. Run the following command in terminal to restart the Squid service for changes to take effect
    sudo systemctl restart squid

Testing the Proxy Over HTTP

  1. Open a web browser and navigate to the settings
  2. The proxy settings with vary by browser, but for Brave on Windows click the search icon in the top right corner of the settings page
  3. Search for proxy
  4. Click on Open your computer's proxy settings
  5. Enable the Manual proxy setup option
  6. Enter the IP address running the Squid server and port 3128
  7. Click the Save button at the bottom of the page
  8. Back in the browser, navigate to any web page and the traffic will be routed through the proxy and any settings will be applied

Squid configuration documentation can be found at http://www.squid-cache.org/Doc/config/