Koozali.org: home of the SME Server

How to block sites on user basis using dansgardian

Offline hasan

  • ***
  • 60
  • +0/-0
How to block sites on user basis using dansgardian
« on: April 24, 2008, 06:38:32 AM »
Hello All,
          I have installed dansgaurdian successfully on my server and its working very fine. But now I want to give access to some blocked sites (not all) to a particular user. Can anyone tell me how to this stuff.


Thanks and Regards
Hasan
My software is not having any bugs,
It just does some random calculations intelligently :-)

Offline brianr

  • *
  • 990
  • +2/-0
Re: How to block sites on user basis using dansgardian
« Reply #1 on: April 24, 2008, 07:55:55 AM »
I have not had to do this, but I imagine it is done by creating a "group" with the required sites allowed, then adding that user(s) to that group.

 
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline hasan

  • ***
  • 60
  • +0/-0
Re: How to block sites on user basis using dansgardian
« Reply #2 on: April 25, 2008, 08:06:06 AM »
Thanks Brian,
          According to your suggestion I created a group f2 and it corresponding dansguardianf2.conf file. I also added the ip to be added to the group into the file filtergroupslist, but still it is not including that ip into the filter2 and it is in default filter 1.
Underneath I have shown the file structure I am having also the filtergrouplist file:

Code: [Select]
[root@server etc]# cd dansguardian/
[root@server dansguardian]# ls
authplugins      dansguardian.conf    dansguardian.pl   lists
blacklists       dansguardianf1.conf  downloadmanagers  scripts
contentscanners  dansguardianf2.conf  languages         transparent1x1.gif
[root@server dansguardian]# cd lists/
[root@server lists]# ls
1             blacklists        exceptioniplist  filtergroupslist
authplugins   contentscanners   f1               phraselists
bannediplist  downloadmanagers  f2
[root@server lists]# cat filtergroupslist
# Filter Groups List file for DansGuardian
#
# Format is <user>=filter<1-9> where 1-9 are the groups
#
# Eg:
# daniel=filter2
#
# This file is only of use if you have more than 1 filter group
#
192.168.1.33=filter2
[root@server lists]
[/size]

Can you please guide me through this stuff
My software is not having any bugs,
It just does some random calculations intelligently :-)

Offline brianr

  • *
  • 990
  • +2/-0
Re: How to block sites on user basis using dansgardian
« Reply #3 on: April 25, 2008, 08:25:13 AM »
Can you please guide me through this stuff

As I said before, I have not done this, perhaps you ought to look on the dansguardian site for more help.

http://dansguardian.org/

 :-)
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline hasan

  • ***
  • 60
  • +0/-0
Re: How to block sites on user basis using dansgardian
« Reply #4 on: April 25, 2008, 01:10:55 PM »
Thanks Alot,
        I have been able to do that,
I configured authorization method and then the proxy settings. Also I have to unhash the line for authplugin in the dansgaurdian.conf file.


Thanks and Regards
Hasan
My software is not having any bugs,
It just does some random calculations intelligently :-)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: How to block sites on user basis using dansgardian
« Reply #5 on: April 25, 2008, 03:08:15 PM »
hasan

Quote
...I configured authorization method and then the proxy settings. Also I have to unhash the line for authplugin in the dansgaurdian.conf file.

Which is all covered in the Howto, had you read that first, there would have been no need to ask here.
...

Offline hasan

  • ***
  • 60
  • +0/-0
Re: How to block sites on user basis using dansgardian
« Reply #6 on: April 25, 2008, 03:12:35 PM »
Yeah I have read that and thats how I was able to do that in the end,

Sorry for bothering you.


Regards
Hasan
My software is not having any bugs,
It just does some random calculations intelligently :-)