jueves, junio 21, 2007

Howto debug network errors in squid with wireshark

If you see in the squid logs errors such as:

> 2007/06/12 11:15:45| parseHttpRequest: Unsupported method '^C'
> 2007/06/12 11:15:45| clientReadRequest: FD 145 (x.x.x.x:62332) Invalid
> Request
> 2007/06/12 11:15:48| parseHttpRequest: Requestheader contains NULL
> characters
> 2007/06/12 11:15:48| parseHttpRequest: Unsupported method '^C'
> 2007/06/12 11:15:48| clientReadRequest: FD 1611 (x.x.x.x:60853) Invalid
> Request
> 2007/06/12 11:15:49| parseHttpRequest: Requestheader contains NULL
> characters
> 2007/06/12 11:15:49| parseHttpRequest: Unsupported method '^C'

You could do some debug with utils such as ethereal/wireshark:

PROCEDURE:

1. Start wireshart, and start a new packet capture.

2. When seeing the error in cache.log, enter the filter
ip.address == YYYYYY && tcp.port == XXXXX

where YYYYY is the IP and XXXXX is the port number from the Invalid
Request log line.

Then select the first packet shown (should be a SYN), and choose Analyze
-> Follow TCP Stream. This opens a new window with the TCP stream
decoded. In this area you'll have all important data about the problem.

4 comentarios:

Kunal Jain's Blog dijo...

configuring reverse squid proxy2.6 so that all the static contents can be stored for a long period of time.
also explain me about refresh_pattern in squid reverse proxy2.6

kunal jain
hellokunal_jain@yahoo.co.in

Anónimo dijo...

are you kidding??

that explanation doesnt say anything useful. It's sniff the traffic, check the packets and you'll see info. plop :S

Anónimo dijo...

Can anyone recommend the robust Remote Management & Monitoring tool for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central remote windows login
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anónimo dijo...

asian lesbian babes bsty lesbian lesbian chicks fucking gorgeous college lesbians lesbian bed depth gay and lesbian personals angelina jolie lesbian gia clip