nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

squid/2.5.STABLE3 Error

This is a discussion on squid/2.5.STABLE3 Error within the Linux software forums, part of the Linux Getting Started category; Hey Pals! I am having problem with my squid/2.5.STABLE3 when i visit a website without squid everything is fine but ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-11-2006, 09:04 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default squid/2.5.STABLE3 Error

Hey Pals!

I am having problem with my squid/2.5.STABLE3 when i visit a website without squid everything is fine but when i use my quid proxy it returns with the error
The following error was encountered:

Invalid Response
The HTTP Response message received from the contacted server could not be understood or was otherwise malformed. Please contact the site operator. Your cache administrator may be able to provide you with more details about the exact nature of the problem if needed.

Your cache administrator is root.

when i check with the web admin of the target site, he asked me to exclude his website from my squid.conf. i use following configuration to exclude the target website excluding from squid.
acl web1 dstdomain <target WebsiteURL>
always_direct deny web1
no_cache deny web1

can you help me where i am doing mistake coz i am stuck to it ..
hope you gurus can help me
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-11-2006, 01:59 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Your config seems to ok, here is what i will do if i want to give direct access to cyberciti.biz (you only need two line:

Code:
acl ccbiz dstdomain .cyberciti.biz
always_direct allow ccbiz
You need to add always_direct allow ccbiz before your LAN and locahost http_access lan. for example:
Code:
acl lan src 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
acl ccbiz dstdomain .cyberciti.biz
always_direct allow ccbiz
http_access allow localhost
http_access allow lan
Restart, squid and look for log file. If you need further help just reply back
Reply With Quote
  #3 (permalink)  
Old 07-12-2006, 07:08 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default

Hi Pal,

Firsth thanks for considering me. i really appritiate your help. well i am still having same. i cant browse the site which i wana exclude from my squid. and still i am having same invalid response eroor for that particular link. i am sending you detailed description of my squid.conf. please check where i am really missing. and i am new in linux world so can you guide me how can i check logs and what part of log you wana see.

Cheers!
ishu

My squid.conf


acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8


acl Direct dstdomain .cyberciti.biz
always_direct allow Direct


http_access deny xuser !okurls
http_access allow exemptusers
http_access deny domainusers restrictdomains
http_access allow domainusers
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost

http_access deny all

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.10.0/24 192.168.30.0/24 192.168.50.0/24 192.168.60.0/24

192.168.70.0/24
http_access allow our_networks
http_access allow localhost
http_access deny all

http_reply_access allow all

Reply With Quote
  #4 (permalink)  
Old 07-13-2006, 08:43 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default Re: squid/2.5.STABLE3 Error

Please someone help me
Reply With Quote
  #5 (permalink)  
Old 07-13-2006, 06:31 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

ishu,

did you replace domain .cyberciti.biz with actual domain name?
Code:
acl Direct dstdomain .cyberciti.biz
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #6 (permalink)  
Old 07-14-2006, 06:32 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default

Yes i did replace the domain address with the orignal one.
Reply With Quote
  #7 (permalink)  
Old 07-17-2006, 06:24 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default MAY DAY!

Hey Linux Gururs where are you pals, i am still looking for you help me....
Reply With Quote
  #8 (permalink)  
Old 07-17-2006, 07:31 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hmm

can you paste error from access.log or error.log file?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #9 (permalink)  
Old 07-19-2006, 08:12 AM
Junior Member
User
 
Join Date: Jul 2006
Posts: 15
Rep Power: 0
ishu
Default Logs

When i visit the particular link it enters the folowing stuff in Access.log

Code:
1153272327.807   4101 192.168.10.88 TCP_MISS/200 13302 CONNECT asp.tramada.com.au:443 imasood DIRECT/210.9.155.197 -
1153272334.885      3 192.168.10.43 TCP_DENIED/407 1713 OPTIONS http://idisk.mac.com/bly3/ - NONE/- text/html
1153272335.097    303 192.168.10.88 TCP_MISS/502 1983 GET http://webres.tramada.com.au/cgi-bin/WebObjects.dll/webres.woa/wa/travelarrangerCustomerSearch? imasood DIRECT/210.193.216.7 text/html
1153272335.301    398 192.168.10.43 TCP_MISS/503 968 OPTIONS http://idisk.mac.com/bly3/ bly DIRECT/17.250.248.77 text/html
1153272335.302   2776 192.168.10.88 TCP_MISS/200 2504 CONNECT asp.tramada.com.au:443 imasood DIRECT/203.63.44.98 -
1153272336.895      1 192.168.10.43 TCP_DENIED/407 1713 OPTIONS http://idisk.mac.com/bly3/ - NONE/- text/html
1153272337.284    389 192.168.10.43 TCP_MISS/503 968 OPTIONS http://idisk.mac.com/bly3/ bly DIRECT/17.250.248.77 text/html
i just refresh the page to recheck

Code:
1153272451.675    216 192.168.10.88 TCP_MISS/502 1983 GET http://webres.tramada.com.au/cgi-bin/WebObjects.dll/webres.woa/wa/travelarrangerCustomerSearch? imasood DIRECT/210.193.216.7 text/html
Reply With Quote
  #10 (permalink)  
Old 07-20-2006, 12:35 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Hi isue.,

Your proxy is configured properly to direct access for webres.tramada.com.au. From your log i can tell this is webserver problem and not your proxy server problem. I am here using following three lines only for domain .cyberciti.biz:

Code:
acl web1 dstdomain .cyberciti.biz
always_direct allow web1
no_cache deny web1
When i request any page or image from doamin i get followin entry in access.log:
153331536.598 5599 127.0.0.1 TCP_MISS/200 49018 GET http://www.cyberciti.biz/images/misc/logo.jpg - DIRECT/68.142.234.44 image/jpeg

And command netstat -vat returns direct connection to www.cyberciti.biz (not from proxy port 312
Code:
proxy:18730            p5w6.geo.re2.yahoo.com.:www
There is no problem with proxy, IMPO. If you are using above 3 directives you got correct configuration

Also you need to see cache.log to see this error, if possible paste back cache.log

HTH
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Squid Error zakaferoz Mail Servers 1 02-12-2008 05:05 AM
squid service error loading on startup asim.mcp Linux software 5 07-27-2006 03:29 PM
Invalid ICMP type 3 code 3 error to a broadcast -samba error raj Linux software 0 07-09-2006 05:38 AM
Squid Error rajuk Linux software 4 11-11-2005 04:05 PM


All times are GMT +5.5. The time now is 03:46 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36