[zorp-hu] Re: [zorp] zorp 2.0.8 es Invalid response
Gabor E. Tusnady
zorp-hu@lists.balabit.hu
Mon, 23 Feb 2004 09:41:49 +0100
--=-oCYcC50CQGqovCf3TzQ1
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Meg mindig nem jo. Beallitottam a self.permit_proxy_requests = TRUE, nem
megy. Atirtam
> GET / HTTP/1.1
> Host: www.szerver.hu
nem megy.
A cliens kikuldi a kerest, a szerver valaszol, es azt a kliens nem kapja
meg, a tuzfal lenyeli. A kliens csak all a timeout-ig.
A tuzfalon 9-es verbose-zal keszult logot csatoltam.
On Sun, 2004-02-22 at 12:15, Balazs Scheidler wrote:
> 2004-02-20, p keltezéssel 15:56-kor Gabor E. Tusnady ezt írta:
> > On Fri, 2004-02-20 at 15:40, Czako Krisztian wrote:
> > > 2004-02-20, p keltezéssel 11:03-kor Gabor E. Tusnady ezt írta:
> > >
> > > GET http://www.szerver.hu/index.html HTTP/1.1
> > > Host: www.szerver.hu
> > > <enter> (avagy üres sor)
> > >
> > sajnos nem mukodik. A tuzfal nem engedi at ezt a kerest:
> >
> >
> > > <p>Additional information:</p>
> > > proxy requests not permitted in transparent mode.
>
> Itt a megoldas. A fenti keres nem transzparens keres, ezen
> szigoritottunk a 2.0.[78] kornyeken. Kapcsold be a proxy keresek
> engedelyezeset:
>
> self.permit_proxy_requests = TRUE
>
> A Zorp megprobalja megkulonboztetni a proxy kerest az egyszeru szerver
> kerestol, ezek alapjan:
>
> 1) ha a keresben van Proxy-Connection fejlec akkor az proxy keres
> 2) ha a keresben van Connection fejlec, akkor az szerver keres
> 3) ha egyik sincs, akkor ha teljes URL van a keresben, akkor az proxy
> keres, egyebkent szerver keres
>
> Ezek utan ellenorzi a permit_server_requests (defaultbol TRUE) es a
> permit_proxy_requests (defaultbol FALSE) erteket. Tehat vagy
> engedelyezed a proxy kerest, vagy igy irod:
>
> GET / HTTP/1.1
> Host: www.szerver.hu
--
Gabor E. Tusnady, PhD | e-mail: tusi@enzim.hu
Institute of Enzymology, BRC | www: http://www.enzim.hu/~tusi
Hungarian Academy of Sciences | tel: (36-1) 279-3159
H-1113 Budapest Karolina ut 29 | fax: (36-1) 466-5465
*****************************************************************
--=-oCYcC50CQGqovCf3TzQ1
Content-Disposition: attachment; filename=log
Content-Type: text/plain; name=log; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
Feb 23 09:34:16 fal w2o[21504]: core.session(5): (z/wo_http): Starting service; name='wo_http'
Feb 23 09:34:16 fal w2o[21504]: core.debug(8): (z/wo_http): Connection accepted; client_address='AF_INET(192.168.0.1:33847)'
Feb 23 09:34:16 fal w2o[21504]: core.session(3): (z/wo_http:3): Starting proxy instance; client_fd='15', client_address='AF_INET(192.168.0.1:33847)', client_zone='Zone(dmz, 192.168.0.0/24)', client_local='AF_INET(130.14.29.110:80)'
Feb 23 09:34:16 fal w2o[21504]: core.session(5): (z/wo_http:3/http): Proxy starting; class='MyHttpProxy', module='http'
Feb 23 09:34:16 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): thread starting;
Feb 23 09:34:16 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling __config__() event;
Feb 23 09:34:16 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling config() event;
Feb 23 09:34:16 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): Attribute fetched; attribute='request', value='<Zorp hash object at 0x80af118>'
Feb 23 09:34:16 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): Attribute changed; attribute='timeout_request', newvalue='120000'
Feb 23 09:34:16 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): Attribute changed; attribute='permit_proxy_requests', newvalue='1'
Feb 23 09:34:16 fal w2o[21943]: http(2): (z/wo_http:3/http): S: 130.14.29.110 C: 192.168.0.1
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_url_length', value='4096'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_header_lines', value='50'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='response', value='<Zorp Multidimensional hash object at 0x8123f50>'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_chunk_length', value='262144'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_body_length', value='0'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='auth_inband_supported', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='target_port_range', value=''80,443''
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='request_header', value='<Zorp hash object at 0x8121990>'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='parent_proxy_port', value='3128'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='timeout_request', value='120000'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='permit_unicode_url', value='0'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='rewrite_host_header', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='strict_header_checking', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='require_host_header', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='auth', value='<NULL>'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='error_files_directory', value=''/usr/share/zorp/http''
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='default_port', value='80'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='permit_server_requests', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='transparent_mode', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_hostname_length', value='256'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='response_header', value='<Zorp hash object at 0x8118dd8>'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='timeout', value='300000'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='request', value='<Zorp hash object at 0x80af118>'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_keepalive_requests', value='0'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='error_status', value='500'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='error_silent', value='0'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='permit_proxy_requests', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='permit_null_response', value='1'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='parent_proxy', value=''''
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='max_line_length', value='4096'
Feb 23 09:34:16 fal w2o[21943]: core.dump(6): (z/wo_http:3/http): Config dump, attribute value; name='auth_realm', value=''Zorp HTTP auth''
Feb 23 09:34:16 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling __startup__() event;
Feb 23 09:34:16 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling startUp() event;
Feb 23 09:34:16 fal w2o[21943]: http.debug(6): (z/wo_http:3/http): fetching request and headers;
Feb 23 09:34:16 fal w2o[21943]: core.dump(7): (z/wo_http:3/http/client): Reading channel; fd='15', count='131'
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 47 45 54 20 68 74 74 70 3A 2F 2F 77 77 77 2E 6E GET http://www.n
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 63 62 69 2E 6E 6C 6D 2E 6E 69 68 2E 67 6F 76 2F cbi.nlm.nih.gov/
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 65 6E 74 72 65 7A 2F 71 75 65 72 79 2E 66 63 67 entrez/query.fcg
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 69 3F 63 6D 64 3D 54 65 78 74 26 64 62 3D 50 75 i?cmd=Text&db=Pu
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 62 4D 65 64 26 75 69 64 3D 31 34 36 31 34 37 36 bMed&uid=1461476
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 38 26 64 6F 70 74 3D 4D 65 64 6C 69 6E 65 20 48 8&dopt=Medline H
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 54 54 50 2F 31 2E 31 0A 48 6F 73 74 3A 20 77 77 TTP/1.1.Host: ww
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 77 2E 6E 63 62 69 2E 6E 6C 6D 2E 6E 69 68 2E 67 w.ncbi.nlm.nih.g
Feb 23 09:34:16 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 6F 76 0A ov.
Feb 23 09:34:16 fal w2o[21943]: http.request(6): (z/wo_http:3/http): Request details; command='GET', url='http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Text&db=PubMed&uid=14614768&dopt=Medline', version='HTTP/1.1'
Itt all a cliens semmi valaszt nem kap.
ethereal szerint a szerver elkuldte a valaszt.
kliens-en ctrl-c hatasara:
Feb 23 09:34:26 fal w2o[21943]: core.dump(7): (z/wo_http:3/http/client): Reading channel; fd='15', count='0'
Feb 23 09:34:26 fal w2o[21943]: http.error(3): (z/wo_http:3/http): Error reading from peer while fetching headers;
Feb 23 09:34:26 fal w2o[21943]: http.debug(6): (z/wo_http:3/http): exiting keep-alive loop;
Feb 23 09:34:26 fal w2o[21943]: core.dump(7): (z/wo_http:3/http/client): Writing channel; fd='15', count='32'
Feb 23 09:34:26 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 48 54 54 50 2F 31 2E 30 20 35 30 30 20 45 72 72 HTTP/1.0 500 Err
Feb 23 09:34:26 fal w2o[21943]: core.dump(9): (z/wo_http:3/http/client): data line: 6F 72 20 65 6E 63 6F 75 6E 74 65 72 65 64 0D 0A or encountered..
Feb 23 09:34:26 fal w2o[21943]: core.dump(7): (z/wo_http:3/http/client): Writing channel; fd='15', count='46'
Feb 23 09:34:26 fal w2o[21943]: core.error(1): (z/wo_http:3/http/client): Channel write failed; error='Broken pipe'
Feb 23 09:34:26 fal w2o[21943]: http.error(1): (z/wo_http:3/http): Error writing client stream; res='0', error='Broken pipe'
Feb 23 09:34:26 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling __shutdown__() event;
Feb 23 09:34:26 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling shutDown() event;
Feb 23 09:34:26 fal w2o[21943]: core.debug(7): (z/wo_http:3/http): calling __destroy__() event;
Feb 23 09:34:26 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): Proxy destroy; class='MyHttpProxy', module='http'
Feb 23 09:34:26 fal w2o[21943]: core.debug(6): (z/wo_http:3/http/client): Shutdown channel; fd='15', mode='2'
Feb 23 09:34:26 fal w2o[21943]: core.error(4): (z/wo_http:3/http/client): Shutdown failed; attempt='1', error='Transport endpoint is not connected'
Feb 23 09:34:26 fal w2o[21943]: core.debug(6): (z/wo_http:3/http/client): Closing channel; fd='15'
Feb 23 09:34:26 fal w2o[21943]: core.session(5): (z/wo_http:3/http): Proxy ending; class='MyHttpProxy', module='http'
Feb 23 09:34:26 fal w2o[21943]: core.session(4): (z/wo_http:3): Ending proxy instance;
Feb 23 09:34:26 fal w2o[21943]: core.accounting(4): (z/wo_http:3/http/client): accounting info; type='stream', duration='10', sent='32', received='131'
Feb 23 09:34:26 fal w2o[21943]: core.debug(6): (z/wo_http:3/http): thread exiting;
--=-oCYcC50CQGqovCf3TzQ1--