[zorp-hu] Szures IP cimreszlet alapján
HÖLTZL Péter
zorp-hu@lists.balabit.hu
Thu, 09 Dec 2004 16:08:01 +0100
--=-FnLCCVn7SyeRTV2NnL00
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable
On Thu, 2004-12-09 at 15:27, H=D6LTZL P=E9ter wrote:
> On Thu, 2004-12-09 at 15:22, Nemeth Gyorgy wrote:
> > Olyan proxyt kellene defini=E1lnom, ami pl. 10.99.x.243 c=EDmekre enged
> > kapcsol=F3dni. Az x. el=E9g sok lehet, ha nem musz=E1j, nem venn=E9k fe=
l emiatt
> > >100 c=EDmet egy z=F3n=E1ba.
> >=20
> > Plug proxy.
>=20
> hat ez sanos nem proxy fuggo:(((( viszont ilyen zonat netmaszkal nem
> tudsz definialni.
bocsnat, nem gondoltam teljesen vegig. ime:
import re
class xProxy(PlugProxy):
=09
def config(self):
tmp=3Dre.spit("\.", self.session.server_address.ip_s)
if !(tmp[0]=3D=3D"10" and tmp[1]=3D=3D"99" and tmp[3]=3D=3D"243"):
raise "Hiba"
a megoldas nagyon ronda
--=20
H=D6LTZL P=E9ter
BalaBit IT Kft | Tel: +36 1 371-0540 | GnuPG Fingerprint:
holtzl.peter@balabit.hu | Mobil: +36 20 366-9667 | 796B C9D3 E492 B006 C8B2
http://www.balabit.hu/ | Fax: +36 1 208-0875 | 4D1F 5320 28E3 9A1B 3FC6
--=-FnLCCVn7SyeRTV2NnL00
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBBuGpQUyAo45obP8YRAhCcAJ0dbJGRmT7wNeWKTsebfTHyyt/8UQCeONr+
YucYEHp07g4/Uagi3mXpFD4=
=N0S5
-----END PGP SIGNATURE-----
--=-FnLCCVn7SyeRTV2NnL00--