Install Squid Proxy Server
Proxy server allows hiding your IP address. You can find the Squid Proxy Installer script at
https://github.com/serverok/squid-proxy-installer
The script supports the following Operating systems
- Ubuntu 18.04, 20.04, 22.04
- Debian 8, 9, 10, 11
- CentOS 7, 8, 9
- AlmaLinux 8, 9
To install squid proxy server, run
1 2 |
wget https://raw.githubusercontent.com/serverok/squid-proxy-installer/master/squid3-install.sh -O squid3-install.sh sudo bash squid3-install.sh |
NOTE: You can remove “sudo” from the command line if you are logged in as user root.
If you are getting error “-bash: wget: command not found”, you need to install wget package with the command
For Debian/Ubuntu
1 |
apt-get install -y wget |
For AlmaLinux/CentOS
1 |
yum install -y wget |
After installing Squid Proxy Server, you may need to change the port. For instructions, see How to change Port of Squid Proxy Server
Create a Proxy User
To create a user in squid proxy, run
1 |
sudo squid-add-user |
To change the password for an existing user, just create the user again with a different password. This will update the existing user password.
Video Tutorial
How to install Squid Proxy Server in DigitalOcean Droplet (VPS).
https://rumble.com/vdswgv-install-squid-proxy-server-in-digitalocean-vps.html
https://odysee.com/squid-proxy-install:1
Configure Multiple IPs
If you have multiple IP addresses on the server, first make sure IPs are properly configured on your web server. If your secondary IPs are configured, you should be able to ping to these IPs and connect to the server using the IP address.
Once IPs are configured in the server and able to ping, you can run following commands
1 2 |
wget https://raw.githubusercontent.com/serverok/squid-proxy-installer/master/squid-conf-ip.sh sudo bash squid-conf-ip.sh |
Now you will be able to use all IP available in the server as a proxy server.
This won’t work if your IPs are behind NAT. You can verify this by running the command “ip a”, it should list all IP addresses.
Test Proxy Server with curl
1 |
curl -U PROXY_USER:PROXY_PW -x MY_PROXY_SERVER:PROXY_PORT http://ip.serverok.in |
Related Posts
pls enable https support
unable to do it with azure ubantu servers
You may need to open port in Azure portal.
can you please tell me how to do it