Skip to content

Squid Proxy Installer with Username-Password Authentication

Notifications You must be signed in to change notification settings

Virmak/squid-proxy-installer

 
 

Repository files navigation

squid-proxy-installer

Forked version for centminmod.com LEMP stack support. You can view differences between original and forked here.

Squid Proxy Installer with Username-Password Authentication


The Squid Proxy Installer (short: SPI) is a fully automated shell script to install an anonymous HTTP proxy based on Squid 3 with a username and password authentication through NCSA Auth and htpasswd. It requires no other input than your desired username and password. The default configuration listens on the default TCP port 3128!

SPI was written for the most common server Linux operating systems:

  • CentOS 5/6/7
  • Debian 6/7/8/9
  • Ubuntu (most versions are supported)
  • Fedora (most versions are supported)
  • More OS on request
64 Bit versions of some operating systems require more than 256 MB RAM for Squid to work (this includes generally Debian and Ubuntu as a outcome of various tests in OpenVZ).


How to use:

Step 1: Download the script to your server via wget/curl:
wget https://raw.githubusercontent.com/hidden-refuge/squid-proxy-installer/master/spi

Step 2: Give the file execution permissions with chmod:
chmod +x spi

Step 3: Run one of the following commands according to your OS:

CentOS 5:
./spi -rhel5

CentOS 6:
./spi -rhel6

CentOS 7:
./spi -rhel7

Debian 6 or 7:
./spi -debian

Debian 8:
./spi -jessie

Debian 9:
./spi -stretch

Ubuntu:
./spi -ubuntu

Fedora:
./spi -fedora

Step 4: Remove the SPI file with rm:
rm -f spi


How to add more users:

You can easily add more users which are allowed to access your proxy with the command below:

Debain & Ubuntu:
htpasswd /etc/squid3/passwd username

CentOS/Fedora:
htpasswd /etc/squid/passwd username

Replace username with the actual username of the user you want to add.


For help with Squid and in order to change the configuration according to your needs please consult the Squid FAQ and the Squid wiki.

About

Squid Proxy Installer with Username-Password Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%