Hi Folks
I need a big help Please I have hit a brick wall with this project. I have spent 10 hours googling and try difference access types but have failed to understand why the exception IP List does not execute.
Basically, the Exception IP file updates with the correct IP address and DNG restarts no errors, but if you visit the blocked website you have no access even if you are in the exception list.
These are the options I have triedsudo apt-get remove dansguardian --purge
reinstalledsudo apt-get install dansguardian
Edited nano /etc/dansguardian/dansguardian.conf
Restarted, added a domain to block via nano under sudo, restarted, domain blocked, edit the exception ip list
via nano under sudo, restarted website allow.
On clean install it works, but if I run my php scripts it creates the file perfectly, but DNG does execute it.
So I decided to add www-data to sudo group as the files are owned by root and then made a change using chown www-data:root /etc/dansguardian/lists/exceptioniplist
restart, website still blocked. everything else works fine so far.
So I purge again for 100 hundred time, this time I told the dansguardian.conf to pull from /var/www/lmce-admin/dansguardian/exceptioniplist. restarted still blocked.
So I cp -r /etc/dansguardian/lists/exceptioniplist /var/www/lmce-admin/dansguardian restarted and it worked.
It seems to be a permission error, if you cp the from /etc/ the permissions are copied across to the /var allowing the file to be execute.
I have even tried adding it to the sudoers
%sudo ALL=NOPASSWD: /etc/dansguardian/lists/*
%www-data ALL=(root) NOPASSWD: /etc/dansguardian/lists/*
Still no Joy.
Maybe I am doing something,,,, Any help would be great as the wife is doing her nut in with no access to certain sites.
Once this has the correct file permissions then I can move on.
So Please Please help!
Cheers
Gov!