Squid Proxy Server with Webmin GUI on Ubuntu 18.04 is a full-featured web proxy cache server application which provides proxy and cache services for Hyper Text Transport Protocol (HTTP), File Transfer Protocol (FTP), and other popular network protocols.
This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.
The connection to Squid Proxy Server with Webmin GUI on Ubuntu 18.04 using Windows settings
- Launch VM through your Azure account. When starting the VM proxy server starts automatically.
- To use the proxy server through the built-in Windows tools, you must open the settings.
- In Settings select Network & Internet.
- Go to the “Proxy” section and set the “Use a proxy server” switch to On.
- In the Address field, enter the address of the VM, and in the Port field, specify 3128. Then click the Save button.
- 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.
- 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:
Proxy server configuration through the GUI Webmin
- To access the Webmin GUI, go to https://*vm_ip*:10000.
- When you go to the address, you will need to accept a self-signed certificate, for this, click the <Advanced> button and then <Proceed to*vm_ip*>
- The authorization page will open. Use the username and password that you specified when deploying the VM.
- To go to squid settings, click on “Servers” and select “Squid Proxy Server”.
- To create a new user, the data that must be entered when connecting to the proxy can be performed using “Proxy Authentication”.
- Click “Add a new proxy user” to add a new user. If you want to delete or change the old user, click on his name (in this case, “azuretest”).
- Enter the name and password for the new account and the <Create> button (password must not exceed 10 characters).
- To apply the changes, click the <Apply Changes> button (looks like an update button).
Managing users Squid Proxy Server using PuTTy
- In order to delete / add / change a user, you must connect to the VM console. Download and install PuTTy to do this.
- Run Putty and in the “Host Name” field, enter the address of the VM. Then click “Open” to connect.
- 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
Password must not exceed 10 characters
After running “delete” or “change password” command, you need to update squid configuration with the following command:
sudo squid3 -k reconfigure or sudo service squid restart