Hello everyone,
This guide explains how to deploy a proxy server on Ubuntu 24.04 LTS using a VPS, from account registration to final service verification.
The setup is straightforward and suitable for testing or personal use.
First, create an account at Mikyhost:
Register here:
https://mikyhost.com/register.php
After logging in, purchase a VPS package:
New VPS order page:
https://mikyhost.com/new-vps?currency=3
Choose:
For Example, I will allow All TCP and UDP ports
But for security, you can open only important ports.
PuTTY is used to connect to your VPS via SSH.
MSI (‘Windows Installer’)
Download PUTTY => 64-bit x86
Download PUTTY => 64-bit Arm
Download PUTTY => 32-bit x86
Install it on your Windows computer.
Then we will create PEM File and PPK File via PuttyGEN.exe
Now we login to Server using Private KEY
Enable Root login
Switch to root
Edit file
- Search and change #PermitRootLogin prohibit-password to PermitRootLogin yes
- Search and Change #PasswordAuthentication no to PasswordAuthentication yes
Then Save by Pressing the button CTRL + X = Y + ENTER
- Change PasswordAuthentication no to PasswordAuthentication yes
Then Save by Pressing the button CTRL + X = Y + ENTER
Restart SSH
Create Password
Enter your password (it is not visible and enter it twice)
Once connected to the VPS, update the system and install Squid:
Check whether Squid is running:
FileZilla is used to upload and replace configuration files easily.
Downlaod FileZilla
Using FileZilla, upload and replace the file to:
/etc/squid/squid.conf
Go back to PuTTY and run:
Here we use port 3128
Enjoy...
This guide explains how to deploy a proxy server on Ubuntu 24.04 LTS using a VPS, from account registration to final service verification.
The setup is straightforward and suitable for testing or personal use.
Requirements
- Ubuntu 24.04 LTS VPS
- Internet connection
- Basic command-line knowledge
Register a VPS Account
First, create an account at Mikyhost:https://mikyhost.com/register.php
Purchase a New VPS
After logging in, purchase a VPS package:https://mikyhost.com/new-vps?currency=3
Choose:
- OS: Ubuntu 24.04 LTS
- Bandwidth & Location
For Example, I will allow All TCP and UDP ports
But for security, you can open only important ports.
Download PuTTY (SSH Client)
PuTTY is used to connect to your VPS via SSH.MSI (‘Windows Installer’)
Download PUTTY => 64-bit x86
Download PUTTY => 64-bit Arm
Download PUTTY => 32-bit x86
Install it on your Windows computer.
Then we will create PEM File and PPK File via PuttyGEN.exe
Now we login to Server using Private KEY
Enable Root login
Switch to root
Code:
sudo su
Code:
nano /etc/ssh/sshd_config
- Search and Change #PasswordAuthentication no to PasswordAuthentication yes
Then Save by Pressing the button CTRL + X = Y + ENTER
Code:
nano /etc/ssh/sshd_config.d/*
Then Save by Pressing the button CTRL + X = Y + ENTER
Restart SSH
Code:
sudo systemctl restart ssh
Create Password
Code:
passwd
Enter your password (it is not visible and enter it twice)
Install Squid Proxy
Once connected to the VPS, update the system and install Squid:
Code:
sudo apt install squid -y
Verify the Service Status
Check whether Squid is running:
Code:
sudo systemctl status squid
Download FileZilla (FTP/SFTP Client)
FileZilla is used to upload and replace configuration files easily.Downlaod FileZilla
Download and Replace squid.conf
Using FileZilla, upload and replace the file to:/etc/squid/squid.conf
Restart and Enable the Service
Go back to PuTTY and run:
Code:
sudo systemctl restart squid
Here we use port 3128
Enjoy...