Re: [SQU] Looks like a newbie problem:

From: Henk-Jan Kloosterman <proxy@dont-contact.us>
Date: Tue, 20 Feb 2001 21:23:59 +0100

Ok here it is, sorry it took so long, but I encountered a very strange
thing, and I am not sure if it is a squid problem,

I have a firewall configured so that nobody, but my IP address is allowed to
access the "squid" box.
But, somehow every time I access the proxy or the accellaretor, a ICMP
request come's from a router from the internet provider.
If I allow ICM from that router: No problem. If I block it: No data to my
Windows 95 IEX 5.5 client or my RH 7 Netscape client.

Must I concentrate on squid? Or on the OS?

PS Henrik, I will also trie a RH6.2 configuration tonight or tommorow night

> *blush*. yes I did. Thanks Henrik
>
> > I think Robert meant
> >
> > print *request->auth_user_request
> >
> > /Henrik
> >
> >
> > Henk-Jan Kloosterman wrote:
> > >

Red Hat Linux release 7.0 (Guinness)
Kernel 2.2.16-22 on an i686
login: root
Password:
Last login: Tue Feb 20 21:10:18 from 150.50.242.2
[root@mis2 /root]# gdb squid
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run -DNYCd3
Starting program: /usr/sbin/squid -DNYCd3
[New Thread 1024 (LWP 5831)]
2001/02/20 21:12:09| helperOpenServers: Starting 5 'dnsserver' processes
2001/02/20 21:12:09| helperOpenServers: Starting 5 'auth.pl' processes
2001/02/20 21:13:06| parseHttpRequest: req_hdr = {Proxy-Connection:
Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
Host: www.ahrend.net
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8

}
2001/02/20 21:13:06| parseHttpRequest: end = {}
2001/02/20 21:13:06| parseHttpRequest: prefix_sz = 310, req_line_sz = 37
2001/02/20 21:13:06| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/20 21:13:06| clientSetKeepaliveFlag: method = GET
2001/02/20 21:13:06| The request GET http://www.ahrend.net/ is DENIED,
because i
t matched 'secureid'
2001/02/20 21:13:06| clientSendMoreData: Appending 966 bytes after 320 bytes
of
headers
2001/02/20 21:13:06| The reply for GET http://www.ahrend.net/ is ALLOWED,
becaus
e it matched 'all'
2001/02/20 21:13:06| clientKeepaliveNextRequest: FD 22
2001/02/20 21:13:06| httpRequestFree: http://www.ahrend.net/
2001/02/20 21:13:13| connStateFree: FD 22
2001/02/20 21:13:13| parseHttpRequest: req_hdr = {Proxy-Connection:
Keep-Alive
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
Host: www.ahrend.net
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Proxy-authorization: Basic aGVuazptZjIyaGQ=

}
2001/02/20 21:13:13| parseHttpRequest: end = {}
2001/02/20 21:13:13| parseHttpRequest: prefix_sz = 355, req_line_sz = 37
2001/02/20 21:13:13| clientSetKeepaliveFlag: http_ver = 1.0
2001/02/20 21:13:13| clientSetKeepaliveFlag: method = GET
2001/02/20 21:13:13| helperHandleRead: end of reply found
2001/02/20 21:13:13| The request GET http://www.ahrend.net/ is ALLOWED,
because
it matched 'secureid'
2001/02/20 21:13:13| clientProcessRequest2: default HIT
2001/02/20 21:13:13| clientCacheHit: http://www.ahrend.net/, 996 bytes
2001/02/20 21:13:13| clientProcessExpired: 'http://www.ahrend.net/'
2001/02/20 21:13:13| helperHandleRead: end of reply found
2001/02/20 21:13:13| clientHandleIMSReply: http://www.ahrend.net/, 248 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 5831)]
0x82144d3 in ?? ()
(gdb) bt
#0 0x82144d3 in ?? ()
#1 0x805c015 in clientBuildReplyHeader (http=0x8453504, rep=0x83146b0)
    at client_side.c:1290
#2 0x805c122 in clientBuildReply (http=0x8453504,
    buf=0x8458778 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=996) at client_side.c:1330
#3 0x805ce3d in clientSendMoreData (data=0x8453504,
    buf=0x8458778 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=996) at client_side.c:1778
#4 0x809036c in storeClientCallback (sc=0x8453ac4, sz=996)
    at store_client.c:164
#5 0x809b654 in storeUfsReadDone (fd=26,
    buf=0x8458778 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    len=996, errflag=0, my_data=0x8431e54) at store_io_ufs.c:217
#6 0x8063816 in diskHandleRead (fd=26, data=0x8314250) at disk.c:381
#7 0x80900e1 in storeRead (sio=0x8431e54,
    buf=0x8458778 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
---Type <return> to continue, or q <return> to quit---
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=4096, offset=84, callback=0x80908f4 <storeClientReadBody>,
    callback_data=0x8453ac4) at store_io.c:82
#8 0x80908e7 in storeClientFileRead (sc=0x8453ac4) at store_client.c:347
#9 0x8090606 in storeClientCopy2 (e=0x844ec88, sc=0x8453ac4)
    at store_client.c:260
#10 0x805a9eb in clientHandleIMSReply (data=0x8453504,
    buf=0x8458778 "HTTP/1.1 200 OK\r\nServer:
Microsoft-IIS/4.0\r\nwww.ahrend.ne
t: max-age=1800\r\nConnection: keep-alive\r\nContent-Location:
http://www.ahrend
.net/index.html\r\nDate: Sat, 17 Feb 2001 08:55:51 GMT\r\nContent-Type:"...,
    size=248) at client_side.c:537
#11 0x809036c in storeClientCallback (sc=0x831437c, sz=248)
    at store_client.c:164
#12 0x8090606 in storeClientCopy2 (e=0x8450308, sc=0x831437c)
    at store_client.c:260
#13 0x8091066 in InvokeHandlers (e=0x8450308) at store_client.c:588
#14 0x808e4f7 in storeAppend (e=0x8450308,
    buf=0x8111ca0 "c01:66c8\"\r\nContent-Length: 0\r\n\r\nr:
Microsoft-IIS/4.0\r
\nDate: Tue, 20 Feb 2001 20:13:13 GMT\r\nwww.ahrend.net:
max-age=1800\r\nConnect
ion: keep-alive\r\nContent-Location:
http://www.ahrend.net/index.html\r\nETa"...
, len=32) at store.c:461
#15 0x80711e3 in httpReadReply (fd=27, data=0x8313f84) at http.c:560
---Type <return> to continue, or q <return> to quit---
#16 0x80621f8 in comm_poll (msec=10) at comm_select.c:432
#17 0x807c419 in main (argc=2, argv=0xbffffa74) at main.c:712
#18 0x400cdf31 in __libc_start_main (main=0x807c044 <main>, argc=2,
    ubp_av=0xbffffa74, init=0x8049ea8 <_init>, fini=0x80a761c <_fini>,
    rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffa6c)
    at ../sysdeps/generic/libc-start.c:129
(gdb) frame 1
#1 0x805c015 in clientBuildReplyHeader (http=0x8453504, rep=0x83146b0)
    at client_side.c:1290
1290 authenticateFixHeader(rep, request->auth_user_request,
request,
http->flags.accel);
(gdb) print *request
$1 = {method = 1, protocol = PROTO_HTTP, login = '\000' <repeats 127 times>,
  host = "www.ahrend.net", '\000' <repeats 114 times>,
  auth_user_request = 0x8314088, port = 80, urlpath = {size = 36, len = 1,
    buf = 0x8453920 "/"}, canonical = 0x83141d0 "http://www.ahrend.net/",
  link_count = 5, flags = {range = 0, nocache = 0, ims = 0, auth = 0,
    cachable = 1, hierarchical = 1, loopdetect = 0, proxy_keepalive = 1,
    proxying = 0, refresh = 1, redirected = 0, need_validation = 1,
    nocache_hack = 0, accelerated = 0, internal = 0, body_sent = 0},
  cache_control = 0x0, range = 0x0, http_ver = {major = 1, minor = 0},
  ims = -1, imslen = -1, max_forwards = -1, client_addr = {
    s_addr = 3422665684}, my_addr = {s_addr = 1430619842}, my_port = 80,
  header = {entries = {capacity = 16, count = 8, items = 0x8313fc8},
    mask = "\017\000\200\0000\200\000", owner = hoRequest, len = 316},
  body_connection = 0x0, content_length = -1, hier = {code = DIRECT,
    host = "150.50.20.89", '\000' <repeats 115 times>, ping = {start = {
        tv_sec = 0, tv_usec = 0}, stop = {tv_sec = 982699993,
        tv_usec = 732694}, n_sent = 0, n_recv = 0, n_replies_expected = 0,
      timeout = 0, timedout = 0, w_rtt = 0, p_rtt = 0},
    cd_host = '\000' <repeats 127 times>, alg = PEER_SA_NONE,
    cd_lookup = LOOKUP_NONE, n_choices = 0, n_ichoices = 0,
    peer_select_start = {tv_sec = 0, tv_usec = 0}, store_complete_stop = {
      tv_sec = 0, tv_usec = 0}}, err_type = ERR_NONE, peer_login = 0x0,
  lastmod = 973155194}
(gdb) print *request->auth_user_request
$2 = {auth_user = 0x84537f8, message = 0x0, scheme_data = 0x0, references =
1}
(gdb)
$3 = {auth_user = 0x84537f8, message = 0x0, scheme_data = 0x0, references =
1}
(gdb)
Received on Tue Feb 20 2001 - 14:05:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:33 MST