OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: maekar on May 08, 2017, 03:16:38 pm

Title: [SOLVED] Help Install Lightsquid
Post by: maekar on May 08, 2017, 03:16:38 pm
Hi, I need to install Lightsquid but all tutorials I find are for Apache and non-FreeBSD.

Anyone are using it? How can I do?
Title: Re: Help Install Lightsquid
Post by: fabian on May 08, 2017, 10:47:13 pm
lightsquid is just a package you can install via pkg. There is no plugin for that. If you would copy the output html somewhere under /usr/local/www it will be served by the internal web server but no authentication will be forced. be sure that it does not violate users privacy. As an alternative you can download the file via SSH and view it locally. Variant 3: setup a webserver and use it (lighttpd is already installed for the GUI, nginx is in the repository).
Title: Re: Help Install Lightsquid
Post by: franco on May 09, 2017, 06:50:28 am
Installing the package from the shell:

# pkg install lightsquid
Title: Re: Help Install Lightsquid
Post by: maekar on May 17, 2017, 03:13:56 pm
Hi, thanks for the replies, I got it. The steps for OPNSense are:

1) Install the package.

2) Go to /usr/local/etc/lightsquid/lightsquid.cfg and change the path of access.log to /var/log/squid/access.log

3) Run /usr/local/www/lightsquid/lightparser.pl, the first time with access.log.*.gz too:

/usr/local/www/lightsquid/lightparser.pl
/usr/local/www/lightsquid/lightparser.pl /var/log/squid/access.log.0.gz
/usr/local/www/lightsquid/lightparser.pl /var/log/squid/access.log.1.gz
...

4) Use crontab -e to program it (in no less than 10 minutes period).

5) Visit opnsense-IP/lightsquid/index.cgi



Title: Re: [SOLVED] Help Install Lightsquid
Post by: aynar on January 15, 2018, 12:24:27 pm
hi!
I have the same problem
even with the solution you proposed I still have this error

LigthSquid diagnostic.
Error : report folder '/usr/local/www/lightsquid/report' not contain any valid data! Please run lightparser.pl (and check 'report' folder content)
Please check config file !

can someone help me!!!