1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
DansGuardian Bad Request 400 Fix
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: DansGuardian Bad Request 400 Fix
#36226
DansGuardian Bad Request 400 Fix 1 Year, 5 Months ago  
This is for a non-transparent proxy configuration.

I had the problem where if a site was filtered (let's say games.com) and a proxy client went there, it would redirect to the filtered.php page but they recurse and redirect that entire request to the filtered.php page again ad infinitum until a bad request was made.
Basically, it detects the bad URL (because even those requests are going through the content filter) within the URL it's going to so it tries to filter it out.

There are two fixes.

  • Server side: Add the filter page's host (As defined in /etc/dansguardian-av/dansguardian.conf under accessdeniedaddress) to Exception Site List in the Content Filter web config

  • Client side: Add the proxy to the browser's "No Proxy For" exception list, preferably the whole internal LAN subnet.

J
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/12/29 00:12 By JVFF.
The administrator has disabled public write access.
 
#36240
Re: DansGuardian Bad Request 400 Fix 1 Year, 5 Months ago  
Hi J,

Welcome to Clear. Yes - I have added the proxy server address into the excluded list (deployed by group policy). I will be interested to see if I still need this work round with the 6 release.

David
David Clayton
Platinum Boarder
Posts: 334
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#41798
Re: DansGuardian Bad Request 400 Fix - 6.2? 1 Year ago  
Please can anyone confirm that this fix works on 6.2?

I implemented the fix on 5.2 and it did indeed solve the problem, but in my case at least, the fix is not working on 6.2.

Of course, it may be that I have done something wrong.

Many thanks

Doug
Doug Halstead
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#41890
Re: DansGuardian Bad Request 400 Fix - 6.2? 1 Year ago  
In theory in 5.2 this shouldn't happen - as the filtered.php page is served by the webconfig on port 82 (which is expressly passed through the squid ACLs)

In version 6.2 the filtered.php page has changed, and now handled by the content_filter app. I have no problem here with the transparent proxy in 6.2 can you elaborate on your config and how you replicated the problem?
Tim Burgess
Moderator
Posts: 5833
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#41921
Re: DansGuardian Bad Request 400 Fix - 6.2? 1 Year ago  
My web proxy requires user authentication (non-transparent) which works fine. The content filter has a test policy which has a certain banned URL. It all works as expected except that it results in a 400 Bad Request having detected the banned site. Just as described in the first post.

I will re-test this using a transparent proxy

Many thanks, Doug
Doug Halstead
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop