Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured squid+ldap with dansguardian. Now the requirement is all the users should not get all the websites opened.

Can I configure dansguardian in a such a way that it should allow only some users which have paermision. I have also created filters. but I could not see that.

share|improve this question
up vote 0 down vote accepted
  1. Modify "filtergroups" in dansguardian.conf
  2. cp dansguardianf1.conf dansguardianf2.conf
  3. You might want to modify "groupname" in each dansguardianfN.conf file just to see your new groups in access.log
  4. Modify "exceptionsitelist", "bannedphraselist" etc. in each dansguardianfN.conf


grep filtergroups ./dansguardian.conf
filtergroups = 2

grep "groupname\|exceptionsitelist\|bannedphraselist" ./dansguardianf2.conf
groupname = 'hr'
exceptionsitelist = '/etc/dansguardian/lists/exceptionsitelist_hr'
bannedphraselist = '/etc/dansguardian/lists/bannedphraselist'

cat ./exceptionsetelist_hr

All users not explicitly listed in other groups will be routed to filter1 (config: dansguardianf1.conf)

Try this:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.