How to give access to a user to view realtime of squid3
-
Hello everyone,
I have to allow a user to login to pfsense box and view only the reports generated by sarg and view RealTime tab of squid3 package.
My setup
pfsense 2.2.3 with squid, squidguard and sarg.
I have created a user manager under the group groupmanager. I have given following rights to it
webcfg-Packages: setting page
webcfg-Package: setting page
webcfg-Packages: edit pagewith these rights he is able to see these packages when he logs on to pfsense box as manager but the Realtime tab of squid3 and ViewReport tab of sarg is missing.
What other rights do I have to enable in UserManager so that he is able to view the reports.
I am ofcourse able to view reports when I login as admin.
Thank you
with regards,
Ashima -
There are no ACLs defined anywhere in any of these packages. Won't work unless you add such feature to packages (edit the PHP files, include /usr/local/www/guiconfig.inc and add the proper section there).
The ones you mentioned are for the package manager GUI itself, when you look e.g. at /usr/local/www/pkg_edit.php
##|+PRIV ##|*IDENT=page-package-edit ##|*NAME=Package: Edit page ##|*DESCR=Allow access to the 'Package: Edit' page. ##|*MATCH=pkg_edit.php* ##|-PRIV
P.S. No, there's absolutely no documentation for these ACLs. Don't ask me how to add it somewhere.
-
You can create a priv file in the folder: /etc/inc/priv
Here are a couple sample formats:
https://github.com/pfsense/pfsense-packages/blob/master/config/pfblockerng/pfblockerng.priv.inc
https://github.com/pfsense/pfsense-packages/blob/master/config/snort/snort.priv.inc
-
You can create a priv file in the folder: /etc/inc/priv
Here are a couple sample formats:
https://github.com/pfsense/pfsense-packages/blob/master/config/pfblockerng/pfblockerng.priv.inc
https://github.com/pfsense/pfsense-packages/blob/master/config/snort/snort.priv.inc
This looks good, guess I could do some mass pull request for the packages. This is now done for Squid3.
Regarding the OP: Sorry, but the ACL is all or nothing, seriously don't have time to do any granular permissions here. You can recycle the file (grab it here) to allow only what's needed for real time (likely just squid_monitor.php and squid_monitor_data.php).
-
I can't thank enough…. you guys are too prompt. Thanks to BBCan and doktornotor for the pointer.
This is what I did :- copied the file to /etc/inc/priv/squid3.priv.inc.
Gave access rights to webcfg:squid3 to user manager
It worked :)
A special thanks to doktornotor as he comes to rescue whenever I am struck.
with warm regards,
Ashima