Sqstat

SqStat is a script that allows you to view the connections of active squid users through a web . It uses the cachemgr protocol , this is enabled within the proxy server , to obtain information from it.

Summary

[ hide ]

  • 1 Requirements
  • 2 Installation
    • 1 Configuration
  • 3 Sources

Requirements

  • PHP 4.1.0 or higher
  • Squid proxy server 2.6 or higher
  • Apache web server
  • Browser preferably Firefox or Iceweasel

Installation

Obviously have all the indicated requirements working, then download the script from: ‘

  • http://sourceforge.net/projects/sqstat
  • Unzip in the default path / var / www / html / sqstat or where it has been specified in apache, if there is a need to change it, just edit the configuration file /var/httpd/conf/httpd.conf in DocumentRoot “/ var / www / html”

Setting

To configure sqstat, copy and rename the config.inc.php.defaults file to config.inc.php, then edit the config.inc.php file and specify the ip of the squid proxy server plus the port.

  • $ use_js = true;
  • DEFINE (“SQSTAT_SHOWLEN”, 60);
  • $ squidhost [0] = “127.0.0.1”;
  • $ squidport [0] = 3128;
  • $ cachemgr_passwd [0] = “”;
  • $ resolveip [0] = false;
  • $ hosts_file [0] = “hosts”
  • $ group_by [0] = “host”;

The host line works for squid 2.6 or higher, a file called host will be created and in it the user’s ip plus the name is placed Ex:

  • 168.100.1 INFORMATICS
  • 168.100.2 ADDRESS
  • 168.100.3 RHUMANS

Then edit the squid.conf file and add or modify the following:

  • acl manager proto cache_object
  • acl webserver src 192.168.0.1/255.255.255.255
  • http_access allow manager webserver
  • http_access deny manager

The previous lines of squid come by default uncommented the acl of proto cache_object and its respective http_acces, for this reason it should not be written again, the squid proxy server will fail.

Then from any user on the network or from the administration pc, enter the address (or the one specified).

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment