Spread the love

What is LightSquid?

Debian 9 Stretch : Proxy Server : Log Report : LightSquid : lateweb.info

LightSquid provides an easy and free method of monitoring internet usage on your network. LightSquid is a Squid log analyzer that runs on Linux. By parsing through the proxy access logs, the package is able to produce web-based reports that detail the URLs accessed by each user on the network.

This package works well for both small and large networks. The reports have some useful features that allow you to see bandwidth usage, URL access by date and time, and top site reports.

Since LightSquid runs directly on your Linux machine using the cron, it is both centralized and stealthy. Users on the network have no way of knowing their traffic is being logged and analyzed using this method.

Key features:

How to install and configure lightsquid?

root@prox:~# sudo apt -y install lightsquid libcgi-session-perl

root@prox:~# sudo vi /etc/lightsquid/lightsquid.cfg

# line 23: change the PATH to log file
$logpath ="/var/log/squid";
root@prox:~# vi /etc/apache2/conf-available/lightsquid.conf
<Location "/lightsquid/">
    # add CGI permission and network range you allow to access from
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    Require local
    Require ip 10.0.0.0/24

root@prox:~# a2enmod cgid 
Enabling module cgid.
To activate the new configuration, you need to run:
  systemctl restart apache2

root@prox:~# a2enconf lightsquid 
Enabling conf lightsquid.
To activate the new configuration, you need to run:
  systemctl reload apache2

root@prox:~# systemctl restart apache2
# generate reports
root@prox:~# /usr/share/lightsquid/lightparser.pl

# reports are generated daily by /etc/cron.d/lightsquid
Code language: Bash (bash)

Access to http://(hostname or IP address)/lightsquid/ with Web Browser on a Client Computer, then Squid Log Reports site is shown and it’s possible to Proxy statics.

Conclusion

In this article we installed and configured lightsquid log analyzer. If you know other good log analyzers for squid, please tell us in the comments bellow.

We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel or follow us on twiter.

Leave a Reply