Anonymous Squid Proxy with Authentication Installer
#21
(2016-03-28, 11:20:26 pm)underd0g Wrote: Is it possible to use a sql database to store user authentication?
because it will be a pain if I had to type thousands user auth manually.
Or there is a good squid proxy management tool?

The users are all stored in the squid 3 directory in the file called "passwd". You can edit this password with htpasswd.

If you move/reinstall and similar simply backup this file, use SPI and override the file after SPI was installed successfully and you will have all your users back.

Please read https://github.com/hidden-refuge/spi/wik...management
#22
(2016-03-29, 2:49:04 am)1Hidden Refuge Wrote: The users are all stored in the squid 3 directory in the file called "passwd". You can edit this password with htpasswd.

If you move/reinstall and similar simply backup this file, use SPI and override the file after SPI was installed successfully and you will have all your users back.

Please read https://github.com/hidden-refuge/spi/wik...management

Ahh thanks, it can be handy if I've added the users in passwd file. But in my case, I have around 100 users to add in Squid proxy.
Let's assume I have 100 username and random password in users.txt file. Is there any easy solution to add all user in one go?
I'm thinking to use bash script, but don't know if it's possible or not.  Whatsgoingon
Thanks to [Image: jlmGM4y.png] & [Image: logo.png] for great VPS 1 Wink
My blog hosted on VPS 1: Gunnaro (Indonesian) | Sorry for my bad English Speechless
#23
(2016-03-30, 11:23:05 pm)underd0g Wrote: Let's assume I have 100 username and random password in users.txt file. Is there any easy solution to add all user in one go?
I'm thinking to use bash script, but don't know if it's possible or not.  Whatsgoingon

Yes, you can build a shell script that will read username and password from a file and add the users via htpasswd to the passwd file.

You can read passwords from stdin without verification which is exactly what is needed for scripts. The flag for that is "-i". Or you can use the batch mode with the "-b" flag which will read the password from command line (see https://httpd.apache.org/docs/current/pr...asswd.html for explanations and some examples).
#24
(2016-03-30, 11:42:37 pm)Hidden Refuge Wrote: Yes, you can build a shell script that will read username and password from a file and add the users via htpasswd to the passwd file.

You can read passwords from stdin without verification which is exactly what is needed for scripts. The flag for that is "-i". Or you can use the batch mode with the "-b" flag which will read the password from command line (see https://httpd.apache.org/docs/current/pr...asswd.html for explanations and some examples).

Ahh thanks for the explanation.
But unfortunately it took times for me to create a working shell script and in the end my friend type the user manually. lol
Thanks to [Image: jlmGM4y.png] & [Image: logo.png] for great VPS 1 Wink
My blog hosted on VPS 1: Gunnaro (Indonesian) | Sorry for my bad English Speechless
#25
is it possible for us to run it on all vps that shared on freevps? afaik, it is not allowed to run it. am i right? Smile
Devil Provided by Hostigation and NodeBlade through FreeVPS Devil
In the Beginning... Was the Command Line
#26
(2016-06-02, 2:57:52 am)Desperado Wrote: afaik, it is not allowed to run it. am i right? Smile

Only open/public proxies and VPNs are not allowed. You can setup a proxy for yourself with username and password authentication like this one.

The reason for this script and tutorial to exists is exactly this reason: private proxies are allowed.
#27
How would I go about removing this after completely installing it?
[Image: show_img.php?userid=8551&vpscount=2]
#28
@Translucent

What do you want to remove? The installer file is removed after installation automatically if you ran the full command from post 1 on page 1.

Do you want to remove the installed proxy? Use your package manager to remove Squid 3.x (package name varies based on used OS) and then delete leftovers from /etc/squid or /etc/squid3 (path depends on used OS - you can see into the installer code to find the correct path).
#29
A network at a remote location is equipped with IPv4 only and in need of a ipv6 address to resolve ipv6 only websites.
I would like to give computers at this location access to the ipv6 address on my vps by connecting to the squid proxy.
Does this work out of the box using this installer?
#30
@thecelestial1

The last time I did this it worked and since I've not changed anything on the configuration it should still work.




Users browsing this thread: 1 Guest(s)

Switch to mobile version

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


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo