Anonymous Squid Proxy with Authentication Installer
Anonymous Squid Proxy with Authentication Installer

You may know my guide [CentOS/SL/Debian/Ubuntu] Anonymous Squid Proxy with Authentication very well by now. However I decided to make it even easier than it currently already is so everyone can easily setup a proxy with authentication. So this unified Squid proxy installer script was born (short form: spi). It does everything for you, automatically! All that you have to do is a simple step; specify a username and password for the first user account for the proxy to work. By the way it will also open the default port 3128 via iptables for you.

That's it! You have a fully anonymous Squid 3 proxy with user authentication installed on your server and ready for use. Just specify your servers IP, the default port (3128) and the username + the password you've set during the setup in the app where you want to use the proxy (e.g. Firefox proxy settings).

Supported OS:
  • RHEL 5 based 32/64 Bit [Tested & Working]
  • RHEL 6 based 32/64 Bit [Tested & Working]
  • RHEL 7 based 32/64 Bit [Tested & Working]
  • Debian 6, 7 & 8 32/64 Bit [Tested & Working]
  • Ubuntu 32/64 Bit [Tested & Working]
  • Fedora 32/64 Bit [Tested & Working]


RHEL 5 based Linux Distros

wget --no-check-certificate && chmod +x spi && ./spi -rhel5 && rm -rf spi

RHEL 6 based Linux Distros

wget --no-check-certificate && chmod +x spi && ./spi -rhel6 && rm -rf spi

RHEL 7 based Linux Distros

wget --no-check-certificate && chmod +x spi && ./spi -rhel7 && rm -rf spi

Debian 6/7

wget --no-check-certificate && chmod +x spi && ./spi -debian && rm -rf spi

Debain 8

wget --no-check-certificate && chmod +x spi && ./spi -jessie && rm -rf spi


wget --no-check-certificate && chmod +x spi && ./spi -ubuntu && rm -rf spi


wget --no-check-certificate && chmod +x spi && ./spi -fedora && rm -rf spi

Debian & Ubuntu 64 Bit require more than 256 MB of RAM for Squid to work properly even if less is used! If you have less than 4 GB RAM don't use Debian or Ubuntu 64 Bit versions anyway. Stay with the 32 Bit version.

Please report bugs in this topic. Feel free to discuss the installer here and also ask for help if you may need it. Suggestions are welcome, too.

Really appreciate your work. This makes my work more simple. For those who are buying Proxies its better to buy a low end vps and install own Smile
wow, this is great. configuring one of these manually is terrible, I always seem to screw something up even with a tutorial. Wish this existed back when my school blocked everything.
Thanks for the positive feedback guys!

1) RHEL 5 based version is currently in the testing brench (a release should be available soon)
2) Ubuntu was also moved to the testing brench (testing from 14.04 and above).
3) Debian 6,7 32 Bit version is live, 64 Bit version is problematic and I am working on a fix.
Nice! Good job, now I don't have to follow the whole other tut again. Though I still need to open port 3128, well it isn't hard to do that anyway.
Thank you Smile 
I've added the RHEL 5 version and updated all other versions to automatically open the default port 3128 via iptables.

Solved the problem with Debian 64 Bit that wasn't a problem. It simply needs more RAM than 256 MB on 64 Bit Debian OSs to work.

Ubuntu version is also available now Smile.
All Squid configuration files have been updated to include the following additional lines.

- cPanel SSL & non SSL ports added to safe list
- Feathur CP port added to safe list
- "prefer IPv4 DNS" added in order to fix a issue addressed by Erno on Subnetweb

Do you have more ports that aren't accessible while using the Squid proxy? Report them here and they'll be added to the safe list in all configurations. Report the port and what service is using it (e.g: Port: 3000, Service: OpenVZ Web Panel).
This is super cool, save me at-least 20 min. and done every config correctly within a minute.
    Thanks freevps for VPS 14
[Image: 2372943100.png]
that is a vry nice script which can be used even by vps noobs. appreciated the effort. and, if it is much not to ask, can you please modify your script to take input of desired ports in comma delimited values also (e.g 3128,80,8080)
[Image: 3447516826.png]
I'm not that extremely good in bash scripting. If you would tell me how I could properly split that "3128,80,8080" string into these three values 3128, 80 and 8080 to pass every single port to the firewall part as a variable I would probably do it. Otherwise it doesn't hurt to open the configuration afterwards, change the ports and restart Squid once again.

As far as I got it I have to split this string into a array for variables (dynamic array as you may like specify 3 or 30 ports) and then run the firewall rules in a loop until all ports have been added. That's my idea of how it could work after the string was cut into that variable array.

I don't have the time to do all the testing and mess around and research right now.

Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - HostMada - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost

BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo