valtozas 7.13 rol 7.14 re
Udv A http proxy ban tortent valami valtozas amitol a kovetkezo tortenik ha bongeszovel toltok le egy filet akkor szepen lejon ha a file letolteset a getright vegezne akkor nem tolti le a logban pedig a kovetkezot talalom Jan 31 13:37:22 fw1 zorp-proba[1938]: (fw1@bolyrt.hu/BIHttp:50/http): proxy_stop, module=http Jan 31 13:37:22 fw1 zorp-proba[1938]: (fw1@bolyrt.hu/BIHttp:50): client: accounting info, duration=1, sent=409, received=284 Jan 31 13:37:22 fw1 zorp-proba[1938]: (fw1@bolyrt.hu/BIHttp:50): server: accounting info, duration=1, sent=284, received=409 Jan 31 13:37:22 fw1 zorp-proba[1031]: (fw1@bolyrt.hu/BIHttp): client_fd=15, client_addr=AF_INET(192.168.0.83:1589), client_zone=Zone(szamtech, 192.168.0.0/24), client_local=AF_INET(212.75.130.215:80) Jan 31 13:37:22 fw1 zorp-proba[1031]: (fw1@bolyrt.hu/BIHttp:51/http): proxy_start, module=http Jan 31 13:37:22 fw1 zorp-proba[1939]: (fw1@bolyrt.hu/BIHttp:51/http): server_fd=16, server_addr=AF_INET(212.75.130.215:80), server_zone=Zone(internet, 0.0.0.0/0), server_local=AF_INET(212.40.64.5:4952) Jan 31 13:37:22 fw1 zorp-proba[1939]: (fw1@bolyrt.hu/BIHttp:51/http): proxy_stop, module=http Jan 31 13:37:22 fw1 zorp-proba[1939]: (fw1@bolyrt.hu/BIHttp:51): client: accounting info, duration=0, sent=169, received=362 Jan 31 13:37:22 fw1 zorp-proba[1939]: (fw1@bolyrt.hu/BIHttp:51): server: accounting info, duration=0, sent=362, received=169 Jan 31 13:37:23 fw1 zorp-proba[1934]: (fw1@bolyrt.hu/BIHttp:47/http): proxy_stop, module=http Jan 31 13:37:23 fw1 zorp-proba[1934]: (fw1@bolyrt.hu/BIHttp:47): client: accounting info, duration=3, sent=25617, received=383 Jan 31 13:37:23 fw1 zorp-proba[1934]: (fw1@bolyrt.hu/BIHttp:47): server: accounting info, duration=3, sent=383, received=25617 Jan 31 13:37:24 fw1 zorp-proba[1031]: (fw1@bolyrt.hu/BIHttp): client_fd=13, client_addr=AF_INET(192.168.0.83:1593), client_zone=Zone(szamtech, 192.168.0.0/24), client_local=AF_INET(212.108.197.34:80) Jan 31 13:37:24 fw1 zorp-proba[1031]: (fw1@bolyrt.hu/BIHttp:52/http): proxy_start, module=http Jan 31 13:37:24 fw1 zorp-proba[1941]: (fw1@bolyrt.hu/BIHttp:52/http): error, serving /usr/local/zorp/share/zorp/http/policyviolation.html ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ez a fokulonbseg a ket letoltes kozott Jan 31 13:37:24 fw1 zorp-proba[1941]: (fw1@bolyrt.hu/BIHttp:52/http): proxy_stop, module=http Jan 31 13:37:24 fw1 zorp-proba[1941]: (fw1@bolyrt.hu/BIHttp:52): client: accounting info, duration=0, sent=577, received=125 Udv Robit
On Wed, Jan 31, 2001 at 02:05:00PM +0100, Szűcs Tibor wrote:
Udv
A http proxy ban tortent valami valtozas amitol a kovetkezo tortenik ha bongeszovel toltok le egy filet akkor szepen lejon ha a file letolteset a getright vegezne akkor nem tolti le
Ezt a patchet kene kiprobalni (a modules/zorp-module-http-*/http.c re kell applyolni): Index: http.c =================================================================== RCS file: /var/cvs/zorp-module-http/http.c,v retrieving revision 1.39 diff -u -r1.39 http.c --- http.c 2001/01/30 14:18:37 1.39 +++ http.c 2001/01/31 13:22:59 @@ -1065,8 +1065,8 @@ { self->request_type = HTTP_REQTYPE_SERVER; } - else if (strcasecmp(self->request_url->str, "http://") || - strcasecmp(self->request_url->str, "ftp://")) + else if (strncasecmp(self->request_url->str, "http://", 7) || + strncasecmp(self->request_url->str, "ftp://", 6)) { /* neither Connection nor Proxy-Connection header exists */ self->request_type = HTTP_REQTYPE_PROXY; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
A http proxy ban tortent valami valtozas amitol a kovetkezo tortenik ha bongeszovel toltok le egy filet akkor szepen lejon ha a file letolteset a getright vegezne akkor nem tolti le
Ezt a patchet kene kiprobalni (a modules/zorp-module-http-*/http.c re kell applyolni):
Index: http.c =================================================================== RCS file: /var/cvs/zorp-module-http/http.c,v retrieving revision 1.39 diff -u -r1.39 http.c --- http.c 2001/01/30 14:18:37 1.39 +++ http.c 2001/01/31 13:22:59 @@ -1065,8 +1065,8 @@ { self->request_type = HTTP_REQTYPE_SERVER; } - else if (strcasecmp(self->request_url->str, "http://") || - strcasecmp(self->request_url->str, "ftp://")) + else if (strncasecmp(self->request_url->str, "http://", 7) || + strncasecmp(self->request_url->str, "ftp://", 6)) { /* neither Connection nor Proxy-Connection header exists */ self->request_type = HTTP_REQTYPE_PROXY;
Ez a patch meg mindig nem teljesen jo, de itt egy jobb: diff -u -r1.39 http.c --- http.c 2001/01/30 14:18:37 1.39 +++ http.c 2001/02/01 09:32:41 @@ -1065,10 +1065,10 @@ { self->request_type = HTTP_REQTYPE_SERVER; } - else if (strcasecmp(self->request_url->str, "http://") || - strcasecmp(self->request_url->str, "ftp://")) + else if (self->request_url->str[0] != '/') { - /* neither Connection nor Proxy-Connection header exists */ + /* neither Connection nor Proxy-Connection header exists, and URI + doesn't seem to be a simple filename */ self->request_type = HTTP_REQTYPE_PROXY; } else Amugy arrol van szo, hogy transzparens modban kulon meg lehet adni azt, szerver keresek (klienstol szerver fele), vagy proxy (proxytol a parent proxyhoz) keresek engedelyezettek (transparent_proxy_requests, transparent_server_requests attributumok), ehhez pedig meg kell hatarozni a keres tipusat. Ez az esetek nagy reszeben (bongeszotol szarmazo keresnel) viszonylag egyszeru, mert van Connection: v. Proxy-Connection: fejlec. Ez getright-nal nincs, ezert a keres URI resze alapjan egy kis heurisztika donti el (ha a filenev '/'-el kezdodik, akkor server kerest feltetelezek, egyebkent proxy kerest). Ez a dontes nem RFC komplians, szimpla szerver keresben is lehet teljes URL (http://<szervernev/filenev), ha ilyen kliens van a Zorp mogott, akkor be kell kapcsolni a transparent_proxy_requests-et, igy: class MyHttp(HttpProxy): def config(self): HttpProxy.config(self) self.transparent_mode = TRUE self.transparent_proxy_requests = TRUE -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Korabbi problemam miszerint egy ido utan annyi zorp processz lett a gepen hogy mar nem tudott ujat inditani es ezert elhalt az egesz, reszben megoldodott a 0.6.1-segitsegevel. A teszt rendszeremen 3 http keres/mp terhelessel szepen ment a dolog akar 4 napig is (max 20 processz futott egyszerre), de amikor elesben probaltam ki akkor 5 nap alatt ismet tulburjanzottak a processzek. Meg tudok adni valami olyat pl. hogy max 12 orat futhat egy zorp processz vagy valami hasonlot? Andras A szamitogep Window$ nelkul olyan mint a csoki mustar nelkul.
On Thu, Feb 08, 2001 at 09:28:10AM +0100, Farago Andras wrote:
Korabbi problemam miszerint egy ido utan annyi zorp processz lett a gepen hogy mar nem tudott ujat inditani es ezert elhalt az egesz, reszben megoldodott a 0.6.1-segitsegevel. A teszt rendszeremen 3 http keres/mp terhelessel szepen ment a dolog akar 4 napig is (max 20 processz futott egyszerre), de amikor elesben probaltam ki akkor 5 nap alatt ismet tulburjanzottak a processzek. Meg tudok adni valami olyat pl. hogy max 12 orat futhat egy zorp processz vagy valami hasonlot?
A problema az, hogy mivel a timeoutok hozzaadasa a zorp-hoz nem trivialis valtoztatas volt, ezert nem akarom backportolni 0.6-ra. A 0.7-es sorozat - amiben ez a feature mar megvan - immar stabilizalodik, es a legutolso valtozatban mar nincs hajlam az elszallasra (kb 1 hete megy 100 konkurrens session mellett gond nelkul) a 0.7.14-el egy forditasi problema lehet, amit lekuzdhetsz a .deb-ek letoltesevel, amit a 15-osben javitunk majd. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
A http proxy ban tortent valami valtozas amitol a kovetkezo tortenik ha bongeszovel toltok le egy filet akkor szepen lejon ha a file letolteset a getright vegezne akkor nem tolti le
ha meg annyit, hogy a patchen kivul megoldas lehet meg a Http proxy-ban a transparent_proxy_requests TRUE-ra allitasa. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (3)
-
Balazs Scheidler
-
Farago Andras
-
Szûcs Tibor