Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-31-2008, 11:45 AM   #1
LQ Newbie
Registered: Jul 2008
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
Running squid (w/ dansguardian) on centos 5.2 blocking all google searches

I'm pretty much brand new to this squid/dansguardian stuff so please bear with me.

I've installed dansguardian and squid on a centos 5.2 running inside a vmware. Everything is working fine and I'm able to get around blocks that are causing me problems except I can't figure out how to allow google searches.

Judging by the HTML error file that comes up it has nothing to do with dansguardian...

The requested URL could not be retrieved

While trying to process the request:

GET /search?q=s&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-USfficial&client=firefox-a&safe=active HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: identity,gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: Close
Cookie: SS=Q0=cw; PREF=ID=fd4751c5a0ee360d:FF=1:LD=en:NR=10:TM=1217478924:LM=1217482598:GM=1:S=cjHQa-LOORSZkfpM; NID=13=toO1eynAT_5z2ZR2w91PnlgJwtcfgts10MbnYDH8dP4M41LGmpZ2qZ0QdDiR5NTbYSfHCINJUbkCowLZbacWxLWtrQvua b5SJoHPQ616LGiksSOa2Cu0vdNFKYRWJbYV; S=adsense=4RYwSady87s:dasher_cpanel=iSMQWa5GcZ8; TZ=240; GMAIL_RTT=276; SID=DQAAAHoAAAAns7PTe5HtuF2Yn5yh4CztDUE7gWtu2tP1ymr276PkQXGMEdM5nvijKfH8sJ8rUie9lO-Sc1HLGNqh-Ke_sAmrUsmtgfwWZNzIWFZOOKvRTjH6pQXOPBpxjk84FvWyx_UyqJbp62Exy4_fGgLS3gJnL7Z2vH1NKEHw7OEb-u1mcg

The following error was encountered:

* Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:

* Missing or unknown request method
* Missing URL
* Missing HTTP Identifier (HTTP/1.0)
* Request is too large
* Content-Length missing for POST or PUT requests
* Illegal character in hostname; underscores are not allowed
/var/log/squid/access.log has the following output for the latest search (please ignore the date/time strangeness):

1217521098.286 36 TCP_DENIED/400 2175 GET error:invalid-request - NONE/- text/html
/var/log/squid/store.log has the following output from the same google search attempt. Again please ignore the date/time

1217521098.286 RELEASE -1 FFFFFFFF 5DC17DCE65F89A41AB1AB54DD8EF6902 400 1217521098 0 1217521098 text/html 2175/2175 GET error:invalid-request
My squid.out log file only has stuff in it from earlier when I tried to create an external access control list to allow google. In case anyone needs it...


2008/07/29 21:33:38| squid.conf line 4327: acl unblockedsites url_regex -i "/etc/squid/unblock.txt"
2008/07/29 21:33:38| aclParseRegexList: Invalid regular expression '**': Invalid preceding regular expression
2008/07/29 21:33:38| squid.conf line 4327: acl unblockedsites url_regex -i "/etc/squid/unblock.txt"
2008/07/29 21:33:38| aclParseRegexList: Invalid regular expression '*': Invalid preceding regular expression
I've since removed the external ACL attempt and put things in squid.conf

I've added the following to squid.conf but it does nothing.

http_access allow ALLOW_ME

Yahoo searches go through just fine without any problem but google searches choke. So far I've not found anything in my journey around that is working. Does anyone have any ideas what the problem is? Thanks I appreciate your time!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dansguardian blocks google searches keymoo Linux - Networking 2 09-19-2007 02:19 PM
Allow but not allow google subdomains in dansguardian paul_mat Linux - Networking 4 07-17-2006 01:40 AM
Squid / Dansguardian not blocking anymore jocast Linux - Networking 0 07-06-2006 09:30 AM
LXer: Google Hacking: Ten Simple Security Searches That Work LXer Syndicated Linux News 0 02-27-2006 09:17 AM
LXer: Google improves music searches LXer Syndicated Linux News 0 12-15-2005 08:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration