[zorp-hu] Egymasba agyazott plugok

Hegedus Ferenc dark@dark.chaos.hu
Sun, 26 Aug 2001 20:35:09 +0200


Sziasztok

Nalam ez a config TransparentChainer-er mukodik,
am ha ezt InbandChainer-el felrakom egy portra es a 
bongeszoben beallitom ezt https_proxy-nak, majd 
probalok megnezni egy https oldalt, a kovetkezot
irja nekem a Zorp a logba:

(https/service_https:0/pssl): calling connectServer() event, host=(null),
Traceback (innermost last):
   File "/usr/share/zorp/pylib/Zorp/Proxy.py", line 182, in connectServer
     fd = self.session.chainer.connectServer(self.session, host, port)
   File "/usr/share/zorp/pylib/Zorp/Chainer.py", line 352, in connectServer
     ip = socket.gethostbyname(host)
 TypeError: string, None
 (https/service_https:0/pssl): cannot conect to server

Valakinek otlete? Koszi

d

Ui.: Debian potato + Zorp 0.8.4

On 2001 Aug 22 at 10:21, Balazs Scheidler wrote:
> class MyHttps(PsslProxy):
> 
>         class EmbeddedHttp(HttpProxy):
>                 def config(self):
>                         HttpProxy.config(self)
>                         self.request_headers["User-Agent"] = \
>                                 [HTTP_CHANGE_VALUE, "Lynx/2.8.3rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/69.69.4"]
> 
>         def config(self):
>                 self.server_need_ssl = TRUE
>                 self.server_verify_type = SSL_VERIFY_REQUIRED_TRUSTED
>                 self.server_ca_directory = '/etc/zorp/ca.crt'
> 
>                 self.client_need_ssl = TRUE
>                 self.client_cert = '/etc/zorp/server.crt'
>                 self.client_key = '/etc/zorp/server.key'
>                 self.client_verify_type = 0
>                 self.stack_proxy = self.EmbeddedHttp
-- 
The end is important in all thing