Install Squid proxies easily with my scripts!

Status
Not open for further replies.

fatboy

Elite Member
Joined
Aug 13, 2008
Messages
1,615
Reaction score
3,262
Ok - its been a few days of should I, shouldn't I and after tweaking the scripts a little I have decided to let these out for anyone to use. If you have a VPS or dedi server with several IP addresses, this script will set them all up to be used as elite proxies. I don't have problems with individuals using this for themselves, but if you are a business selling proxies and you use these scripts, please dig deep and buy me a beer. Saying that, I won't know so if you don't want to I won't be able to track you down - let your conscience be your guide ;)

So if you have a VPS with 5 IP addresses, within minutes you will have 5 authenticated elite proxies to use with only one command and giving a username and password to use for authentication.

However, I will warn you that these are in a beta stage and I will take no responsibility if your server gets broken. I have tested them on a few different VPSes and a few Linux distros and they all seem to work fine, well I now how about 15 proxies to play with so something worked :)

What you will need to have in place:
  • Root access to the VPS / dedi server
  • Wget installed
  • At least a single IP4 IP address on the box (IPv6 is not supported.)

You will also need to be running one of these Linux distros for the scripts to use. If there is enough take up I can probably try to add more distros to the scripts:
  • Debian 7 64 bit
  • Centos 7 64 bit
  • Centos 6 64 bit

All you need to do is run the command below, the script will then detect what distro you have and then grab the needed files for your specific distro.
No personal info is passed back to my servers apart from your IP address and what files you need.

To run the setup scripts log in via SSH and type:
Code:
cd /usr/src && wget http://autoim.net/squidmaker/install.sh && bash install.sh

If you have any problems, feel free to give me a shout but please remember my disclaimer above, I am not responsible for knackering anything!
My BASH scripting isn't my strongest point so if you look through the scripts don't bother trying to call me out, the scripts do what they should do, I am happy :)

Enjoy,
FB
 
Last edited:
Tried proxy and not working
Error: rpmdb open failed
No files to remove
No squid config file found, nothing to backup
Found 1 IPv4 addresses to use
Retrieving basic squid config and configuring IPs
mv: cannot move `centos-6-64-squid.conf' to `/etc/squid/squid.conf': No such file or directory
centos-6-64-install.sh: line 41: /etc/squid/tmpfile: No such file or directory
centos-6-64-install.sh: line 42: /etc/squid/tmpfile: No such file or directory
centos-6-64-install.sh: line 45: /etc/squid/tmpfile: No such file or directory
mv: cannot stat `/etc/squid/tmpfile': No such file or directory
Adding hajro to allowed users
htpasswd: cannot create file /etc/squid/squid_passwd
Restarting Squid
squid: unrecognized service
Install finished - you should now be able to connect to any of the IPs on port 3128
##########################################################################
# #
echo # If you have found this script useful, please feel free to donate to me
# PAYPAL: [email protected] -- BTC: 1AbGU2aJXsrycKEwJuWzze1sxiUwimm3qZ #
# #
##########################################################################
 
This is a new one on me that I didn't see when testing: "Error: rpmdb open failed"
Let me check that one out!


*EDIT* If you log into the VPS and run yum update, does it update or do you get an error?
 
This is a new one on me that I didn't see when testing: "Error: rpmdb open failed"
Let me check that one out!


*EDIT* If you log into the VPS and run yum update, does it update or do you get an error?

[root@hajroDroplet src]# yum update
rpmdb: Thread/process 2533/139738854078208 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:


Error: rpmdb open failed
[root@hajroDroplet src]#
I completed update, but still same as previous post.
 
Last edited:
Theres the problem then - seems something is broken on your VPS :)
The only installs I can see happening from the server logs are centos 6 64 bits ones, so I spun up a digital ocean droplet with centos 6/64 and its installed fine for me.
 
Theres the problem then - seems something is broken on your VPS :)
The only installs I can see happening from the server logs are centos 6 64 bits ones, so I spun up a digital ocean droplet with centos 6/64 and its installed fine for me.
Yeah I had to rebuild ddb and it works
Thanks


Installed:
squid.x86_64 7:3.1.10-29.el6


Dependency Installed:
libtool-ltdl.x86_64 0:2.2.6-15.5.el6


Updated:
httpd-tools.x86_64 0:2.2.15-39.el6.centos


Dependency Updated:
httpd.x86_64 0:2.2.15-39.el6.centos


Complete!
No files to remove
Backing up original squid config file
Found 1 IPv4 addresses to use
Retrieving basic squid config and configuring IPs
Adding hajro to allowed users
Adding password for user hajro
Restarting Squid
Stopping squid: [FAILED]
Starting squid: ...... [ OK ]
Install finished - you should now be able to connect to any of the IPs on port 3128
##########################################################################
# #
echo # If you have found this script useful, please feel free to donate to me
# PAYPAL: [email protected] -- BTC: 1AbGU2aJXsrycKEwJuWzze1sxiUwimm3qZ #
# #
##########################################################################
[root@hajroDroplet src]#
 
Cool glad that was sorted - I see your hostname includes Droplet so I am guessing you are using DO as well? Can I ask what location you were using to get the error in the first place.
 
Cool glad that was sorted - I see your hostname includes Droplet so I am guessing you are using DO as well? Can I ask what location you were using to get the error in the first place.
How you mean location? My server is New York 2 on DO.
 
How you mean location? My server is New York 2 on DO.

Thats what I was after thanks, will go spin one up in NY2 to see if it was a one off or they have template issues incase anyone gets the same problem.
 
Holy shit this saved my sanity! If I had anything on either of my accounts I'd drop a donation, sadly I spent/withdrew everything already.

What happens if you take your website down?
 
Holy shit this saved my sanity! If I had anything on either of my accounts I'd drop a donation, sadly I spent/withdrew everything already.

What happens if you take your website down?

If the site goes down nothing will happen to your proxies, you just won't be able to install more using the scripts.

Glad you found it useful though :)
 
Last edited:
If the site goes down nothing will happen to your proxies, you just won't be able to install more using the scripts.

Glad you found it useful though :)

I downloaded the .sh and .tar files for Centos 6 64 bit. will it work if I upload to my own server and then just change the URL in the .sh to point onto my own domain?
 
Yup - if you want all of the files for Debian then shout and I can make them available, just give credit if asked how you did it ;)
 
Yup - if you want all of the files for Debian then shout and I can make them available, just give credit if asked how you did it ;)

It's just for future-proofing this little gem. I have no intentions to make it look like I did it myself or sell or anything like that.
 
Hi @fatboy.
Do you still have the script uploaded somewhere? It seems like your website is no longer up. I just learned today how to make squid proxies on centOS 7 and i've been looking all over the web for a script or tutorial that can help me easily install multiple proxies on a VPS with additional IPs.

A PM would be appreciated, thank you!!
 
Status
Not open for further replies.
Back
Top