Hello,
ezt mar probaltam, (egyebkent nem alltam volna neki probalkozni a class mahinalasaval), es ezt kaptam:
Traceback (most recent call last): File "/usr/local/share/zorp/pylib/Zorp/Zorp.py", line 169, in init func() File "/usr/local/etc/zorp/policy.py", line 77, in zorp_http Service("directplug", MyHTTP, router = InbandRouter(forge_addr=TRUE)) TypeError: this constructor takes no arguments
Akkor a kovetkezot javaslom:
Service('http', MyHttp, router=InbandRouter(), snat=ForgeClientSourceNAT()) ugyan ezt is kiprobaltam mar korabban, tettem egy probat az idokozben modosult konfiggal. Tehat: az uj alosztalyban csak a setServerAddress() lett atdefinialva, ahog Bazsi irta, a Service pedig Sasa altal irt, fenti modon. Az eredmeny:
Zorp-INFO: (zorp@site/directplug): Starting service; name='directplug' Zorp-INFO: (zorp@site/directplug:0): Starting proxy instance; client_fd='13', client_address='AF_INET(1.2.3.4:19871)', client_zone='Zone(internet, 0.0.0.0/0)', client_local='AF_INET(2.3.4.5:81)' Zorp-INFO: (zorp@site/directplug:0/http): Proxy starting; class='MyHTTP', module='http' Zorp-INFO: (zorp@site/directplug:0/http): bind() failed; error='Cannot assign requested address' :( Koszi: airween -- Minden baj forrása az 1/x függvény.