Koozali.org: home of the SME Server

Dansguardian bypass for unauthed users

Offline ivan

  • **
  • 24
  • +0/-0
Dansguardian bypass for unauthed users
« on: February 12, 2009, 05:26:06 PM »
Hi all

I have dansguardian running on SME 7.3.
I am using NCSA auth-login
I need to allow unauthenticated uses to pass dans to a few site.
This is necessary as the antivirus software used cannot logon to a proxy thus it can get updates.

Is there a way to allow access to this update site without logging into the proxy?

Thanks
Ivan

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Dansguardian bypass for unauthed users
« Reply #1 on: February 12, 2009, 11:19:07 PM »

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #2 on: February 13, 2009, 05:59:19 AM »
Hi

Thanks for the reply and help.
Can I use done names e.g update.antivirus.com instead of an IP address?

Regards
Ivan

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Dansguardian bypass for unauthed users
« Reply #3 on: February 13, 2009, 06:24:29 AM »
No

You may have to use exceptionlists

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #4 on: February 13, 2009, 07:01:16 AM »
Hi

Thanks
That's the 1st thing I did but they did not seem the work, still got cache access denied when trying to connect. I will try again and let you know.

Regards
Ivan

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Dansguardian bypass for unauthed users
« Reply #5 on: February 13, 2009, 07:43:42 AM »
Try changing the default mode from "banned" to "filtered" and then blocking all http, https and filetypes etc. Then use the exception list to allow your AV site to be accessed.

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #6 on: February 13, 2009, 07:56:26 AM »
Sounds good will do thanks

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #7 on: February 13, 2009, 11:50:45 AM »
Hi

Thanks for the help so far.
I must be missing something.
I looked in the wiki but can't find a note on have to change the default filter group, can you help?

I added the sites to the exception site list but auth is still required to access any site including the exceptions, It is the the fact that auth cannot be bypassed that is at issue as windows updates and the antivirus can't logon to the proxy. how is every one else using dans get passed this issue?

Regards
Ivan

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Dansguardian bypass for unauthed users
« Reply #8 on: February 13, 2009, 01:39:22 PM »
If you are new at this, I suggest you try the Dungog control panel. It makes life very easy.

snoble really can't sing his own praises, but I can :-)

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #9 on: February 13, 2009, 09:58:06 PM »
Hi all

Sorry still does not do it.

Even with expectionsitelist set the proxy still wants auth before allowing cache access
groupmode dansguardianf1.conf is set to one and exceptions are set e.g garmin.com
but if I cancel the auth request in the brower access is denied.

Thanks for the help so far
Regards
Ivan

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Dansguardian bypass for unauthed users
« Reply #10 on: February 13, 2009, 11:09:35 PM »
Set your browser up not to use the proxy, and then try to access the site. Does this help?

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #11 on: February 14, 2009, 05:19:17 AM »
Hi

Thanks for the patience on this problem.

Yip tried that.
I think I have miss placed the problem. Dansguardian sits with squid, squid does the auth control dans filters. I don't need so much to change dans but the squid auth method. I used pam 1st time i setup Dans (not ncsa) it still let me though the proxy with out auth, then this  can be filtered by Dans.
What do you think?
I will try this and drop round again.

Regards
Ivan

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Dansguardian bypass for unauthed users
« Reply #12 on: February 14, 2009, 06:13:53 AM »
Give that a go and see what happens I guess.

If you think you have followed all the instructions, and Dansguardian is still not working as you believe it should be, you might have come across a bug. If that is the case, you can file a bug report and post the number in this thread for reference purposes.

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #13 on: February 16, 2009, 12:50:31 PM »
Hi

I took a careful look at my configs as per the wiki. I cant see that I did any thing wrong.
I added the sites I want un-authenticated uses to be able to access into
/etc/dansguardian -exceptionsitelist, exceptionurllist, exceptionfilesitelist & exceptionfileurllist
but still if you cancel the authentication on the browser 'cache access denied' is returned.
I am not convinced this is a bug. How are others getting updates for software that can't authenticate to a proxy. Please advise.

Thanks for a great forum.

   

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #14 on: February 17, 2009, 01:26:32 AM »
ivan

If you are using a type of Auth to control access to the proxy server, then the issue is really that you need to bypass the proxy Auth requirement, and I'd assume that this means bypassing the proxy to gain access.

Using the various exception lists provided by dansguardian only specifies exceptions for authenticated (using Auth) or unauthenticated (not using Auth) users.
These lists will not help you bypass the Auth requirement.

I thought there was something in the Dansguardian wiki and forum posts and maybe even the FAQ (Firewall) about bypassing the proxy, so search more.

Maybe this is the answer
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Bypass_Proxy

Also there was something posted some time ago about configuring access for AV updates ie in relation to AVG, so also search these forums on that.
« Last Edit: February 17, 2009, 01:37:36 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ivan

  • **
  • 24
  • +0/-0
Re: Dansguardian bypass for unauthed users
« Reply #15 on: February 17, 2009, 08:12:16 AM »
Hi Mary

Thanks for the post.
I agree with all you say. This is an auth bypass issue not a dans issuse.
The proxy bypass will work only for IP address not DNS resolved URL's.
I looked at all the posts you pointed to but they are not really going to solve the issue.

I found that by disabling auth with the following:

config delprop squid RequireAuth
expand-template /etc/squid/squid.conf
sv t /service/squid

Dans still operates but no auth is required to squid

My approach to resolve this is will be to setup a cron job to disable auth after hours to allow updates and then redo the auth with the nessary commands  with a reboot before working hours. This will be acceptable in my environment. I hope there is a better solution as mine may have unforeseen consequences. Input here would be appreciated.

Just a note: this problem is not a short coming with SME by rather software that does not take into account that proxy auth might be required to get services or updates. 

Thanks to all for all the input.

Regards
Ivan