How to create my own proxies(using squid)

January 28, 2017 518 views
Getting Started FAQ VPN Ubuntu

Hi all. I want to learn how to create my own proxies to be used when making purchases.
I followed this guide: https://www.digitalocean.com/community/tutorials/how-to-install-squid-proxy-on-ubuntu-12-10-x64

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?

2 Answers


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
Have another answer? Share your knowledge.