-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 valami return Z_ACCEPT vagy ilyesmi nem kell a vegere? On 4 Jan 2002, KUN Arpad wrote:
Haliho
Van egy kis problemam a regexpmatcherrel.
Bazsi ezt ajanlotta hasznaltra:
class MyHttp(HttpProxyURIFilter): matcher=RegexpFileMatcher('/etc/zorp/http.deny', '/etc/zorp/http.ignore') * minden ami a http.deny-be fel van sorolva, azt a proxy nem fogja engedni (regexp) * minden ami a http.ignore -ban van, az kivetel, tehat ha veletlenul a http.deny illeszkedik, akkor ezzel kiszurhetjuk
Ugy nez ki a matcher mukodik, mert amilyen uri-ket felsorolok a http.deny-ben, es azt probalom meg atdongetni a zorpon, policyviolation.html -t szerviroz.
Viszont, minden mas uri-t, amire nem matchel egyetlen kifejezes sem,a http.deny -ben arra invalidurl.html -t kapok, hogy Badly formated url: /index.html (peldaul). Akkor is ez tortenik, ha a http.ignore fajlba teszem (pl az index.html -t).
Valoszinu a policy.py-om rossz, de nem jottem ra hol a hiba. (csatolom, hogy ne essen szet.)
Elore is koszi,
KharpeeT
-- system administrator kirowski 1075 Budapest, Karoly korut 9. www.kirowski.com | tel: +36 1 4112200 | fax: +36 1 4112299
- ------------------------- Narancs v1 IT Security Administrator "Security of information is an illusion. What is in one's mind gets into the collective consciousness (akasha), so that can be read with meditation ;-) You don't have to hack. Just 'remember'! You're the one." (Me) " Ha ki tudnám deríteni, hogy paranoiás vagyok-e, megtudnám, bízhatok-e magamban annyira, hogy megbízzak az ítéletemben, hogy nem vagyok paranoiás. De így semmi sem biztos. Ne is kérdezgess, félrevezetlek tudattalan pókhálóim fojtó porú mákonyát fecskendezve fiatalos tudatod ruganyába." (K.I.) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjw1qSwACgkQGp+ylEhMCIWFDACgiM959dhuvksg7heFk6TBwwLT o+EAnjqqhGCppTRq8xfew6fJqzk5TlcS =0Wmj -----END PGP SIGNATURE-----