[zorp-hu] pssl + embedded html + inbandrouter

Gabor HALASZ zorp-hu@lists.balabit.hu
Thu, 17 Feb 2005 13:43:36 +0100


Ezek egy=FCtt nem akarnak m=FBk=F6dni.

Ez a konfig:

class HttpS_C(PsslProxy):
         class EHttp_C(HttpProxy):
                 def config(self):
                         HttpProxy.config(self)
                         self.transparent_mode =3D 1
                         self.request_headers["X-Host"] =3D=20
(HTTP_HDR_INSERT, self.session.client_address.ip_s)
         def config(self):
                 self.client_need_ssl =3D 1
                 self.server_need_ssl =3D 0
                 self.client_cert =3D "/etc/zorp/wancrt.pem"
                 self.client_key =3D "/etc/zorp/wankey.pem"
                 self.client_verify_type =3D 1
                 self.transparent_mode =3D 1
                 self.stack_proxy =3D self.EHttp_C

Service("HttpS_S",  HttpS_C, InbandRouter())
#Service("HttpS_S", HttpS_C, DirectedRouter(SockAddrInet("192.168.1.81", =

80)))

Ez lesz bel=F5le (az ssl rendben van), loglevel 10:

(.../HttpS_S:1/pssl): calling __startup__() event;
(.../HttpS_S:1/pssl): calling startUp() event;
(Log thread): Traceback (most recent call last):
(Log thread):   File "/usr/share/zorp/pylib/Zorp/Proxy.py", line 273, in =

connectServer
(Log thread):     self.session.chainer.chainParent(self.session)
(Log thread):   File "/usr/share/zorp/pylib/Zorp/Chainer.py", line 180,=20
in chainParent
(Log thread):     remote =3D session.server_address.clone(0)
(Log thread):     remote =3D session.server_address.clone(0)
(Log thread): AttributeError: 'None' object has no attribute 'clone'


Mit rontok el? Direktedrouter eset=E9n m=FBk=F6dik. Seg=EDthet, hogy ha c=
sin=E1lok=20
m=E9g egy http proxyt, amelyik inbandrouterrel odatal=E1l a hostokhoz, =E9=
s=20
ahhoz a proxyhoz ir=E1ny=EDtom direktedrouterrel az ssl n=E9lk=FCli forga=
lmat?
Ez is 2.1.7 gpl, debian sid.