Guide – How To Start – Squid Proxy Server for Ubuntu Server 18.04 LTS

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator.

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

The connection to Squid Proxy Server for Ubuntu Server 18.04 LTS using Windows settings

  1. Launch VM through your Azure account. When starting the VM proxy server starts automatically.
  2. To use the proxy server through the built-in Windows tools, you must open the settings.

image3

  1. In Settings select Network & Internet.

image1

  1. Go to the “Proxy” section and set the “Use a proxy server” switch to On
  2. In the Address field, enter the address of the VM, and in the Port field, specify 3128. Then click the Save button.

image4

  1. To check the connection to the proxy server, open the https://www.myip.com/ website in any browser and check if your IP address has changed.
  2. When you connecting through the proxy server (for example, in the chrome browser), will be requested login and password for access. There is already one test user on the server which you can use to connect:

Login: azuretest

Password: 45cv78rt90

Managing users Squid Proxy Server using PuTTy

  1. In order to delete / add / change a user, you must connect to the VM console. Download and install PuTTy to do this.
  2. Run Putty and in the “Host Name” field, enter the address of the VM. Then click “Open” to connect.

image2

  1. In the opened console you will need to enter the login and password specified while you created VM.

Now you can use the following commands to manage users:

sudo htpasswd /etc/squid/.squid_users newusername – create a new user.

sudo htpasswd /etc/squid/.squid_users existusername – change password for existing user

sudo htpasswd -D /etc/squid/.squid_users existusername – delete existing user

After running “delete” or “change password” command, you need to update squid configuration with the following command:

sudo squid3 -k reconfigure

WordPress.com.

Up ↑

%d bloggers like this: