Coder Social home page Coder Social logo

squid-proxy-installer's Introduction

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
  • 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

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.

squid-proxy-installer's People

Contributors

centminmod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.