How to create my own proxies(using squid)

Hi all. I want to learn how to create my own proxies to be used when making purchases. I followed this guide:

I do not understand Step 3. I’ll be using the proxies on the server i deploy on DigitalOcean. Also how do i automate the steps so i dont have to type everything again for my remaining proxies?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there, just for those like myself whom are Googling for an answer to this;

Referring to:

It looks like the squid acl setup / config could be set like this:

acl myhost src
http_access allow myhost

Where is the client IP you want to allow

I want host ip

This comment has been deleted


So that we’re on the same page, you’re wanting to setup Squid as a proxy and connect to it from your local PC/Mac, correct?

If so, the step your referencing exists to setup an ACL, or Access Control List, which sets your local IP as the only IP that’s allowed to connect. The guide assumes you do not have a Static IP from your ISP and is recommending that you create an account with no-ip so that you have a more static address.

Most ISP’s don’t provide static IP addresses unless you’re a business client (I know Charter is that way where I am, as is Comcast), so to ensure that you’re able to connect to the proxy, you need to setup a static way of connecting.

If you don’t setup an account with no-ip, or a similar service, and your IP changes locally, you may not be able to connect to the proxy. If you don’t setup the ACL on Squid, then pretty much anyone could connect to and use it instead of just you.

As for automation, you can use a Bash script to automate most of the installation and setup and then upload that bash script to the server and run it, but you’d need to manually handle the no-ip part unless they have an API you can connect to that will allow you to pull down information.

A simple bash script to update & upgrade packages, then install squid, for example, could be as simple as:

#!/usr/bin/env bash

sudo apt-get update \
&& sudo apt-get -y upgrade \
&& sudo apt-get -y install squid