Restrict lightsquid reports access.
-
i;ve done the following to stop users from directly accessing lightsquid reports (which i believe should have the option to allow only admins authenticated to the web admin panel to start with).
I've created an .htaccess file as well as a .htpasswd file in the directory of /usr/local/www/lightsquid
.htaccess file:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /usr/local/www/lightsquid
Require valid-userOptions FollowSymLinks ExecCGI
DirectoryIndex index.cgi
and the .htpasswd file
admin:$apr1$bHlTYU/j$slUMioRAnDJSZxAgjGk2U0
now first question is:
is the above correct to force the browser to have to authenticate the user who tries to access lightsquid reports?
also, i've restart web configurator and it still doesnt work.please help
-
can anyone please help me with this ? this is sooo important for me.
i've noticed that lightsquid doesn't have its own httpd server and thus relies on the same one pfsense uses to present the webconfiguration.
-
cylent,
There is a post on this forum with some lightsquid hacks to include pfsense auth, try to search it.
Are you testing sarg as well? If so, latest version 0.5 has no direct access to reports and a pfsense sarg gui permission option to restrict/allow users.
att,
Marcello Coutinho -
no not testing sarg. running on plain (2.0.1-RELEASE (i386) built on Mon Dec 12 17:53:52 EST 2011)
i've found another posting on the forum that suggests restricting the whole subnet from accessing the webgui port … although a workaround its still not a solution for lightsquid only.
i cant for the life of me understand why the example for .htaccess doesnt work?
-
still no joy on this.
anybody else wanna attempt at helping me, please?
-
I think you have to configure it on lighthttp.conf file instead of .htaccess
http://blog.lighttpd.net/articles/2005/11/25/simplify-your-configfiles-with-includes
http://redmine.lighttpd.net/projects/lighttpd/repository/entry/branches/lighttpd-1.4.x/doc/config/lighttpd.confIf it's not an old post, this may help too
http://forums.digitalpoint.com/showthread.php?t=2320797